/* css/style.css */
:root {
    --navy: #003366;
    --green: #2e7d32;
    --light-green: #a5d6a7;
    --cream: #fdfbed;
    --text-dark: #333;
    --text-light: #fff;
    --glass-bg: rgba(253, 251, 237, 0.85);
    --glass-border: rgba(0, 51, 102, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: url('../bg-wood.png') repeat;
    background-size: 800px;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 0;
}

body.blog-preview {
    padding-top: 32px;
}

.preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: var(--navy);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-banner a {
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.preview-banner a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px; /* Increased for sidebar */
    margin: 0 auto;
    padding: 0 20px;
}

.content-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.main-content {
    flex: 2.5;
}

.sidebar {
    flex: 1;
    min-width: 280px;
}

@media (max-width: 992px) {
    .content-layout {
        flex-direction: column;
    }
    .sidebar {
        order: 2;
    }
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--green);
}

/* Content panels */
.glassmorphism {
    background: var(--glass-bg);
    border: 4px solid var(--navy);
    border-radius: 20px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.05);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Cafe site nav — tighter spacing on blog pages */
.public-body .cafe-top-nav {
    padding: 15px 20px 8px;
    margin-bottom: 0;
}

.device-desktop header.blog-header {
    padding: 0 20px 10px;
    margin-bottom: 12px;
}

.device-desktop .public-body .cafe-top-nav {
    padding-top: 15px;
    padding-bottom: 8px;
}

/* Header */
header.blog-header {
    display: block;
    padding: 0 20px 10px;
    margin: 0 auto 12px;
    max-width: 1200px;
    text-align: center;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.blog-header h1 a {
    color: var(--navy);
    font-family: 'Schoolbell', cursive;
    font-size: 2.4rem;
    font-weight: normal;
    letter-spacing: 1px;
    line-height: 1.15;
}

.blog-header p {
    color: var(--green);
    font-size: 1rem;
    margin-top: 4px;
    font-weight: 700;
    line-height: 1.3;
}

.public-body .container {
    padding-top: 0;
}

.public-body .content-layout {
    margin-bottom: 30px;
}

.public-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-item {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--navy);
    padding: 8px 20px;
    background: white;
    border: 2px solid var(--navy);
    border-radius: 20px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-item:hover {
    background: var(--navy);
    color: white;
    transform: translateY(-2px);
}

/* Feed */
.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.post-card {
    padding: 30px;
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-family: 'Schoolbell', cursive;
    font-weight: normal;
}

.post-meta {
    font-size: 0.95rem;
    color: var(--green);
    margin-bottom: 20px;
    font-weight: 700;
}

.post-excerpt {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--navy);
    color: var(--text-light) !important;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.read-more:hover {
    background: var(--green);
}

/* Single Post */
.single-post-view .post-full {
    padding: 40px;
    margin-bottom: 50px;
}

.single-post-view .post-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--navy);
    font-family: 'Schoolbell', cursive;
    font-weight: normal;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-body h2 {
    color: var(--navy);
    margin: 30px 0 15px;
    font-family: 'Schoolbell', cursive;
    font-weight: normal;
    font-size: 2.2rem;
}

.post-body p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Footer */
footer {
    padding: 30px 0;
}

.admin-footer-link {
    color: rgba(0,0,0,0.4);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.admin-footer-link:hover {
    color: var(--navy);
}

.text-center {
    text-align: center;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item {
    display: flex;
    flex-direction: column;
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.gallery-item img:hover {
    transform: scale(1.02);
}
.gallery-caption {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green);
    margin-top: 8px;
    font-style: italic;
}

/* Lightbox Overlay */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform: scale(0.9)}
    to {transform: scale(1)}
}

/* Sidebar Components */
.sidebar-box {
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-box h3 {
    font-family: 'Schoolbell', cursive;
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px dashed var(--glass-border);
    padding-bottom: 5px;
}

.calendar-tree details {
    margin-bottom: 5px;
    padding-left: 10px;
}

.calendar-tree summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.calendar-tree summary::-webkit-details-marker {
    display: none;
}

.calendar-tree summary::before {
    content: '▶';
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.calendar-tree details[open] > summary::before {
    transform: rotate(90deg);
}

.calendar-tree ul {
    list-style: none;
    padding-left: 20px;
    margin: 5px 0;
}

.calendar-tree li {
    margin-bottom: 5px;
}

.calendar-tree a {
    font-size: 0.95rem;
    color: var(--green);
}

.calendar-tree a:hover {
    text-decoration: underline;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 5px 12px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    transition: all 0.2s;
}

.tag-item:hover {
    background: var(--navy);
    color: white;
    transform: scale(1.05);
}
