/* ========== GLOBAL VARIABLES & RESET (Shared with navigation) ========== */
:root {
    --bg: #fcfbf7;
    --card-bg: rgba(255, 255, 252, 0.85);
    --text: #2e2a24;
    --text-light: #8c8b7a;
    --border: rgba(180, 190, 160, 0.3);
    --accent: #7a8b6b;
    --accent-hover: #9ab07a;
    --nav-bg: rgba(252, 251, 247, 0.94);
    --shadow: 0 6px 18px rgba(0,0,0,0.04);
    --radius: 18px;
    --transition: 0.3s ease;
    --nav-text: #2e2a24;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1e1f1c;
        --card-bg: rgba(30, 32, 28, 0.85);
        --text: #d5dfc4;
        --text-light: #a0ad8c;
        --border: rgba(80, 90, 70, 0.3);
        --accent: #a0ad8c;
        --accent-hover: #c5d1b0;
        --nav-bg: rgba(30, 32, 28, 0.94);
        --shadow: 0 6px 18px rgba(0,0,0,0.3);
    }
}

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

body {
    background: var(--bg);
    font-family: 'Quicksand', 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    padding: 0;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(180deg, #fefdf9 0%, #f7f3e9 30%, #eef3e8 60%, #f2f0f5 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 200, 180, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(180, 210, 240, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(220, 230, 200, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(180deg, #242521 0%, #1c1d19 30%, #1f221d 60%, #222320 100%);
    }
    body::before {
        background: 
            radial-gradient(circle at 10% 20%, rgba(100, 80, 60, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 85% 75%, rgba(60, 80, 100, 0.15) 0%, transparent 50%);
    }
}

/* ========== NAVIGATION ========== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    width: 100%;
    transition: box-shadow 0.3s;
}
.site-nav.scrolled {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    gap: 1rem;
}
.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.3px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo .logo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav-links a {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.1px;
}
.nav-links a:hover,
.nav-links a.active {
    background: rgba(120, 140, 100, 0.12);
    color: var(--accent);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.88rem;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.1px;
    user-select: none;
    color: var(--nav-text);
    background: none;
    border: none;
    font-family: inherit;
}
.nav-dropdown-toggle:hover {
    background: rgba(120, 140, 100, 0.12);
    color: var(--accent);
}
.nav-dropdown-toggle .arrow {
    font-size: 0.6rem;
    transition: transform 0.25s;
}
.nav-dropdown.open .nav-dropdown-toggle .arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    min-width: 220px;
    max-height: 420px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    z-index: 1001;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 0;
    white-space: nowrap;
    color: var(--nav-text);
    text-decoration: none;
    transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
    background: rgba(120, 140, 100, 0.1);
    color: var(--accent);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--nav-text);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
    padding: 1rem;
    overflow-y: auto;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    display: block;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--nav-text);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active {
    background: rgba(120, 140, 100, 0.12);
    color: var(--accent);
}
.mobile-menu .mobile-divider { height: 1px; background: var(--border); margin: 0.4rem 0; }
.mobile-menu .mobile-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    padding: 0.5rem 1rem 0.2rem;
}

/* ========== PAGE SPECIFIC STYLES (Seasons) ========== */
.container {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 2.2rem 1.8rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 2.6rem;
}

.seasonal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a8b6b;
    background: rgba(245, 250, 240, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid #c5d1b0;
    padding: 0.35rem 1.8rem;
    border-radius: 30px;
    margin-bottom: 0.9rem;
}
.seasonal-badge span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d4a843;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

h1 {
    font-size: 2.8rem;
    font-weight: 480;
    letter-spacing: 1.2px;
    color: #3f4a3a;
    margin-bottom: 0.3rem;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
    border-bottom: 1.5px solid #cfd6b8;
    display: inline-block;
    padding-bottom: 0.5rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    letter-spacing: 0.5px;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.9rem;
    margin-top: 0.2rem;
}

.palette-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(0,0,0,0.04), 0 0 0 1px rgba(180, 190, 160, 0.3);
    overflow: hidden;
    transition: transform var(--transition), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.palette-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(210, 180, 140, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}
.palette-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.07), 0 0 0 1px rgba(160, 180, 140, 0.5);
}

.color-strip {
    display: flex;
    width: 100%;
    height: 105px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.color-swatch {
    flex: 1;
    position: relative;
    transition: filter 0.2s, transform 0.2s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
}
.color-swatch:hover {
    filter: brightness(0.94);
    transform: scaleY(1.04);
    z-index: 3;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.swatch-hex {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255,255,250,0.95);
    background: rgba(30,30,20,0.4);
    padding: 3px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}
.color-swatch:hover .swatch-hex { opacity: 1; }
.swatch-hex.light-text {
    color: rgba(30,30,20,0.9);
    background: rgba(255,255,245,0.75);
}

.palette-info {
    padding: 1rem 1.2rem 0.9rem 1.2rem;
    background: transparent;
    position: relative;
    z-index: 2;
}
.palette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}
.palette-name {
    font-weight: 650;
    font-size: 1.1rem;
    letter-spacing: 0.4px;
    color: #3f4a3a;
    border-bottom: 2px dotted #b7c2a2;
    padding-bottom: 2px;
}
.copy-group-btn {
    background: #f4f7ef;
    border: 1px solid #c0cdb0;
    padding: 0.38rem 0.9rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 550;
    color: #5a6b4a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.25s;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.copy-group-btn:hover {
    background: #e2ebd5;
    border-color: #9ab07a;
    color: #3a4a2e;
    box-shadow: 0 2px 8px rgba(120, 150, 90, 0.2);
}

.color-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
    margin-top: 0.2rem;
}
.color-tag {
    font-size: 0.7rem;
    background: #f7f9f3;
    color: #5a6b4a;
    padding: 0.26rem 0.75rem;
    border-radius: 18px;
    font-weight: 440;
    letter-spacing: 0.15px;
    white-space: nowrap;
    border: 0.5px solid #d5dec5;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    cursor: pointer;
}
.color-tag:hover {
    background: #e2ebd5;
    border-color: #9ab07a;
    transform: translateY(-1px);
}
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    opacity: 0.9;
    box-shadow: 0 0 4px rgba(0,0,0,0.06);
}

.footer-note {
    margin-top: 3.4rem;
    text-align: center;
    color: #8c947a;
    font-size: 0.82rem;
    font-weight: 380;
    border-top: 1px solid #d2dbb8;
    padding-top: 1.7rem;
    width: 100%;
    max-width: 620px;
    letter-spacing: 0.5px;
}

.toast-message {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: #3f4a3a;
    color: #f4f7ef;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 8px 22px rgba(0,0,0,0.15);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.5px;
    border: 1px solid #9ab07a;
}
.toast-message.show { opacity: 1; }

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    .palette-card { box-shadow: 0 6px 18px rgba(0,0,0,0.3), 0 0 0 1px rgba(80,90,70,0.3); }
    .palette-name { color: #d5dfc4; border-bottom-color: #5a6b4a; }
    .color-tag { background: #2e322a; color: #c5d1b0; border-color: #4a5a3e; }
    .color-tag:hover { background: #3e4438; border-color: #9ab07a; }
    .copy-group-btn { background: #2e322a; border-color: #4a5a3e; color: #c5d1b0; }
    .copy-group-btn:hover { background: #3e4438; color: #e2ebd5; }
    h1 { color: #dde5cd; }
    .subtitle { color: #a0ad8c; border-bottom-color: #4a5a3e; }
    .seasonal-badge { color: #a0ad8c; border-color: #4a5a3e; background: rgba(30,32,28,0.7); }
    .footer-note { color: #8c947a; border-top-color: #4a5a3e; }
    .toast-message { background: #dde5cd; color: #1e1f1c; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .container { padding: 1.4rem 1rem; }
    h1 { font-size: 2rem; }
    .palette-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.3rem; }
}
@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
}