:root {
    --bg-color: #23120b;
    --card-bg: rgba(61, 37, 25, 0.85);
    --accent-color: #d97706;
    --text-color: #fef3c7;
    --muted-text: #f59e0b;
    --sidebar-bg: #32190f;
    --celebrate-color: #f97316;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c1a11 0%, #170a05 100%);
    color: var(--text-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
}

/* Falling Fall Items Animation */
.ambient-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.ambient-item {
    position: absolute;
    display: block;
    cursor: default;
    user-select: none;
    top: -50px;
    font-size: 24px;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(105vh) rotate(720deg) translateX(100px);
        opacity: 0;
    }
}

/* Main Container */
.container {
    text-align: center;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(217, 119, 6, 0.3);
    max-width: 650px;
    width: 85%;
    backdrop-filter: blur(8px);
    z-index: 2;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 20px;
}

/* Main Content Area for Blog/Article Pages */
main {
    text-align: left;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(217, 119, 6, 0.3);
    max-width: 900px;
    width: 90%;
    backdrop-filter: blur(8px);
    z-index: 2;
    position: relative;
    margin: 20px auto;
}

/* Cozy Cats Row */
.cat-box {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: -10px;
    margin-top: -10px;
}

.cat {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.cat:hover {
    transform: translateY(-4px) scale(1.05);
}

h1 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-top: 0.5rem;
}

.subtitle {
    color: var(--muted-text);
    margin-top: 0;
    font-style: italic;
    font-size: 1.1rem;
}

/* Countdown Grid */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0 1rem 0;
}

.time-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem 0.5rem;
    border-radius: 12px;
    border-bottom: 4px solid var(--accent-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.time-box span {
    display: block;
    font-size: 2.8rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.time-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #f59e0b;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Active Fall Celebration Banner */
#celebration-box {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(249, 115, 22, 0.15);
    border: 2px dashed var(--celebrate-color);
    border-radius: 15px;
    animation: pulse 2s infinite alternate;
}

#celebration-box h2 {
    font-size: 2.5rem;
    color: var(--celebrate-color);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

#celebration-box p {
    font-size: 1.2rem;
    margin: 0;
    color: #fef3c7;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(249, 115, 22, 0.2); }
    100% { transform: scale(1.02); box-shadow: 0 0 25px rgba(249, 115, 22, 0.4); }
}

/* Hamburger Menu Button */
.hamburger-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
    font-size: 1.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.hamburger-btn:hover { background: var(--accent-color); }

/* Sidebar Settings Menu */
.sidebar {
    position: fixed;
    top: 0;
    right: -340px;
    width: 300px;
    height: 100%;
    background: var(--sidebar-bg);
    box-shadow: -5px 0 25px rgba(0,0,0,0.7);
    z-index: 9;
    transition: right 0.3s ease-in-out;
    padding: 80px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 1px solid rgba(217, 119, 6, 0.2);
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar.open { right: 0; }

.sidebar h2 {
    color: var(--accent-color);
    margin-top: 0;
    border-bottom: 1px solid rgba(217, 119, 6, 0.3);
    padding-bottom: 0.5rem;
}

.sidebar h3 {
    color: var(--accent-color);
    margin: 0.5rem 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 6px;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.2);
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: rgba(217, 119, 6, 0.3);
    border-color: var(--accent-color);
}

.sidebar-divider {
    height: 1px;
    background: rgba(217, 119, 6, 0.2);
    margin: 1rem 0;
}

/* Site Header */
.site-header {
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 3;
}

.site-title {
    color: var(--accent-color);
    margin: 0;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    color: var(--muted-text);
    font-size: 0.9rem;
}

select {
    background: #1e0f09;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    font-size: 0.95rem;
    max-width: 100%;
}

select optgroup {
    background: #2c1a11;
    color: #f59e0b;
    font-style: normal;
    font-weight: bold;
}

select option {
    color: var(--text-color);
    background: #1e0f09;
}

select:focus { box-shadow: 0 0 5px var(--accent-color); }

.hidden { display: none !important; }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 8;
    display: none;
}

.menu-overlay.show { display: block; }

/* Scrollbar Styling */
main::-webkit-scrollbar {
    width: 8px;
}

main::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb:hover {
    background: var(--muted-text);
}

/* Link Styling */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:visited {
    color: var(--accent-color);
}

a:hover {
    color: var(--muted-text);
    text-decoration: underline;
}

a:active {
    color: var(--accent-color);
}

/* Site Title Link */
.site-title a {
    color: inherit;
    text-decoration: none;
    transition: text-shadow 0.2s ease;
}

.site-title a:visited {
    color: inherit;
}

.site-title a:hover {
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
    text-decoration: none;
}

.site-title a:active {
    color: inherit;
}

/* Blog CTA on Homepage */
.blog-link-wrapper {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(217, 119, 6, 0.2);
}

.blog-cta {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-cta:hover {
    background: var(--accent-color);
    color: var(--bg-color) !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}
