/* Responsive Styles - Mobile First Approach */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Typography adjustments */
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    /* Header adjustments */
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text p {
        font-size: 11px;
    }
    
    .logo i {
        font-size: 32px;
    }
    
    /* Navigation - Mobile Menu */
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
    }
    
    /* Language Toggle */
    .lang-toggle {
        top: 80px;
        right: 15px;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* WhatsApp Button */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
    
    /* News Ticker */
    .ticker-label {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .ticker-items span {
        font-size: 13px;
    }
    
    /* Hero Section */
    .hero {
        padding: 60px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 15px;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image img {
        height: 300px;
    }
    
    /* Info Cards */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card {
        padding: 25px;
    }
    
    .info-card i {
        font-size: 40px;
    }
    
    /* Pooja Cards */
    .pooja-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pooja-card {
        padding: 25px;
    }
    
    .pooja-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-card i {
        font-size: 40px;
    }
    
    /* Panchangam */
    .panchangam-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .panchangam-item strong {
        font-size: 14px;
    }
    
    .panchangam-item span {
        font-size: 18px;
    }
    
    /* Health Tip */
    .health-tip-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .tip-icon {
        font-size: 48px;
    }
    
    .tip-content h3 {
        font-size: 20px;
    }
    
    .tip-content p {
        font-size: 15px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Modal */
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-body h2 {
        font-size: 22px;
    }
    
    .modal-body p {
        font-size: 16px;
    }
    
    /* Sections Padding */
    .about-section,
    .featured-poojas,
    .services-section {
        padding: 60px 20px;
    }
    
    .panchangam-section,
    .health-tip {
        padding: 50px 20px;
    }
    
    .quick-info {
        padding: 50px 20px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Typography */
    .hero-content h2 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    /* Header */
    .logo-text h1 {
        font-size: 14px;
    }
    
    .logo-text p {
        font-size: 10px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    /* Language Toggle */
    .lang-toggle {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .lang-toggle i {
        font-size: 16px;
    }
    
    /* WhatsApp Button */
    .whatsapp-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
    
    /* News Ticker */
    .ticker-label {
        font-size: 11px;
        padding: 10px;
    }
    
    .ticker-items span {
        font-size: 12px;
    }
    
    /* Hero */
    .hero {
        padding: 50px 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 250px;
    }
    
    /* Cards */
    .info-card,
    .pooja-card,
    .service-card {
        padding: 20px;
    }
    
    .info-card h3,
    .pooja-card h3,
    .service-card h3 {
        font-size: 18px;
    }
    
    /* Panchangam */
    .panchangam-card {
        padding: 25px 15px;
    }
    
    /* Health Tip */
    .health-tip-card {
        padding: 25px 15px;
    }
    
    .tip-content h3 {
        font-size: 18px;
    }
    
    .tip-content p {
        font-size: 14px;
    }
    
    /* Modal */
    .modal-content {
        padding: 25px 15px;
        width: 95%;
    }
    
    .modal-body h2 {
        font-size: 20px;
    }
    
    .modal-body p {
        font-size: 15px;
    }
    
    .modal-close {
        font-size: 28px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 15px 20px;
    }
    
    .footer-col h3,
    .footer-col h4 {
        font-size: 16px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Large Tablets and Small Desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .info-grid,
    .pooja-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .panchangam-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h2 {
        font-size: 42px;
    }
    
    .section-header h2 {
        font-size: 40px;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 20px;
    }
    
    .hero-content h2 {
        font-size: 22px;
    }
    
    .nav {
        height: auto;
        max-height: calc(100vh - 70px);
    }
}

/* Print Styles */
@media print {
    .header,
    .news-ticker,
    .whatsapp-btn,
    .lang-toggle,
    .footer,
    .modal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .about-section,
    .featured-poojas,
    .services-section {
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
        --shadow-lg: 0 4px 16px rgba(0,0,0,0.4);
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}
