/* 1. RESET & BASE LAYOUT */
* {
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* We remove display: flex from body to prevent Firefox centering bugs */
}

/* 2. THE POSTCARD CENTERING WRAPPER */
.main-wrapper {
    display: flex;
    flex-direction: column; /* FORCES stack: Checkbox -> Postcard -> Footer */
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px; /* Space for the hamburger at the top */
}

.postcard {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 450px;
    width: 95%;
    text-align: center;
}

.postcard img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 5px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 3. RATINGS & TIMER */
#stars {
    margin-top: 25px;
    padding: 10px;
    background: #fff9e6;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

#stars svg {
    transition: transform 0.2s ease-in-out;
}

#stars a:hover svg {
    transform: scale(1.2);
}

#timer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
}

/* 4. HAMBURGER MENU (FIXED INTERFACE) */

/* Hide the checkbox */
/* HAMBURGER MENU - BULLETPROOF HIDE */
#menu__toggle {
    position: fixed;   /* Remove from layout flow */
    top: -500px;       /* Kick it way off the top of the screen */
    left: -500px;      /* Kick it way off the left */
    opacity: 0;        /* Make it 100% transparent */
    pointer-events: none; /* Make it unclickable */
    z-index: -1;       /* Put it behind everything */
}

/* The 3-bar button */
.menu__btn {
    position: fixed;
    top: 25px;
    left: 20px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 10002;
}

/* Draw the bars */
.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #616161;
    transition-duration: .25s;
    content: '';
}
.menu__btn > span::before { top: -8px; }
.menu__btn > span::after { top: 8px; }

/* The slide-out container */
.menu__box {
    display: block;
    position: fixed;
    top: 0;
    left: -250px; /* Hidden off-screen to the left */
    width: 250px;
    height: 100vh;
    margin: 0;
    padding: 80px 0;
    list-style: none; /* Kills bullets */
    background-color: #ECEFF1;
    box-shadow: 2px 0 6px rgba(0, 0, 0, .4);
    transition: left .25s ease-in-out;
    z-index: 10001;
}

/* Menu Links */
.menu__item {
    display: block;
    padding: 12px 24px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition-duration: .25s;
}
.menu__item:hover {
    background-color: #CFD8DC;
}

/* 5. TRIGGER LOGIC (The "Wiring") */
#menu__toggle:checked ~ .menu__box {
    left: 0 !important;
}

/* Animate bars to "X" */
#menu__toggle:checked ~ .menu__btn > span {
    transform: rotate(45deg);
}
#menu__toggle:checked ~ .menu__btn > span::before {
    top: 0;
    transform: rotate(0);
}
#menu__toggle:checked ~ .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
}


/* ARCHIVE GRID */
.kitty-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
}

.archive-item {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 140px; /* Perfect for 2 or 3 columns on phone */
}

.thumb-wrapper img {
    width: 100%;
    height: 120px;
    object-fit: cover; /* Keeps the grid uniform */
    border-radius: 5px;
    cursor: pointer;
}

.archive-stats {
    margin-top: 8px;
    text-align: center;
}

.date-label {
    font-size: 0.75rem;
    color: #888;
    display: block;
}

.mini-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.avg-text {
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 4px;
}

/* FULLSCREEN OVERLAY */
.overlay {
    display: none;
    position: fixed;
    z-index: 20000; /* Above the hamburger menu */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.overlay-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* NEWS FEED SECTION */
.news-container {
    max-width: 450px;
    width: 95%;
    margin-top: 30px;
    text-align: left; /* Aligns text better for reading news */
}

.news-title {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 4px solid #ffd700; /* Gold accent to match stars */
    padding-left: 10px;
}

.news-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-date {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-text {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}


/* COMMENTS SECTION */
.comment-card {
    background: #f9f9f9;
    border-left: 3px solid #616161; /* Grey accent for users */
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.comment-author {
    font-weight: bold;
    font-size: 0.85rem;
    color: #333;
}

.comment-body {
    font-size: 0.9rem;
    color: #555;
    margin-top: 4px;
}

/* User registrations form */
/* REGISTRATION FORM STYLES */
.register-form {
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafafa;
}

.form-input:focus {
    border-color: #ffd700; /* Gold focus to match stars */
    outline: none;
    background: #fff;
}

.signup-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.signup-btn:hover {
    background: #218838;
}

.form-footer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.form-link {
    color: #007bff;
    text-decoration: none;
}

/* HONEYPOT BOT BAIT */
/* THE BOT TRAP - invisible to humans, irresistible to bots */
.field-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none; /* Just in case */
}

/* Comments */
/* COMMENT FEED STYLES */
.comment-list {
    margin-top: 20px;
    text-align: left;
}

.comment-item {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comment-meta {
    font-size: 0.75rem;
    font-weight: bold;
    color: #ffd700; /* Gold to match our theme */
    margin-bottom: 5px;
}

.comment-body {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}

/* more comment style */
/* Container for the chat-style bar */
.comment-input-wrapper {
    display: flex;
    width: 100%;
    gap: 10px; /* Space between box and button */
    box-sizing: border-box; /* Includes padding in width calculation */
}

/* The actual text box */
.comment-input {
    flex-grow: 1; /* Forces it to fill all remaining space */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 0; /* Prevents input from resisting shrinking in flexbox */
}

/* The "Post" button */
.comment-btn {
    flex-shrink: 0; /* Prevents the button from being crushed */
    background: #ffd700;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap; /* Keeps "Post" on one line */
}

.comment-btn:hover {
    background: #ffcc00;
}

.comment-bubble.is-reply {
    margin-left: 40px; /* The "Nested" Indent */
    border-left: 2px solid #ffd700;
    background: #fdfdfd;
}

.avatar-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #eee;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

/* archive comments */
.overlay-wrapper {
    display: flex;
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 10px;
    border-radius: 8px;
}
.comment-sidebar {
    width: 300px;
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid #ddd;
    color: #333;
}
.comment-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* ------ THE COMMAND BAR ------- */
.top-bar {
   background-color: #1a1a1a; /* Sleek Off-Black */
   width: 100%;
   height: 45px;
   position: fixed; /* Stays at the top while scrolling */
   padding: 0 15px;
   background: #000;
   top: 0;
   left: 0;
   display: flex;
   align-items: center;
   justify-content: space-between;
   z-index: 10000; /* Just below the hamburger but above the postcard */
   box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.top-bar-title {
   color: #ffd700; /* Gold to match your stars */
   font-family: 'Courier New', monospace;
   font-weight: bold;
   letter-spacing: 2px;
   text-transform: uppercase;
   font-size: 0.9rem;
}

/* --------- ADJUSTING THE HAMBURGER -------- */
/* We need to move the button into the bar and change its color to white */
.menu__btn {
   position: fixed;
   top: 17px !important; /* Center it vertically in the 60px bar */
   left: 20px;
   width: 26px;
   height: 26px;
   cursor: pointer;
   z-index: 10002 !important; /* HIGHEST LAYER: Keeps the X on top */
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
   background-color: #fff !important; /* Make the bars white so they pop on black */
}

/* 4. Ensure the Slide-out Box doesn't hide the bar */
.menu__box {
    top: 45px !important; /* Starts exactly where the bar ends */
    height: calc(100vh - 45px); /* Fills the rest of the screen */
    z-index: 10001; /* Between the bar and the button */
}

/* --------- FIXING THE WRAPPER PADDING ----------- */
.main-wrapper {
   padding-top: 100px !important; /* Push the postcard down so it doesn't hide under the bar */
}

/* Forces the three areas to take up equal space */
.nav-left, .nav-center, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav-center { justify-content: center; }
.nav-right { justify-content: flex-end; }

.brand-name {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: sans-serif;
}

.nav-icon {
    position: relative;
    text-decoration: none;
    line-height: 0;
}

.bell-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    background: #ff4444;
    border-radius: 50%;
    border: 1px solid #000;
}


