/* --- Base & Typography --- */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #67746f; /* A slightly lighter gray for the main background */
}



/* --- NEW: Header & Main Navigation Styling --- */
.main-header {
    background-color: #345e63; /* The header background color */
    border-bottom: 1px solid #e5e7eb; /* A subtle bottom border */
}

.main-nav a {
    color: #b7b7b7; /* The default color for nav links (dark gray) */
    /* All layout properties like padding, font-size etc. are still handled by Tailwind */
}

.main-nav a:hover {
    background-color: #506c64; /* A light gray for hover */
    color: #111827; /* A darker text color on hover */
}
/* --- END OF NEW SECTION --- */


/* --- Post List Styling --- */
.post-summary {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.post-summary a {
    text-decoration: none;
    color: #1e3a8a; /* A deeper blue for links */
    font-size: 1rem;
    font-weight: 500;
}
.post-summary a:hover {
    text-decoration: underline;
}
.post-meta {
    font-size: 0.8rem;
    color: #6b7280;
    padding-top: 0.25rem;
}

/* --- Color-Coded Bot Posts --- */
.post-summary.bot-post-info a {
    color: #059669; /* A rich green for informational posts */
}
.post-summary.bot-post-alert a {
    color: #be123c; /* A strong red for critical alerts */
    font-weight: 700;
}

/* --- Navigation Bar & Buttons (from post_view.html) --- */
.navigation-bar {
    background-color: #2b5055; /* darker cs green */
    padding: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid #a9e7e6;
    text-align: center;
}
.navigation-bar .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background-color: #107f89;
    color: #a5b8b8;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.navigation-bar .button.live:hover {
    background-color: #545556;
    border-color: #e3e3e3;
    color: #7dceca;
}
.navigation-bar .button.disabled {
    background-color: #81848a;
    color: #9ca3af;
    cursor: not-allowed;
}
/* --- Recent Pictures Module --- */
.recent-pictures-module {
    background-color: #e8f5e9; /* A very light green */
    padding: 15px;
    margin: 0 0 20px 0;
    border-radius: 8px;
}
.module-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--clydesite-green);
    margin: 0 0 10px 0;
    border-bottom: 2px solid var(--clydesite-green);
    padding-bottom: 5px;
}
.picture-layout {
    display: flex;
    gap: 10px;
}
.main-picture {
    flex: 2; /* Takes up 2/3 of the space */
}
.side-pictures {
    flex: 1; /* Takes up 1/3 of the space */
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.main-picture a, .side-picture-item a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}
.main-picture img, .side-picture-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents images from being stretched */
    display: block;
}
/* Style for the text overlay */
.main-picture span, .side-picture-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 4px;
    font-size: 0.8em;
    text-align: center;
}