* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

/* --- Header Styling Fixes --- */
.main-header {
    background: #5a8a5a;
    color: #fff;
    padding: 1rem 0;
    margin-bottom: 20px;
}
.main-header .site-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 0 20px;
}
.main-header .site-title-wrapper {
    flex-grow: 1; /* Allow the wrapper to fill available space */
    text-align: center; /* Center the content inside the wrapper */
}
.main-header .site-title {
    font-size: 2.5rem;
    color: #1d2d1d; /* Updated to blue */
    text-decoration: none;
    line-height: 1; /* Helps with vertical alignment */
}
.main-header .tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    text-align: center;
}
.main-content-area {
    padding: 20px 0;
}
.main-content-area .container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
main.main-content,
main.post-main {
    flex: 3;
    min-width: 0;
}
/* Container for the progress bar and percentage label */
.progress-bar-wrapper {
    position: relative;
    width: 100%;
    height: 24px;
    background-color: #7b7b7b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* The fill that moves */
.progress-bar-fill {
    height: 100%;
    background-color: #5a8a5a ;
    border-radius: 12px;
    transition: width 0.4s ease-in-out;
}

/* The percentage label that sits on top */
.progress-bar-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white; /* White text for visibility */
    font-weight: bold;
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* 
<!-- Main container for the progress bar component -->
<div class="progress-container">
    <!-- Overview name -->
    <div class="progress-bar-name">Project Completion</div>

    <!-- Wrapper for the bar and label -->
    <div class="progress-bar-wrapper">
        <!-- The progress fill -->
        <div id="progressBarFill" class="progress-bar-fill" style="width: 50%;"></div>
        <!-- The percentage label -->
        <span id="progressBarPercent" class="progress-bar-percent">50%</span>
    </div>

    <!-- A button to demonstrate the functionality -->
    <button class="demo-button" onclick="updateProgress()">Update Progress</button>
</div>
*/
#sidebar {
    flex: 1;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.view-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}
.view-btn {
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.view-btn svg {
    stroke: #555;
    transition: stroke 0.2s ease-in-out;
}
.view-btn.active {
    background-color: #5a8a5a;
    border-color: #5a8a5a;
}
.view-btn.active svg {
    stroke: #fff;
}
.month-separator {
    font-size: 1.8rem;
    border-bottom: 2px solid #5a8a5a;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.posts-grid {
    display: grid;
    gap: 25px;
}
.posts-grid.view-3 {
    grid-template-columns: repeat(3, 1fr);
}
.posts-grid.view-2 {
    grid-template-columns: repeat(2, 1fr);
}
.posts-grid.view-1 {
    grid-template-columns: 1fr;
}
.post-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.post-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.post-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.post-card-content h3 a {
    color: #333;
    text-decoration: none;
}
.post-card-content h3 a:hover {
    color: #5a8a5a;
}
.post-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
}
.post-card-content p {
    flex-grow: 1;
    margin-bottom: 15px;
}
.read-more {
    display: inline-block;
    background-color: #5a8a5a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.read-more:hover {
    background-color: #446944;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}
#sidebar h3 {
    font-size: 1.3rem;
    color: #446944;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
#sidebar ul {
    list-style: none;
    padding: 0;
}
#sidebar ul li {
    margin-bottom: 10px;
}
#sidebar ul li a {
    color: #333;
    text-decoration: none;
}
#sidebar ul li a:hover {
    color: #5a8a5a;
}
.main-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
}
.main-footer a {
    color: #5a8a5a;
}
.post-main {
    background-color: #fff;
    padding: 20px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.post-full ul {
    list-style-position: inside;
    padding-left: 20px;
}
.post-full h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.post-full h2 {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.post-full h3 {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
}
.post-full .post-meta {
    margin-bottom: 20px;
}
.post-image-full {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    max-height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
    display: block;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
    display: block;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
    color: #5a8a5a;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}
.comments-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}
.comments-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}
.comment-form-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.comment-form-container h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
}
.submit-button {
    background-color: #5a8a5a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}
.submit-button:hover {
    background-color: #446944;
}
.submit-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}
.comments-list {
    margin-top: 20px;
}
.comment {
    background-color: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.comment-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}
.comment p {
    margin-bottom: 0;
    word-wrap: break-word;
}
.vote-section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0;
}
.vote-section h4 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}
.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}
.vote-btn {
    background-color: #5a8a5a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}
.vote-btn:hover {
    background-color: #446944;
    transform: translateY(-2px);
}
.vote-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}
.vote-btn.voted {
    background-color: #333;
}
.vote-results {
    font-size: 0.9em;
}
.vote-results p {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}
.vote-bar {
    display: flex;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
.vote-bar-gemini, .vote-bar-pixelcut, .vote-bar-new, .vote-bar-old, .vote-bar-geminipost, .vote-bar-gptpost, .vote-bar-copioltpost,.vote-bar-grokpost ,.vote-bar-claudepost,.vote-bar-perplexitypost,.vote-bar-metapost{
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    white-space: nowrap;
    transition: width 0.5s ease-in-out;
}
.vote-bar-gemini { background-color: #4CAF50; }
.vote-bar-pixelcut { background-color: #ff6f61; }
.vote-bar-new { background-color: #4CAF50; }
.vote-bar-old { background-color: #ff6f61; }
.vote-bar-geminipost { background-color: #5EBFD6; }
.vote-bar-gptpost { background-color: #74aa9c; }
.vote-bar-copioltpost { background-color: #0078D4; }
.vote-bar-grokpost { background-color: #000000; }
.vote-bar-claudepost { background-color: #FF6600; }
.vote-bar-perplexitypost { background-color: #20808D; }
.vote-bar-metapost { background-color: #0082fb; }
.hidden {
    display: none !important;
}

/* --- New Auth UI Styles --- */
#auth-container {
    display: flex;
    gap: 15px;
    align-items: center;
}
#user-display {
    /* The JavaScript will handle showing/hiding this via the .hidden class */
    gap: 15px;
    align-items: center;
}
#auth-container a, #user-display span, #user-display button {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}
#auth-container a:hover, #user-display button:hover {
    background-color: #446944;
}
#user-email-display {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 150px; /* Adjust as needed */
}
/* --- Info Box Container --- */
.info-box {
    position: relative; /* Needed for the image background overlay */
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #fff; /* Default text color, good for dark backgrounds */
    overflow: hidden; /* Ensures content respects the border-radius */
    text-align: center;
}

/* Style for the title inside the box */
.info-box .info-title {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Style for the subtitle inside the box */
.info-box .info-subtitle {
    font-size: 1.1rem;
    max-width: 600px; /* Constrains the width for better readability */
    margin: 0 auto; /* Centers the subtitle if it's not full-width */
    opacity: 0.9;
}

/* Modifier class for a solid color background */
.info-box-solid {
    background-color: #446944; /* Example solid color */
}

/* Modifier class for an image background */
.info-box-image {
    background-size: cover;
    background-position: center center;
    /* Add a dark overlay to ensure text is readable over any image */
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5); 
}

/* To make sure the text is readable on light backgrounds, you can add a utility class */
.info-box .text-dark {
    color: #333;
}

/* --- Clickable Info Box Link Styles --- */

/* This makes the <a> tag behave like a block and removes the underline */
.info-box-link {
    display: block;
    text-decoration: none;
    color: inherit; /* Inherits the text color from the .info-box parent */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Add a subtle "lift" effect when hovering over the clickable box */
.info-box-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* For the image box, we can enhance the overlay slightly on hover */
.info-box-link:hover .info-box-image {
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.6); /* Makes overlay a bit darker */
}
@media (max-width: 992px) {
    .posts-grid.view-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-content-area .container { flex-direction: column; }
    .posts-grid, .posts-grid.view-2, .posts-grid.view-3 { grid-template-columns: 1fr; }
    .post-main { padding: 20px; }
}

.notice-box {
    background-color: #fffbe6;
    border-left: 4px solid #fcc419;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.notice-box p {
    margin: 0;
}

.notice-box ul {
    list-style: none; /* Remove default list bullets */
    padding: 0;
    margin: 15px 0 0; /* Add top margin to separate it from the text above */
}

.notice-box ul li {
    margin-bottom: 5px; /* Spacing between list items */
    padding-left: 20px; /* Adjust as needed for the checkmarks */
    position: relative; /* Needed for positioning the checkmark icon */
}

.notice-box ul li::before {
    content: "✔️"; /* The checkmark content */
    position: absolute;
    left: 0;
    color: #5a8a5a; /* A nice color for the checkmark */
}

.notice-box ul li.not-used::before {
    content: "✖️"; /* The X content for a different style */
    color: #ff4500; /* A red color for the X */
}

/* --- MODAL STYLES --- */
.modal-overlay { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.8); align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal-content { position: relative; width: 80%; max-width: auto; }
.modal-close { position: absolute; top: -10px; right: -5px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; text-shadow: 0 0 5px rgba(0,0,0,0.7); }
.modal-close:hover { color: #bbb; }

/* Hide the inner containers by default */
#single-image-container,
.modal-image-comparison-container {
    display: none;
}

/* Show the correct container based on the parent's class */
.modal-overlay.single-view #single-image-container {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}
.modal-overlay.comparison-view .modal-image-comparison-container {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
}

/* General styles for figures inside the modal */
.modal-content figure { margin: 0; padding: 0; text-align: center; }
.modal-content img { width: 100%; height: auto; display: block; border-radius: 5px; }
.modal-content figcaption { margin-top: 15px; color: #ccc; font-size: 1.1em; }
.modal-image-comparison-container figure { flex: 1; }

/* Styles for the trigger links */
a.modal-trigger, a.modal-comparison-trigger { color: #5a8a5a; text-decoration: underline; cursor: pointer; }
a.modal-comparison-trigger { font-weight: bold; }