/**
 * Responsive Styles for Trinetra Ganesh Temple Darshan
 * Mobile-first approach
 */

/* ===== Tablet (768px and below) ===== */
@media (max-width: 768px) {
    
    /* Puja Content Grid */
    .tgd-puja-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Carousel */
    .tgd-carousel-slide img {
        height: 400px;
    }
    
    .tgd-carousel-title {
        font-size: 26px;
    }
    
    .tgd-carousel-text {
        bottom: 30px;
        left: 25px;
        right: 25px;
    }
    
    .tgd-nakshatra-badge {
        top: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Puja Info */
    .tgd-puja-title {
        font-size: 28px;
    }
    
    .tgd-puja-subtitle {
        font-size: 16px;
    }
    
    /* Countdown */
    .tgd-countdown-value {
        font-size: 32px;
    }
    
    /* Tab Navigation */
    .tgd-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tgd-tab-button {
        white-space: nowrap;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Packages Grid */
    .tgd-packages-grid {
        grid-template-columns: 1fr;
    }
    
    /* Benefits */
    .tgd-benefits-list {
        grid-template-columns: 1fr;
    }
    
    /* Reviews Summary */
    .tgd-reviews-summary {
        flex-direction: column;
        text-align: center;
    }
    
    /* Puja Grid */
    .tgd-puja-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal */
    .tgd-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .tgd-modal-header,
    .tgd-modal-body {
        padding: 20px;
    }
}

/* ===== Mobile (480px and below) ===== */
@media (max-width: 480px) {
    
    .tgd-container {
        padding: 0 15px;
    }
    
    /* Breadcrumb */
    .tgd-breadcrumb-list {
        font-size: 12px;
    }
    
    /* Carousel */
    .tgd-carousel-slide img {
        height: 300px;
    }
    
    .tgd-carousel-title {
        font-size: 22px;
    }
    
    .tgd-carousel-text {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .tgd-nakshatra-badge {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .tgd-carousel-prev,
    .tgd-carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .tgd-carousel-prev {
        left: 10px;
    }
    
    .tgd-carousel-next {
        right: 10px;
    }
    
    /* Puja Info */
    .tgd-puja-title {
        font-size: 24px;
    }
    
    .tgd-puja-subtitle {
        font-size: 15px;
    }
    
    /* Countdown */
    .tgd-countdown-timer {
        gap: 10px;
    }
    
    .tgd-countdown-value {
        font-size: 28px;
    }
    
    .tgd-countdown-unit {
        font-size: 11px;
    }
    
    /* Social Proof */
    .tgd-social-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tgd-user-avatar {
        width: 35px;
        height: 35px;
        margin-left: -10px;
    }
    
    /* CTA Button */
    .tgd-cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    /* Tabs */
    .tgd-tab-button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .tgd-tab-content {
        padding: 25px 0;
    }
    
    /* About Content */
    .tgd-about-content h3 {
        font-size: 20px;
    }
    
    .tgd-about-content p {
        font-size: 15px;
    }
    
    /* Package Cards */
    .tgd-package-name {
        font-size: 20px;
    }
    
    .tgd-package-price {
        font-size: 32px;
    }
    
    /* Process Steps */
    .tgd-step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .tgd-step-content h4 {
        font-size: 16px;
    }
    
    .tgd-step-content p {
        font-size: 14px;
    }
    
    /* Temple Details */
    .tgd-detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .tgd-detail-label {
        min-width: auto;
    }
    
    /* Reviews */
    .tgd-reviews-score {
        font-size: 48px;
    }
    
    .tgd-review-card {
        padding: 20px;
    }
    
    .tgd-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* FAQ */
    .tgd-faq-question {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .tgd-faq-answer-content {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    /* Live Darshan */
    .tgd-live-title {
        font-size: 32px;
    }
    
    .tgd-live-subtitle {
        font-size: 16px;
    }
    
    /* Modal */
    .tgd-modal-title {
        font-size: 20px;
        padding-right: 30px;
    }
    
    .tgd-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* ===== Small Mobile (360px and below) ===== */
@media (max-width: 360px) {
    
    .tgd-carousel-slide img {
        height: 250px;
    }
    
    .tgd-carousel-title {
        font-size: 18px;
    }
    
    .tgd-puja-title {
        font-size: 22px;
    }
    
    .tgd-countdown-value {
        font-size: 24px;
    }
    
    .tgd-package-price {
        font-size: 28px;
    }
    
    .tgd-reviews-score {
        font-size: 40px;
    }
}

/* ===== Landscape Mobile ===== */
@media (max-height: 500px) and (orientation: landscape) {
    
    .tgd-carousel-slide img {
        height: 350px;
    }
    
    .tgd-modal-content {
        max-height: 95vh;
    }
}

/* ===== Print Styles ===== */
@media print {
    
    .tgd-carousel-prev,
    .tgd-carousel-next,
    .tgd-carousel-dots,
    .tgd-cta-button,
    .tgd-swipe-indicator {
        display: none !important;
    }
    
    .tgd-puja-content {
        grid-template-columns: 1fr;
    }
    
    .tgd-carousel-slide img {
        height: auto;
        max-height: 400px;
    }
}

/* ===== Large Desktop (1400px and above) ===== */
@media (min-width: 1400px) {
    
    .tgd-container {
        max-width: 1320px;
    }
    
    .tgd-carousel-slide img {
        height: 550px;
    }
    
    .tgd-puja-title {
        font-size: 40px;
    }
    
    .tgd-benefits-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tgd-packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tgd-puja-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Accessibility Improvements ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    .tgd-package-card {
        border-width: 3px;
    }
    
    .tgd-tab-button.active {
        border-bottom-width: 4px;
    }
    
    .tgd-form-input:focus,
    .tgd-form-select:focus,
    .tgd-form-textarea:focus {
        border-width: 2px;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
    /* Currently maintaining light theme as per temple tradition */
}
