/* ===== Color Palette ===== */
:root {
    --green-soft: #7aa87a;
    --green-dark: #4c6b4d;
    --purple-soft: #9f85b8;
    --purple-dark: #6e4e8d;
    --offwhite: #f8f7f6;
    --dark-text: #2c2c2c;
}

/* ===== Global ===== */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--offwhite);
    color: var(--dark-text);
}

/* ===== Navbar ===== */
.navbar {
    padding: 1.2rem 5vw;
    background: var(--green-dark);
    color: white;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1.1rem;
}
/* ===== Top Tab Bar ===== */
.tab-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.tab-button {
    flex: 1;
    padding: 0.7rem;
    font-size: 1.2rem;
    background: var(--purple-dark);
    color: white;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.tab-button:hover {
    background: var(--purple-soft);
}

.tab-button.active {
    transform: translateY(-2px);
}


.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.disclaimer {
    font-size: 0.85rem;
    margin: 0;
    padding: 0;
}

.home-wrapper > .disclaimer {
    margin-bottom: -1.2rem;  
}

/* ===== Page Wrapper ===== */
.home-wrapper {
    padding: 1rem 5vw;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ===== Dropdown Button ===== */
.dropdown-button {
    width: 100%;
    padding: 0.6rem;
    font-size: 1.4rem;
    background: var(--purple-dark);
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-button:hover {
    background: var(--purple-soft);
}

/* ===== Hidden (used by JS) ===== */
.hidden {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* ===== Slide-Out Menu Panel ===== */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 70vw;              /* nice for mobile */
    max-width: 300px;         /* nice for desktop */
    height: 100vh;
    background: var(--green-dark);
    color: white;
    padding: 2rem 1.5rem;
    box-shadow: -4px 0 12px rgba(0,0,0,0.25);
    transform: translateX(100%);    /* hide off-screen */
    transition: transform 0.3s ease;
    z-index: 9999;
}

.side-menu.open {
    transform: translateX(0); /* slide into view */
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-menu a {
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.side-menu a:hover {
    opacity: 0.7;
}

/* ===== Close Button Inside Side Menu ===== */
.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ===== Deal Cards Container ===== */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* much smaller default gap than original */
}

/* ===== Individual Deal Card ===== */
.deal-card {
    background: white;
    border-radius: 0.8rem;
    padding: 1rem;
    box-shadow: 0 0.25rem 0.8rem rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.deal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.12);
}

/* ===== Card Text (2-line compact layout) ===== */
.deal-line-1 {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}


.deal-line-2 {
    font-size: 0.9rem;
    opacity: 0.75;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.status-icon {
    height: 22px;
    width: 22px;
    flex-shrink: 0;
}


/* ===== ULTRA COMPACT MOBILE MODE ===== */
@media (max-width: 600px) {

    .cards-list {
        gap: 0.4rem;
    }
    
    .deal-card {
        padding: 0.4rem 0.6rem;
        border-radius: 0.4rem;
        box-shadow: 0 0.1rem 0.4rem rgba(0,0,0,0.1);
        gap: 0.1rem;
    }
    
    .deal-line-1 {
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    .deal-line-2 {
        font-size: 0.65rem;
        opacity: 0.7;
    }
}

/* ===== Age Gate Modal ===== */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    visibility: visible;
}

.age-gate.hidden {
    display: none;
}

.age-gate-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 0.5rem 1.2rem rgba(0,0,0,0.3);
}

.age-btn {
    width: 45%;
    padding: 0.8rem;
    margin: 0.5rem;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    border-radius: 0.6rem;
}

.age-btn.yes {
    background: var(--green-dark);
    color: white;
}

.age-btn.no {
    background: #b33a3a;
    color: white;
}
