/*
    File: themes.css
    Description: Contains all the website's themes as CSS classes.
    The appropriate class will be added to the <body> tag by PHP.
*/

@font-face {
    font-family: 'marlboro';
    src: url('../fonts/marlboro-webfont.eot');
    src: url('../fonts/marlboro-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/marlboro-webfont.woff2') format('woff2'),
         url('../fonts/marlboro-webfont.woff') format('woff'),
         url('../fonts/marlboro-webfont.ttf') format('truetype'),
         url('../fonts/marlboro-webfont.svg#marlbororegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* ==========================================================================
   "No Theme" THEME
   ========================================================================== */
   .theme-no-theme {
    /* Shared Retro-style CSS for blablabla.com */
    --body-bg-color: #e0e0e0;
    --body-text-color: #333;
    --container-bg-color: #f7f7f7;
    --container-border-color: #ccc;
    --container-box-shadow: 5px 5px 15px #b3b3b3;
    --heading-color: #555;
    --heading-border-color: #aaa;
    --link-color: #333;
    --link-hover-color: var(--focus-color);
    --nav-border-color: #333;
    --review-meta-color: #666;
    --review-text-border: #ddd;
    --quote-bg-color: #f0f0f0;
    --quote-border-color: #bbb;
    --quote-cite-color: #777;
    --review-item-border: #eee;
    --review-grid-bg: #f7f7f7;
    --review-grid-even-bg: #f0f0f0;
    --browse-section-bg: #f0f0f0;
    --browse-section-border: #ccc;
    --button-bg: #e0e0e0;
    --button-hover-bg: #d4d4d4;
    --browse-item-border: #ccc;
    --focus-color: gold;
    --rating-empty-color: #888;
    --stats-list-bg: var(--container-bg-color);
    --stats-list-alt-bg: #f0f0f0;
}
.theme-no-theme body {
    background-color: var(--body-bg-color);
    color: var(--body-text-color);
    font-family: 'Courier New', monospace;
}
.theme-no-theme h1,
.theme-no-theme h2,
.theme-no-theme h3,
.theme-no-theme h4,
.theme-no-theme .site-title {
    font-family: 'Courier New', monospace;
    color: var(--heading-color);
}


/* ==========================================================================
   DEFAULT DAY THEME
   ========================================================================== */
.theme-default-day {
    /* Shared Retro-style CSS for blablabla.com */
    --body-bg-color: #e0e0e0;
    --body-text-color: #333;
    --container-bg-color: #f7f7f7;
    --container-border-color: #ccc;
    --container-box-shadow: 5px 5px 15px #b3b3b3;
    --heading-color: #555;
    --heading-border-color: #aaa;
    --link-color: #333;
    --link-unvisited-color: #333;
    --link-visited-color: #333;
    --link-hover-color: var(--focus-color);
    --nav-border-color: #333;
    --review-meta-color: #666;
    --review-text-border: #ddd;
    --quote-bg-color: #f0f0f0;
    --quote-border-color: #bbb;
    --quote-cite-color: #777;
    --review-item-border: #eee;
    --review-grid-bg: #f7f7f7;
    --review-grid-even-bg: #f0f0f0;
    --browse-section-bg: #f0f0f0;
    --browse-section-border: #ccc;
    --button-bg: #e0e0e0;
    --button-hover-bg: #d4d4d4;
    --browse-item-border: #ccc;
    --focus-color: gold;
    --rating-empty-color: #888;
    --stats-list-bg: var(--container-bg-color);
    --stats-list-alt-bg: #f0f0f0;
    --hr-height: 40px;
    --hr-graphic: url('../img/line/default-day-line.svg');
    --hr-size: 100% 50%;
}
.theme-default-day body {
    background-color: var(--body-bg-color);
    color: var(--body-text-color);
    font-family: 'Courier New', monospace;
}
.theme-default-day h1,
.theme-default-day h2,
.theme-default-day h3,
.theme-default-day h4,
.theme-default-day .site-title {
    font-family: 'marlboro', Georgia, serif;
    color: var(--heading-color);
}

/* Corrected font size rules to override specific selectors like .site-header h1 and .sub-sub-heading */
.theme-default-day .site-header h1,
.theme-default-day .site-title {
    font-size: 5em;
}
.theme-default-day .sub-heading {
    font-size: 3.5em;
}
.theme-default-day .sub-sub-heading {
    font-size: 2.5em;
}

/* ==========================================================================
   DEFAULT NIGHT THEME
   ========================================================================== */
.theme-default-night {
    --body-bg-color: #2c2c2c;
    --body-text-color: #e0e0e0;
    --container-bg-color: #3b3b3b;
    --container-border-color: #555;
    --container-box-shadow: 5px 5px 15px #1a1a1a;
    --heading-color: #ccc;
    --heading-border-color: #888;
    --link-color: #e0e0e0;
    --link-unvisited-color: #87ceeb; /* New variable for unvisited links */
    --link-visited-color: #e0e0e0; /* New variable for visited links */
    --link-hover-color: var(--focus-color);
    --nav-border-color: #e0e0e0;
    --review-meta-color: #b3b3b3;
    --review-text-border: #555;
    --quote-bg-color: #333;
    --quote-border-color: #666;
    --quote-cite-color: #999;
    --review-item-border: #444;
    --review-grid-bg: #3b3b3b;
    --review-grid-even-bg: #333333;
    --browse-section-bg: #333333;
    --browse-section-border: #555;
    --button-bg: #4a4a4a;
    --button-hover-bg: #5c5c5c;
    --browse-item-border: #555;
    --focus-color: yellow;
    --rating-empty-color: #666;
    --nav-link-color: #fff;
    --nav-link-hover-color: var(--focus-color);
    --stats-list-bg: var(--container-bg-color);
    --stats-list-alt-bg: #444444;
    --hr-height: 40px;
    --hr-graphic: url('../img/line/default-night-line.svg');
    --hr-size: 100% 50%;
}

/* RE-ADDED for improved night theme readability */
.theme-default-night a:link {
    color: var(--link-unvisited-color); /* Now using a variable */
}

.theme-default-night a:visited {
    color: var(--link-visited-color); /* Now using a new variable */
}

.theme-default-night a:hover,
.theme-default-night a:focus {
    color: var(--focus-color);
}
.theme-default-night body {
    background-color: var(--body-bg-color);
    color: var(--body-text-color);
    font-family: 'Courier New', monospace;
}
.theme-default-night h1,
.theme-default-night h2,
.theme-default-night h3,
.theme-default-night h4,
.theme-default-night .site-title {
    font-family: 'marlboro', Georgia, serif;
    color: var(--heading-color);
}

/* Corrected font size rules to override specific selectors like .site-header h1 and .sub-sub-heading */
.theme-default-night .site-header h1,
.theme-default-night .site-title {
    font-size: 5em;
}
.theme-default-night .sub-heading {
    font-size: 3.5em;
}
.theme-default-night .sub-sub-heading {
    font-size: 2.5em;
}

/* New: Search form specific styles for default night theme */
.theme-default-night .search-form input[type="text"],
.theme-default-night .search-form button {
    background-color: var(--button-bg);
    border-color: var(--container-border-color);
    color: var(--body-text-color);
}
.theme-default-night .search-form input[type="text"]:focus {
    outline: 2px solid var(--focus-color);
    border-color: var(--focus-color);
}
.theme-default-night .search-form button:hover,
.theme-default-night .search-form button:focus {
    background-color: var(--button-hover-bg);
    color: var(--focus-color);
}


/* New: Contact form specific styles for default night theme */
.theme-default-night .form-group input[type="text"],
.theme-default-night .form-group input[type="email"],
.theme-default-night .form-group textarea {
    background-color: var(--button-bg);
    border-color: var(--container-border-color);
    color: var(--body-text-color);
}
.theme-default-night .form-group input[type="text"]:focus,
.theme-default-night .form-group input[type="email"]:focus,
.theme-default-night .form-group textarea:focus {
    outline: 2px solid var(--focus-color);
    border-color: var(--focus-color);
}
.theme-default-night .form-group button {
    background-color: var(--button-bg);
    border-color: var(--container-border-color);
    color: var(--body-text-color);
}
.theme-default-night .form-group button:hover {
    background-color: var(--button-hover-bg);
}
/* ADDED: Focus style for the button */
.theme-default-night .form-group button:focus {
    outline: 2px solid var(--focus-color);
    border-color: var(--focus-color);
}

/* ==========================================================================
   HALLOWEEN DAY THEME
   ========================================================================== */
.theme-halloween-day {
    --body-bg-color: #f7f3e9;
    --body-text-color: #333;
    --container-bg-color: #fce4b3;
    --container-border-color: #ff8c00;
    --container-box-shadow: 5px 5px 15px rgba(255, 140, 0, 0.5);
    --heading-color: #8b4513;
    --heading-border-color: #a0522d;
    --link-color: #8b4513;
    --link-unvisited-color: #8b4513;
    --link-visited-color: #8b4513;
    --link-hover-color: var(--focus-color);
    --nav-border-color: #a0522d;
    --review-meta-color: #696969;
    --review-text-border: #d2691e;
    --quote-bg-color: #fff8dc;
    --quote-border-color: #ff8c00;
    --quote-cite-color: #8b4513;
    --review-item-border: #d2691e;
    --review-grid-bg: #ffe4b5;
    --review-grid-even-bg: #f8e4c7;
    --browse-section-bg: #ffe4b5;
    --browse-section-border: #d2691e;
    --button-bg: #ff8c00;
    --button-hover-bg: #ff7f50;
    --browse-item-border: #d2691e;
    --focus-color: #ffd700;
    --rating-empty-color: #8b4513;
    --stats-list-bg: var(--container-bg-color);
    --stats-list-alt-bg: #f5d4a3;
}

/* Corrected font size rules to override specific selectors */
.theme-halloween-day .site-header h1,
.theme-halloween-day .site-title {
    font-size: 5em;
}
.theme-halloween-day .sub-heading {
    font-size: 3.5em;
}
.theme-halloween-day .sub-sub-heading {
    font-size: 2.5em;
}


/* ==========================================================================
   HALLOWEEN NIGHT THEME
   ========================================================================== */
.theme-halloween-night {
    --body-bg-color: #0d0d0d;
    --body-text-color: #e0e0e0;
    --container-bg-color: #1a1a1a;
    --container-border-color: #444;
    --container-box-shadow: 5px 5px 15px #000;
    --heading-color: #ff8c00;
    --heading-border-color: #a0522d;
    --link-color: #ff8c00;
    --link-unvisited-color: #ff8c00;
    --link-visited-color: #ff8c00;
    --link-hover-color: var(--focus-color);
    --nav-border-color: #ff8c00;
    --review-meta-color: #d2691e;
    --review-text-border: #444;
    --quote-bg-color: #2c2c2c;
    --quote-border-color: #ff8c00;
    --quote-cite-color: #d2691e;
    --review-item-border: #444;
    --review-grid-bg: #1a1a1a;
    --review-grid-even-bg: #222;
    --browse-section-bg: #222;
    --browse-section-border: #444;
    --button-bg: #ff4500;
    --button-hover-bg: #ff6347;
    --browse-item-border: #444;
    --focus-color: #ff4500;
    --rating-empty-color: #555;
    --nav-link-color: #ff8c00;
    --nav-link-hover-color: var(--focus-color);
    --stats-list-bg: var(--container-bg-color);
    --stats-list-alt-bg: #222222;
}

/* Corrected font size rules to override specific selectors */
.theme-halloween-night .site-header h1,
.theme-halloween-night .site-title {
    font-size: 5em;
}
.theme-halloween-night .sub-heading {
    font-size: 3.5em;
}
.theme-halloween-night .sub-sub-heading {
    font-size: 2.5em;
}


/* ==========================================================================
   CHRISTMAS DAY THEME
   ========================================================================== */
.theme-christmas-day {
    --body-bg-color: #f0f5f7;
    --body-text-color: #2c3e50;
    --container-bg-color: #ffffff;
    --container-border-color: #e74c3c;
    --container-box-shadow: 5px 5px 15px rgba(231, 76, 60, 0.5);
    --heading-color: #c0392b;
    --heading-border-color: #27ae60;
    --link-color: #2980b9;
    --link-unvisited-color: #2980b9;
    --link-visited-color: #2980b9;
    --link-hover-color: var(--focus-color);
    --nav-border-color: #27ae60;
    --review-meta-color: #7f8c8d;
    --review-text-border: #2ecc71;
    --quote-bg-color: #f8f8f8;
    --quote-border-color: #e74c3c;
    --quote-cite-color: #2c3e50;
    --review-item-border: #27ae60;
    --review-grid-bg: #fcfcfc;
    --review-grid-even-bg: #f9f9f9;
    --browse-section-bg: #fcfcfc;
    --browse-section-border: #e74c3c;
    --button-bg: #e74c3c;
    --button-hover-bg: #c0392b;
    --browse-item-border: #27ae60;
    --focus-color: gold;
    --rating-empty-color: #7f8c8d;
    --nav-link-color: #2c3e50;
    --nav-link-hover-color: var(--focus-color);
    --stats-list-bg: var(--container-bg-color);
    --stats-list-alt-bg: #f0f0f0;
}

/* Corrected font size rules to override specific selectors */
.theme-christmas-day .site-header h1,
.theme-christmas-day .site-title {
    font-size: 5em;
}
.theme-christmas-day .sub-heading {
    font-size: 3.5em;
}
.theme-christmas-day .sub-sub-heading {
    font-size: 2.5em;
}


/* ==========================================================================
   CHRISTMAS NIGHT THEME
   ========================================================================== */
.theme-christmas-night {
    --body-bg-color: #1c2b29;
    --body-text-color: #ecf0f1;
    --container-bg-color: #2c3e50;
    --container-border-color: #f1c40f;
    --container-box-shadow: 5px 5px 15px rgba(241, 196, 15, 0.5);
    --heading-color: #e74c3c;
    --heading-border-color: #f1c40f;
    --link-color: #f1c40f;
    --link-unvisited-color: #f1c40f;
    --link-visited-color: #f1c40f;
    --link-hover-color: var(--focus-color);
    --nav-border-color: #f1c40f;
    --review-meta-color: #bdc3c7;
    --review-text-border: #f1c40f;
    --quote-bg-color: #34495e;
    --quote-border-color: #e74c3c;
    --quote-cite-color: #f1c40f;
    --review-item-border: #e74c3c;
    --review-grid-bg: #2c3e50;
    --review-grid-even-bg: #34495e;
    --browse-section-bg: #34495e;
    --browse-section-border: #e74c3c;
    --button-bg: #e74c3c;
    --button-hover-bg: #c0392b;
    --browse-item-border: #f1c40f;
    --focus-color: #f1c40f;
    --rating-empty-color: #555;
    --nav-link-color: #f1c40f;
    --nav-link-hover-color: var(--focus-color);
    --stats-list-bg: var(--container-bg-color);
    --stats-list-alt-bg: #3c526a;
}
/* Corrected font size rules to override specific selectors */
.theme-christmas-night .site-header h1,
.theme-christmas-night .site-title {
    font-size: 5em;
}
.theme-christmas-night .sub-heading {
    font-size: 3.5em;
}
.theme-christmas-night .sub-sub-heading {
    font-size: 2.5em;
}

/* ==========================================================================
   GLOBAL LAYOUT AND STYLES
   ========================================================================== */
body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--body-bg-color);
    color: var(--body-text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--container-bg-color);
    border: 1px solid var(--container-border-color);
    box-shadow: var(--container-box-shadow);
    min-height: 80vh;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Header */
.site-header {
    text-align: center;
    border-bottom: 1px solid var(--nav-border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.site-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: var(--heading-color);
}

.site-header h1 a {
    text-decoration: none;
    color: var(--heading-color);
}
.theme-default-night .site-header h1 a:hover {
    color: var(--link-hover-color);
}

.site-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-nav a, .site-nav select {
    text-decoration: none;
    color: var(--link-unvisited-color);
    transition: color 0.3s ease;
}

.theme-default-day .site-nav a:hover,
.theme-default-day .site-nav a.active {
    color: #007bff;
}
.theme-default-night .site-nav a,
.theme-default-night .site-nav a:link,
.theme-default-night .site-nav a:visited {
    color: var(--nav-link-color);
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--link-hover-color);
}
.theme-default-night .site-nav a:hover,
.theme-default-night .site-nav a.active,
.theme-default-night .site-nav a:focus {
    color: var(--nav-link-hover-color);
}

/* NEW RULE FOR INCREASING FONT SIZE FOR DEFAULT DAY AND NIGHT THEMES (using the Marlboro font)*/
.theme-default-day h1,
.theme-default-day h2,
.theme-default-day h3,
.theme-default-day h4,
.theme-default-day .site-title,
.theme-default-day .sub-heading,
.theme-default-day .sub-sub-heading,
.theme-default-day .review-item h3,
.theme-default-day .quote h3 {
    font-size: 2.25em;
}
.theme-default-night h1,
.theme-default-night h2,
.theme-default-night h3,
.theme-default-night .site-title,
.theme-default-night .sub-heading,
.theme-default-night .sub-sub-heading,
.theme-default-night .review-item h3,
.theme-default-night .quote h3 {
    font-size: 2.25em;
}
.quote h3 {
    font-size: 2.5em;
}


/* Main Content */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
    }
}

.sub-heading {
    border-bottom: 1px solid var(--heading-border-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.sub-sub-heading {
    border-bottom: 1px solid var(--heading-border-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
    color: var(--heading-color);
    font-size: 1.1em;
}

/* Browse Section */
.browse-section {
    background-color: var(--browse-section-bg);
    padding: 15px;
    border: 1px solid var(--browse-section-border);
    border-radius: 5px;
}

.browse-section ul {
    list-style: none;
    padding: 0;
}

.browse-section li {
    margin-bottom: 5px;
}

.browse-section a {
    text-decoration: none;
    color: var(--link-unvisited-color);
    transition: color 0.3s ease;
}

.browse-section a:hover,
.browse-section a:focus {
    color: var(--link-hover-color);
}
/* New CSS: Add font-weight bold for hover and active states of browse links */
.browse-list a:hover,
.browse-list a.active,
.browse-list a:focus {
    font-weight: bold;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Review List */
.review-list-main {
    margin-top: 20px;
}

.review-item {
    background-color: var(--review-grid-bg);
    border: 1px solid var(--review-item-border);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.review-item:nth-child(even) {
    background-color: var(--review-grid-even-bg);
}

.review-details h3 a {
    text-decoration: none;
    color: var(--heading-color);
}
/* ADDED: Ensure the hover on review list item titles uses the focus color */
.review-details h3 a:hover,
.review-details h3 a:focus {
    color: var(--focus-color);
}

/* NEW RULE: Make review grid links change color on hover in night mode */
.theme-default-night .review-grid .review-item a:hover,
.theme-default-night .review-grid .review-item a:focus {
    color: var(--focus-color);
}

.review-item h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.review-item .date {
    font-size: 0.9em;
    color: var(--review-meta-color);
    margin-bottom: 10px;
}

.review-item .review-text {
    border-left: 2px solid var(--review-text-border);
    padding-left: 10px;
}

/* Quote Block */
.quote {
    background-color: var(--quote-bg-color);
    border-left: 5px solid var(--quote-border-color);
    padding: 15px;
    margin: 20px 0;
}

/* Updated font size for Featured Quote heading */
.quote h3 {
    border-bottom: none;
    margin-bottom: 5px;
}

.quote blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1.1em;
}

.quote cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-size: 0.9em;
    color: var(--quote-cite-color);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    text-decoration: none;
    color: var(--link-unvisited-color);
    padding: 5px 10px;
    border: 1px solid var(--browse-section-border);
    border-radius: 5px;
    margin: 0 5px;
}
.pagination a:visited, .pagination span {
    text-decoration: none;
    color: var(--link-visited-color);
    padding: 5px 10px;
    border: 1px solid var(--browse-section-border);
    border-radius: 5px;
    margin: 0 5px;
}

.pagination a:hover {
    background-color: var(--button-hover-bg);
}

/* Footer */
.site-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--nav-border-color);
    margin-top: 20px;
    font-size: 0.8em;
}

        /* New styles for the search form */
        .search-form {
            display: flex;
            gap: 5px;
        }
        .search-form input[type="text"] {
            flex-grow: 1;
            padding: 8px;
            font-family: 'Courier New', Courier, monospace;
        }
        .search-form button {
            padding: 8px;
            font-family: 'Courier New', Courier, monospace;
            white-space: nowrap;
        }
        /* ADDED: Hover style for the button */
        .search-form button:hover {
            color: var(--focus-color);
        }
        /* New styles for the contact form */
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
        }
        .form-group input[type="text"],
        .form-group input[type="email"],
        .form-group textarea {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
            font-family: 'Courier New', Courier, monospace;
        }
        .form-group textarea {
            height: 150px;
        }
        .form-group button {
            padding: 10px 20px;
            font-family: 'Courier New', Courier, monospace;
        }
        /* ADDED: Global focus styles for input and textarea */
        .search-form input[type="text"]:focus,
        .form-group input[type="text"]:focus,
        .form-group input[type="email"]:focus,
        .form-group textarea:focus {
            outline: 2px solid var(--focus-color);
            border-color: var(--focus-color);
        }
        /* ADDED: Global focus styles for buttons */
        .search-form button:focus,
        .form-group button:focus {
            outline: 2px solid var(--focus-color);
            border-color: var(--focus-color);
        }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: var(--container-bg-color);
    border: 1px solid var(--container-border-color);
    box-shadow: var(--container-box-shadow);
    padding: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5em;
    color: var(--body-text-color);
}

/* New CSS for the newspaper-style homepage layout */
.homepage-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.homepage-layout .review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.homepage-layout .review-item {
    padding: 10px;
    border: 1px solid var(--review-item-border);
    border-radius: 5px;
    background-color: var(--review-grid-bg);
}

.homepage-layout .review-item:nth-child(even) {
    background-color: var(--review-grid-even-bg);
}

@media (max-width: 768px) {
    .homepage-layout {
        grid-template-columns: 1fr;
    }
    .homepage-layout .review-grid {
        grid-template-columns: 1fr;
    }
}

/* New CSS for themed horizontal line */
.themed-line {
    width: 100%;
    height: var(--hr-height);
    background-image: var(--hr-graphic);
    background-repeat: var(--hr-repeat, no-repeat);
    background-size: var(--hr-size, 100% 100%);
    background-position: center;
    margin: 20px 0;
}

/* New style rule to force star ratings to use the Courier font */
.review-item .rating-stars-special {
    font-family: 'Courier New', Courier, monospace;
}

/* New style rule for the welcome message box */
.welcome-box {
    background-color: var(--browse-section-bg);
    padding: 15px;
    border: 1px solid var(--browse-section-border);
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Prevent the marlboro font from rendering in bold/strong */
h1, h2, h3, h4, .site-title, .site-header h1, .sub-heading, .sub-sub-heading {
    font-weight: normal !important;
}

/* New styles for stats list */
ul.stats-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
/* ADDED: ensure links inside the stats list also get the proper hover/focus color */
ul.stats-list a:hover,
ul.stats-list a:focus {
    color: var(--focus-color);
}


ul.stats-list li {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
}
/* Ensure alternating background on all screen sizes */
ul.stats-list li:nth-child(odd) {
    background-color: var(--stats-list-bg);
}
ul.stats-list li:nth-child(even) {
    background-color: var(--stats-list-alt-bg);
}

@media (min-width: 768px) {
    ul.stats-list li {
        width: 48%;
    }
    ul.stats-list li:nth-child(odd),
    ul.stats-list li:nth-child(even) {
        background-color: var(--stats-list-bg);
    }
    ul.stats-list li:nth-child(4n-1),
    ul.stats-list li:nth-child(4n-0) {
        background-color: var(--stats-list-alt-bg);
    }
}

/* ==========================================================================
   UPDATED LAYOUT FOR REVIEWS.PHP
   ========================================================================== */
   @media (min-width: 768px) {
    /* Use flexbox for the main content wrapper on wider screens */
    .content-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: row;
        gap: 20px;
    }

    /* Styles for the browse-section sidebar */
    .browse-section {
        width: 300px;
        flex-shrink: 0;
    }

    /* Styles for the main review list to fill remaining space */
    .review-list-main {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Specific styles for the reviews page that are theme-dependent */
/* General filter highlighting */
.theme-default-day .browse-item a.active {
    background-color: yellow;
    border-radius: 5px;
}

.theme-default-night .browse-item a.active {
    background-color: black;
    border-radius: 5px;
}

/* Star rating specific highlighting */
.rating-list-container {
    display: flex;
    align-items: center;
}

.rating-list {
    display: flex;
    padding: 0;
    margin: 0;
    gap: 0;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.rating-list li {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.rating-list a {
    display: inline-block;
    padding: 0;
    font-size: 1.5em;
    transition: color 0.2s ease;
    text-decoration: none;
    color: var(--body-text-color);
}

/* Active state for the stars (when clicked/toggled) */
.rating-list a.active-star {
    color: #ffc107;
}

/* Background for the active rating container */
.theme-default-day .rating-list.active-rating-bg {
    background-color: yellow;
    border-radius: 5px;
    padding: 0 5px;
}
.theme-default-night .rating-list.active-rating-bg {
    background-color: black;
    border-radius: 5px;
    padding: 0 5px;
}

/* Hover effect for the stars */
.rating-list:not(.active-rating-bg) a:hover,
.rating-list:not(.active-rating-bg) a:hover ~ a {
    color: var(--link-hover-color);
}

/* Styles for horizontal browse lists with a dot separator */
.browse-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.browse-list li {
    display: inline;
    margin-bottom: 0;
    margin-right: 5px;
}

/* Use a pseudo-element to add the dot separator */
.browse-list li:not(:last-child)::after {
    content: '・';
    margin-left: 5px;
}

/* Ensure movie review titles have an underline */
.review-title a {
    text-decoration: underline;
}