/* ============================================
   Sudarshan - Live Darshan | Holy Places of India
   Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a1a4e;
    --color-accent: #e8952e;
    --color-accent-light: #ffcc5c;
    --color-bg: #fafafa;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-footer-bg: #1a1a4e;
    --color-footer-text: #cccccc;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius: 8px;
    --radius-lg: 16px;
    --font: 'Poppins', sans-serif;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.55rem;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: #f0f0f0;
}

.nav-link.active {
    background: var(--color-accent-light);
    color: var(--color-primary);
    font-weight: 600;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section (Home) --- */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a4e 0%, #2d2d7a 40%, #e8952e 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('Home.png') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.cta-btn:hover {
    background: #d07e1f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Features --- */
.features {
    padding: 80px 0 90px;
    background: linear-gradient(160deg, #f5f0ff 0%, #fff7ed 50%, #f0f4ff 100%);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(232,149,46,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(26,26,78,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 52px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    position: relative;
    text-align: center;
    padding: 44px 28px 40px;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    animation: featureSlideUp 0.6s ease both;
    animation-delay: var(--delay, 0s);
}

@keyframes featureSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card .feature-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: height 0.3s ease;
}

.feature-card--orange .feature-accent {
    background: linear-gradient(90deg, #e8952e, #ffcc5c);
}

.feature-card--blue .feature-accent {
    background: linear-gradient(90deg, #4a90d9, #74b9ff);
}

.feature-card--purple .feature-accent {
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--color-border);
}

.feature-card:hover .feature-accent {
    height: 6px;
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-icon-wrap--orange {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.feature-icon-wrap--blue {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.feature-icon-wrap--purple {
    background: linear-gradient(135deg, #ede7f6, #d1c4e9);
}

.feature-icon {
    font-size: 2rem;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Temples Highlight --- */
.temples-highlight {
    padding: 60px 0 80px;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-top: 0;
    margin-bottom: 32px;
}

.temples-highlight .section-title {
    margin-bottom: 16px;
}

.temple-cta {
    margin-top: 24px;
}

/* --- Live Page --- */
.live-section {
    padding: 40px 0 80px;
}

.page-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.page-desc {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4444;
    animation: pulse 1.5s infinite;
}

.status-dot.live {
    background: #22c55e;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.stream-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
}

.stream-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stream-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #e0e0e0;
    overflow: hidden;
}

.stream-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-thumbnail iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.stream-live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff0000;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.stream-info {
    padding: 16px;
}

.stream-info h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.stream-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.no-streams {
    text-align: center;
    padding: 60px 20px;
}

.no-streams-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-streams h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.no-streams p {
    color: var(--color-text-light);
}

/* --- Contact Page --- */
.contact-section {
    padding: 40px 0 80px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    margin-top: 16px;
}

.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
    background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232,149,46,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 4px;
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #d07e1f;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    margin-top: 16px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    color: #166534;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    text-align: center;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.info-card h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.info-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 48px 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 12px;
    object-fit: contain;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: var(--color-footer-text);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--color-accent-light);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--color-accent-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Floating Ad Placeholders --- */
.ad-float {
    position: fixed;
    bottom: 20px;
    z-index: 999;
    background: var(--color-white);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 160px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ad-float.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.ad-float-left {
    left: 16px;
}

.ad-float-right {
    right: 16px;
}

.ad-close {
    position: absolute;
    top: 4px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
    padding: 2px 4px;
    z-index: 2;
}

.ad-close:hover {
    color: var(--color-text);
}

.ad-content {
    padding: 12px;
    text-align: center;
}

.ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ad-placeholder {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ad-float {
        width: 120px;
    }

    .ad-placeholder {
        height: 150px;
    }

    .logo-subtitle {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 60px;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 24px;
    }

    .ad-float {
        width: 100px;
        bottom: 10px;
    }

    .ad-placeholder {
        height: 120px;
    }

    .ad-float-left {
        left: 8px;
    }

    .ad-float-right {
        right: 8px;
    }
}
