/* Temple Timings CSS - ISKCON Imphal Divine Design */

:root {
    /* Divine Color Palette */
    --saffron: #FF9933;
    --deep-saffron: #E8840A;
    --gold: #FFD700;
    --maroon: #8B0000;
    --deep-maroon: #660000;
    --holy-cream: #FFF8DC;
    --sacred-white: #FFFFFF;
    --temple-brown: #8B4513;
    --divine-blue: #4169E1;
    --peaceful-green: #228B22;
    --sunset-orange: #FF8C00;
    
    /* Typography */
    --font-primary: 'Merriweather', serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-decorative: 'Dancing Script', cursive;
    --font-elegant: 'Cinzel', serif;
    
    /* Spacing & Shadows */
    --shadow-divine: 0 8px 32px rgba(255, 153, 51, 0.15);
    --shadow-deep: 0 12px 48px rgba(139, 0, 0, 0.2);
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, var(--holy-cream) 0%, #FAF5E6 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: var(--sacred-white);
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--sacred-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: auto;
    background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 50%, var(--maroon) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="temple-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23temple-pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--sacred-white);
    width: 100%;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-elegant);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-family: var(--font-decorative);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

.temple-status {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00FF00;
    animation: pulse-green 2s infinite;
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Quick Info Section */
.quick-info-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--sacred-white) 0%, var(--holy-cream) 100%);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--sacred-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-divine);
    border-color: var(--saffron);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: var(--font-elegant);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--maroon);
}

.info-card p {
    margin-bottom: 0.5rem;
    color: #666;
}

.info-detail {
    font-size: 0.9rem;
    color: var(--saffron);
    font-weight: 600;
}

/* Schedule Section */
.schedule-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--holy-cream) 0%, #F5F5DC 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-elegant);
    font-size: 2.5rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.schedule-table-wrapper {
    background: var(--sacred-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-divine);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table thead {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 100%);
    color: var(--sacred-white);
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.schedule-table th {
    font-family: var(--font-elegant);
    font-weight: 600;
    font-size: 1.1rem;
}

.schedule-table tbody tr {
    transition: var(--transition);
}

.schedule-table tbody tr:hover {
    background: rgba(255, 153, 51, 0.05);
}

.morning-session {
    background: rgba(255, 215, 0, 0.1);
}

.midday-session {
    background: rgba(255, 140, 0, 0.1);
}

.evening-session {
    background: rgba(255, 153, 51, 0.1);
}

.night-session {
    background: rgba(139, 0, 0, 0.1);
}

.schedule-table td strong {
    color: var(--maroon);
    font-weight: 600;
}

/* Expectations Section */
.expectations-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--sacred-white) 0%, var(--holy-cream) 100%);
}

.expectations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.expectation-card {
    background: var(--sacred-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border-left: 4px solid var(--saffron);
}

.expectation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-divine);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.expectation-card h3 {
    font-family: var(--font-elegant);
    font-size: 1.4rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.expectation-card p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #555;
}

.card-highlight {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 100%);
    color: var(--sacred-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* Advice Section */
.advice-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--holy-cream) 0%, #FFFACD 100%);
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advice-card {
    background: var(--sacred-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 2px solid transparent;
}

.advice-card:hover {
    border-color: var(--saffron);
    transform: translateY(-8px);
    box-shadow: var(--shadow-divine);
}

.advice-icon {
    font-size: 2.5rem;
    color: var(--saffron);
    margin-bottom: 1rem;
}

.advice-card h3 {
    font-family: var(--font-elegant);
    font-size: 1.3rem;
    color: var(--maroon);
    margin-bottom: 1rem;
}

.advice-card p {
    line-height: 1.7;
    color: #555;
}

/* Significance Section */
.significance-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--deep-maroon) 100%);
    color: var(--sacred-white);
}

.significance-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.significance-text .section-title {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.significance-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.point-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.point-item i {
    color: var(--gold);
    font-size: 1.2rem;
}

.temple-schedule-wheel {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(
        var(--gold) 0deg 90deg,
        var(--saffron) 90deg 180deg,
        var(--sunset-orange) 180deg 270deg,
        var(--deep-saffron) 270deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gentle-rotate 20s linear infinite;
}

.wheel-center {
    width: 120px;
    height: 120px;
    background: var(--sacred-white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--maroon);
    font-weight: 600;
    z-index: 2;
}

.wheel-center i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.wheel-segment {
    position: absolute;
    color: var(--sacred-white);
    font-weight: 600;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.wheel-segment.morning {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.wheel-segment.midday {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.wheel-segment.evening {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.segment-label {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.segment-time {
    font-size: 0.8rem;
    opacity: 0.9;
}

@keyframes gentle-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Summary Section */
.summary-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--sacred-white) 0%, var(--holy-cream) 100%);
}

.summary-card {
    background: var(--sacred-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-divine);
    text-align: center;
    border: 3px solid var(--saffron);
}

.summary-title {
    font-family: var(--font-elegant);
    font-size: 2.2rem;
    color: var(--maroon);
    margin-bottom: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 10px;
    text-align: left;
}

.summary-item i {
    font-size: 2rem;
    color: var(--saffron);
}

.summary-content h3 {
    font-family: var(--font-elegant);
    color: var(--maroon);
    margin-bottom: 0.5rem;
}

.summary-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 100%);
    color: var(--sacred-white);
}

.cta-button.secondary {
    background: transparent;
    color: var(--maroon);
    border: 2px solid var(--maroon);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-divine);
}

/* Responsive Design */
@media (max-width: 768px) {

    .hero-section {
        height: 70vh;
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .schedule-table {
        font-size: 0.9rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.8rem;
    }

    .significance-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .temple-schedule-wheel {
        width: 250px;
        height: 250px;
    }

    .expectations-grid,
    .advice-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: auto;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .info-card,
    .expectation-card,
    .advice-card {
        padding: 1.5rem;
    }

    .summary-card {
        padding: 2rem;
    }

    .temple-schedule-wheel {
        width: 200px;
        height: 200px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Accessibility */
@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) {
    :root {
        --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-divine: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

/* Print styles */
@media print {
    .carousel-btn,
    .carousel-indicators,
    .cta-button {
        display: none;
    }
    
    .hero-section {
        height: auto;
        margin-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}
