/* Global Styles */
:root {
    --bg-color: #f0f4f8;
    /* Slightly cooler/bluer grey */
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --accent-color: #288e76;
    /* User Selected Green */
    --accent-hover: #207060;
    --accent-gradient: linear-gradient(135deg, #288e76 0%, #1a6b5a 100%);
    --card-border-top: #288e76;
    --border-color: #e2e8f0;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: #fff;
    border-bottom: 2px solid var(--accent-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 80px;
    /* Increased size */
    width: auto;
}



/* Navigation Dropdown */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-primary);
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-family);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dropbtn:hover {
    background-color: #f8fafc;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 280px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-dropdown .dropdown-content {
    min-width: 120px;
    left: auto;
    right: 0;
    transform: none;
}

.dropdown-content a.active {
    background-color: #f1f5f9;
    color: var(--accent-color);
}

.dropdown-content a:hover {
    background-color: #f7fafc;
    color: var(--accent-color);
}

/* .dropdown:hover .dropdown-content {
    display: block;
} REMOVED FOR CLICK INTERACTION */

.dropdown-content.show {
    display: block;
}


/* Nav removed */

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--accent-color);
    transition: all 0.2s;
}

.hamburger-btn:hover {
    background-color: rgba(40, 142, 118, 0.1);
    border-radius: 6px;
}

.btn-back {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(40, 142, 118, 0.1);
}

.btn-back:hover {
    background-color: rgba(40, 142, 118, 0.2);
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch a {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.lang-switch a:hover {
    color: var(--accent-color);
}

.lang-switch a.active {
    font-weight: 700;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.show {
    display: block;
    opacity: 1;
}

/* Hide mobile menu elements on desktop */
.mobile-menu-header,
.mobile-menu-close {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 10px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #f0f4f8 100%);
    margin-bottom: 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1a202c;
}

.page-desc {
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.download-method-hero {
    font-size: 0.9rem;
    color: #fff;
    background: var(--accent-gradient);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(40, 142, 118, 0.2);
}

.download-method-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(40, 142, 118, 0.3);
}

/* Sticky Tabs Wrapper */
.sticky-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #288e76;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 35px 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sticky-tabs-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/524036576.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.sticky-tabs-wrapper.scrolled {
    padding: 30px 0;
    border-radius: 0 0 50px 50px;
}

.sticky-tabs-wrapper .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Sticky Title - Hidden by default */
.sticky-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    text-align: center;
    width: 100%;
    line-height: 1.2;
}

.sticky-tabs-wrapper.scrolled .sticky-title {
    opacity: 1;
    max-height: 80px;
    overflow: visible;
    transform: translateY(0);
    margin-bottom: 20px;
}



.fuel-tabs {
    display: inline-flex;
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: 0;
    gap: 15px;
    margin-bottom: 0;
}

.tab-btn {
    padding: 12px 45px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    background: #ffffff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #77879B;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: #FFD700;
    color: #3C3C3C;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.tab-btn:hover:not(.active) {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: none;
    border-top: 4px solid var(--card-border-top);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 40px;
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center vertically */
    margin-bottom: 30px;
    background-color: rgba(40, 142, 118, 0.1);
    /* Light brand green */
    padding: 15px 20px;
    border-radius: 8px;
    position: relative;
}

.card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
    max-width: 700px;
    text-align: center;
}

.download-link {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 1px dashed var(--accent-color);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.download-link:hover {
    border-bottom: 1px solid var(--accent-color);
}

/* Price Stats */
.price-stats {
    display: flex;
    justify-content: space-around;
    /* Evenly distribute */
    align-items: center;
    gap: 20px;
    /* Reduced gap as space-around handles spacing */
    margin-bottom: 30px;
    padding: 30px 20px;
    background: #f7fafc;
    border-radius: 12px;
}

.stat-item .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2d3748;
}

.stat-item .label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-item .date {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 4px;
}

/* Graph Container */
.graph-container {
    width: 100%;
    min-height: 200px;
    /* logic: ensure at least some height if chart fails */
    border-radius: 12px;
    margin-bottom: 20px;
}

.placeholder-graph {
    text-align: center;
    color: #a0aec0;
}

.placeholder-graph .sub-text {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #cbd5e0;
}

.card-footer {
    text-align: right;
    margin-top: 10px;
}


/* Footer */
/* Footer - Updated Dark Theme */
.main-footer {
    background-color: #2d3748;
    /* Dark Slate */
    border-top: none;
    padding: 60px 0 30px;
    color: #e2e8f0;
    margin-top: 60px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h6 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links-list a {
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #cbd5e0;
    transition: color 0.2s;
}

.footer-links-list a:hover {
    color: #fff;
    text-decoration: underline;
}

.about-col {
    max-width: 500px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #a0aec0;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.8);
    /* Make existing logo white */
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: #a0aec0;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #fff;
}

/* Mobile Footer */
@media (max-width: 768px) {

    /* Mobile Header - Show Hamburger */
    .hamburger-btn {
        display: block;
    }

    /* Mobile Navigation Overlay */
    .nav-center {
        position: fixed;
        top: 0;
        left: auto;
        right: -100%;
        transform: none;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        z-index: 9998;
        padding: 60px 20px 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }

    .nav-center.show {
        right: 0;
    }

    /* Mobile Menu Close Button - In header */
    .mobile-menu-close {
        display: none;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 4px;
        color: var(--text-primary);
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .nav-center.show .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-close:hover {
        background-color: rgba(40, 142, 118, 0.1);
        border-radius: 4px;
        color: var(--accent-color);
    }

    /* Mobile Menu Header - Inside sidebar */
    .mobile-menu-header {
        display: none;
        padding: 0 0 16px 0;
        margin-bottom: 16px;
        border-bottom: 2px solid var(--border-color);
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .nav-center.show .mobile-menu-header {
        display: flex;
    }

    .mobile-menu-title {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--accent-color);
        letter-spacing: 0.5px;
        margin: 0;
        text-align: left;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Hide the dropdown button on mobile, show links directly */
    .nav-center .dropbtn {
        display: none;
    }

    .nav-center .dropdown {
        position: static;
        width: 100%;
    }

    .nav-center .dropdown-content {
        display: block !important;
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: transparent;
    }

    .nav-center .dropdown-content a {
        padding: 16px 0;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border-color);
        background: transparent;
        transition: all 0.2s;
        display: block;
        text-align: left;
    }

    .nav-center .dropdown-content a:first-child {
        border-top: 1px solid var(--border-color);
    }

    .nav-center .dropdown-content a:hover {
        color: var(--accent-color);
        padding-left: 8px;
    }

    /* Sticky Tabs - Mobile */
    .sticky-tabs-wrapper {
        padding: 15px 0;
    }

    .sticky-tabs-wrapper.scrolled {
        padding: 12px 0;
    }

    /* Hero Section - Page Title */
    .page-title {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .page-desc {
        margin-bottom: 25px;
        gap: 15px;
        font-size: 1rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .card-header {
        flex-direction: column !important;
        gap: 15px;
        padding: 15px 20px 20px;
        align-items: center;
    }

    .card-header h2 {
        font-size: 1.3rem;
        order: 1;
        margin-bottom: 0;
    }

    .download-link {
        position: static !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        order: 2;
        margin-top: 0;
    }

    /* Price Stats - Vertical Stack on Mobile */
    .price-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .stat-item {
        width: 100%;
        text-align: center;
        padding: 20px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .stat-item .price {
        font-size: 2rem;
    }

    .stat-item .label {
        font-size: 0.85rem;
        margin-top: 8px;
    }

    .stat-item .date {
        font-size: 0.75rem;
    }
}