/* landing.css - Landing Page Specific Sections */
/* Landing Page & Map Structure - DO NOT MODIFY WITHOUT CONSULTING THE USER */

/* Hero */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h1 {
    font-size: 5.5rem;
    line-height: 1;
    margin: 0 0 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--light);
}

.theme-light h1,
.theme-light h2,
.theme-light h3 {
    color: #0f172a;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--light);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 400;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    width: fit-content;
}

.theme-light .hero-subtitle {
    color: #334155;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Search Box */
.search-container {
    position: relative;
    z-index: 3000;
    background: var(--glass);
    padding: 0.5rem;
    border-radius: 16px;
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.theme-light .search-container {
    margin: 0 auto 2rem 0;
}

.search-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--light);
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-family: inherit;
}

.search-container input:focus {
    outline: none;
}

.search-container button {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

/* Base Section */
section {
    padding: 8rem 10%;
}

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

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
}

/* Stats Section */
#stats {
    text-align: center;
    background: var(--dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item h2 {
    font-size: 4rem;
    color: var(--primary);
    margin: 0;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Travel Information / Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--dark-lighter);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    transition: 0.4s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: block;
}

/* Regions Section */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.country-group {
    margin-bottom: 5rem;
}

.country-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
}

.region-card-small {
    background: var(--dark-lighter);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    min-height: 160px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

/* Main Gradient Background - optimized */
.region-card-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    opacity: 0.9;
    z-index: 0;
    transition: filter 0.4s ease;
}

/* Decorative Circle Overlay */
.region-card-small::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.5s ease;
}

.region-card-small:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.region-card-small:hover::after {
    transform: scale(1.3);
}

.region-card-small:hover::before {
    filter: brightness(1.15);
}

.region-name-small {
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0;
    color: #ffffff !important;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    z-index: 2;
    position: relative;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.region-count-small {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    position: relative;
    margin-top: 4px;
}

.region-count-badge {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 50px;
    font-variant-numeric: tabular-nums;
}

/* Alternating Variants */
.region-card-small[data-variant="variant-1"]::before {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.region-card-small[data-variant="variant-2"]::before {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}


/* Trips Section */
.trips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.trip-card {
    background: var(--dark-lighter);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.4s;
}

.trip-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.faq-item {
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 500px;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

/* Download Section */
#download {
    background: radial-gradient(circle at top right, var(--primary), transparent), var(--dark);
    background-blend-mode: soft-light;
    text-align: center;
}

.store-btns {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.store-btn {
    background: var(--light);
    color: var(--dark);
    padding: 1rem 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: 0.3s;
    min-width: 220px;
    border: 1px solid var(--border);
}

.store-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

/* Responsive Landing Page */
@media (max-width: 1024px) {
    #hero {
        padding: 0 1.5rem; /* Better padding for phone */
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 2.5rem; /* Reduced for better fit on phone */
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin: 0 auto 2.5rem;
        width: 100%;
        max-width: 450px;
        background: rgba(0, 0, 0, 0.4);
        padding: 1rem;
        backdrop-filter: blur(8px);
    }

    .search-container {
        margin: 0 auto 2.5rem;
        flex-direction: column; /* Stack on mobile */
        width: 100%;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        gap: 0.8rem;
    }

    .search-container input {
        background: var(--glass);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        border-radius: 12px;
        width: 100%;
        padding: 1rem;
    }

    .search-container button {
        width: 100%;
        padding: 1rem;
        border-radius: 12px;
    }

    .cta-group {
        justify-content: center;
        width: 100%;
    }

    section {
        padding: 5rem 1.5rem;
    }

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

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item h2 {
        font-size: 2.5rem;
    }

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

    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

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

    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .cta-group .btn {
        width: 100%;
        justify-content: center;
    }

    .country-title {
        font-size: 1.6rem;
    }
    
    .trips-container {
        grid-template-columns: 1fr;
    }

    .store-btns {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 300px;
    }
    
    #system-status-banner {
        top: 70px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .feature-card {
        padding: 2rem;
        border-radius: 20px;
    }

    .region-card-small {
        min-height: 120px;
    }
}

/* Newsletter Section */
.newsletter-promo {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark) 100%);
    padding: 6rem 10%;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0 1.5rem;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: var(--light);
}

.privacy-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Notifications Bell & Badge */
.notifications-trigger .material-icons {
    font-size: 1.6rem;
    color: var(--light);
    opacity: 0.8;
    transition: 0.3s;
}

.notifications-trigger:hover .material-icons {
    opacity: 1;
    color: var(--primary);
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.notif-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
}

.notif-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: block;
    text-decoration: none;
    color: var(--light);
    transition: 0.2s;
}

.notif-item:hover {
    background: rgba(255,255,255,0.05);
}

.notif-item.unread {
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid var(--primary);
}

.notif-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notif-body {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.4;
}

.notif-time {
    font-size: 0.7rem;
    opacity: 0.4;
    margin-top: 0.4rem;
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
}
