/* IslamTools Website Styles - Matching App Theme */

:root {
    /* App Theme Colors */
    --primary: #0F172A;
    --secondary: #0D9488;
    --secondary-light: #14B8A6;
    --accent: #5EEAD4;
    --error: #EF4444;
    
    /* Background Colors */
    --bg-light: #F8FAFC;
    --bg-dark: #1A1F2E;
    --surface-light: #FFFFFF;
    --surface-dark: #252B3B;
    
    /* Text Colors */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --text-primary-dark: #F1F5F9;
    --text-secondary-dark: #CBD5E1;
    
    /* Gradients */
    --fajr-gradient: linear-gradient(135deg, #F8FAFF 0%, #EEF6FF 52%, #CCEEFF 100%);
    --maghrib-gradient: linear-gradient(135deg, #FFF7ED 0%, #FFE4D6 40%, #FFD6E3 100%);
    --onboarding-gradient: linear-gradient(135deg, #FFF7ED 0%, #F8FAFC 50%, #E0F2FE 100%);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-spacing: 80px;
}

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

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 16px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

/* Buttons - teal primary for clarity and consistency */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 32px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: var(--secondary);
    text-decoration: none;
    border-radius: 32px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: 2px solid var(--secondary);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    background: var(--onboarding-gradient);
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: var(--section-spacing) 0;
    background: var(--surface-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

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

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Download Section */
.download {
    padding: var(--section-spacing) 0;
    background: var(--primary);
    text-align: center;
    color: white;
}

.download-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.2s;
    cursor: pointer;
}

.download-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.download-button.disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
}

.download-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

.download-icon {
    font-size: 28px;
}

.download-text {
    font-weight: 600;
}

/* Privacy Policy Section */
.privacy {
    padding: var(--section-spacing) 0;
    background: var(--bg-light);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.last-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.privacy-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.privacy-section ul {
    list-style: none;
    padding-left: 0;
}

.privacy-section li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.7;
}

.privacy-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.privacy-section strong {
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-light);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* Support Section */
.support {
    padding: var(--section-spacing) 0;
    background: var(--surface-light);
}

.support-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.support-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.support-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.support-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.support-link:hover {
    color: var(--secondary-light);
}

.faq-section {
    margin-bottom: 40px;
}

.faq-section h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 32px;
}

.faq-item {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 16px;
}

.faq-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.response-time {
    text-align: center;
    padding: 24px;
    background: var(--accent);
    border-radius: 16px;
    color: var(--primary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-tagline {
    color: var(--text-secondary-dark);
    font-size: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

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

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }

    .section-title {
        font-size: 32px;
    }

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

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

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 28px;
    }

    .download-title {
        font-size: 32px;
    }

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--primary);
}

/* Prayer Times Section */
.prayer-times-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E0F2F1 50%, #F0FDFA 100%);
}

.prayer-times-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.prayer-times-content .section-title {
    color: var(--primary);
}

.prayer-times-content .section-subtitle {
    color: var(--text-secondary);
}

.prayer-times-widget {
    margin-top: 50px;
}

.prayer-times-form {
    background: var(--surface-light);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E2E8F0;
    background: var(--bg-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Noto Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

#prayer-times-output {
    margin-top: 30px;
}

/* Prayer times result / error / loading */
.prayer-times-result {
    text-align: left;
    background: var(--surface-light);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.prayer-times-result h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}

.prayer-times-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.prayer-times-item {
    background: rgba(13, 148, 136, 0.08);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(13, 148, 136, 0.2);
    transition: all 0.2s ease;
}

.prayer-times-item:hover {
    background: rgba(13, 148, 136, 0.12);
    transform: translateY(-2px);
}

.prayer-times-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prayer-times-time {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
}

.prayer-times-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.prayer-times-footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}

.prayer-times-footer a:hover {
    text-decoration: underline;
}

.prayer-times-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--error);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    font-weight: 500;
}

/* Loading State */
.prayer-times-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-weight: 500;
}

.prayer-times-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    vertical-align: middle;
    border: 3px solid rgba(13, 148, 136, 0.25);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
