/**
 * JEGPF Chairman's Corner Display Styles
 * Updated to match JEGPF park/nature theme with cleaner design
 */

:root {
    /* JEGPF Brand Colors (Nature/Earth Tones) */
    --jcc-green-deep: #1A2F23;
    --jcc-green-primary: #2D5A3F;
    --jcc-green-soft: #527A62;
    --jcc-accent-gold: #D4AF37;
    --jcc-earth-brown: #5D4037;
    
    --jcc-text-dark: #1C1C1C;
    --jcc-text-medium: #4A4A4A;
    --jcc-text-light: #FFFFFF;
    
    --jcc-bg-page: #F5F7F5;
    --jcc-bg-card: #FFFFFF;
    --jcc-border-color: #E0E5E0;
    
    /* Legacy variables mapping for compatibility */
    --jcc-neo-purple: var(--jcc-green-primary);
    --jcc-neo-yellow: var(--jcc-accent-gold);
}

/* Typography */
.jcc-posts-list,
.jcc-single-post,
.jcc-announcements,
.jcc-latest-post,
.jcc-archive-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--jcc-text-dark);
}

/* Icons */
.jcc-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    display: inline-block;
}

/* ========================================
   Posts List (Chairman's Corner)
   ======================================== */

.jcc-posts-list {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.jcc-columns-2 { grid-template-columns: repeat(2, 1fr); }
.jcc-columns-3 { grid-template-columns: repeat(3, 1fr); }
.jcc-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .jcc-columns-3, .jcc-columns-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
    .jcc-columns-2, .jcc-columns-3, .jcc-columns-4 { grid-template-columns: 1fr; }
}

.jcc-post-item {
    background: var(--jcc-bg-card);
    border: 1px solid var(--jcc-border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(45, 90, 63, 0.05);
}

.jcc-post-item:hover {
    /* transform removed */
    box-shadow: 0 12px 24px rgba(45, 90, 63, 0.15);
    border-color: var(--jcc-green-soft);
}

.jcc-post-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--jcc-border-color);
    position: relative;
}

.jcc-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.jcc-post-item:hover .jcc-post-image img {
    transform: scale(1.05);
}

.jcc-post-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.jcc-post-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.3;
    color: var(--jcc-green-deep);
}

.jcc-post-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--jcc-green-primary) 0 0);
    background-position: 0 100%; /* OR bottom left */
    background-size: 0% 2px;
    background-repeat: no-repeat;
    transition: background-size 0.3s, color 0.3s;
}

.jcc-post-title a:hover {
    background-size: 100% 2px;
    color: var(--jcc-green-primary);
}

.jcc-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--jcc-text-medium);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--jcc-border-color);
}

.jcc-meta-author,
.jcc-meta-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.jcc-meta-author .jcc-icon,
.jcc-meta-date .jcc-icon {
    color: var(--jcc-green-primary);
}

.jcc-post-excerpt {
    color: var(--jcc-text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.jcc-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--jcc-green-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jcc-read-more:hover {
    gap: 0.75rem;
    color: var(--jcc-green-deep);
}

.jcc-no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--jcc-text-medium);
    background: var(--jcc-bg-card);
    border-radius: 8px;
    border: 1px dashed var(--jcc-border-color);
}

/* ========================================
   Latest Post (Hero Style)
   ======================================== */

.jcc-latest-post {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: var(--jcc-bg-card);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(26, 47, 35, 0.1);
    border: 1px solid var(--jcc-border-color);
}

@media (max-width: 900px) {
    .jcc-latest-post { grid-template-columns: 1fr; }
}

.jcc-latest-image {
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.jcc-latest-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.jcc-latest-post:hover .jcc-latest-image img {
    transform: scale(1.03);
}

.jcc-latest-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to bottom right, #ffffff, #f9fbf9);
}

.jcc-latest-label {
    display: inline-block;
    color: var(--jcc-green-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.jcc-latest-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    line-height: 1.1;
    color: var(--jcc-green-deep);
}

.jcc-latest-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.jcc-latest-title a:hover {
    color: var(--jcc-green-primary);
}

.jcc-latest-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--jcc-text-medium);
}

.jcc-latest-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--jcc-text-medium);
    margin-bottom: 2rem;
}

/* ========================================
   Announcements (Organic/Park Theme)
   ======================================== */

.jcc-announcements {
    margin-bottom: 3rem;
}

/* Banner Style - Fixed Top Notification */
.jcc-announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    padding: 0.85rem 2rem;
    
    background: linear-gradient(90deg, var(--jcc-green-deep) 0%, var(--jcc-green-primary) 100%);
    color: var(--jcc-text-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.jcc-announcement-banner.hidden {
    transform: translateY(-100%);
}

/* Texture overlay removed for cleaner look or kept subtle */
.jcc-announcement-banner::before {
    display: none; 
}

.jcc-announcement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--jcc-accent-gold);
    flex-shrink: 0;
}

.jcc-announcement-icon svg {
    width: 18px;
    height: 18px;
}

.jcc-announcement-slider {
    flex: 1;
    overflow: hidden;
    margin-right: 1rem;
}

.jcc-announcement-slide {
    display: none;
    /* No animation on slides */
}

.jcc-announcement-slide.active {
    display: block;
}

/* Content Wrapper - No Link Styles */
.jcc-announcement-content-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: white;
}

.jcc-announcement-content-wrapper strong {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.jcc-announcement-content-wrapper .jcc-text {
    opacity: 0.9;
    font-weight: 400;
}

.jcc-separator {
    color: var(--jcc-accent-gold);
    opacity: 0.8;
}

/* Actions */
.jcc-announcement-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.jcc-announcement-nav {
    display: flex;
    gap: 0.25rem;
}

.jcc-announcement-nav button,
.jcc-announcement-dismiss {
    background: transparent;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
    padding: 0;
}

.jcc-announcement-nav button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.jcc-announcement-dismiss {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.jcc-announcement-dismiss:hover {
    background: rgba(255, 59, 48, 0.3); /* Subtle red for close */
    color: white;
}

@keyframes jcc-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* List Style */
.jcc-announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jcc-announcement-item {
    background: white;
    border-left: 4px solid var(--jcc-green-primary);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(45, 90, 63, 0.05);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    /* No hover animation */
}

.jcc-announcement-item .jcc-announcement-icon {
    width: 40px;
    height: 40px;
    background: var(--jcc-green-primary);
    color: white;
    border: none;
}

/* ========================================
   Single Post
   ======================================== */

.jcc-single-wrapper {
    padding: 5rem 1.5rem;
    background: var(--jcc-bg-page);
    min-height: 80vh;
}

.jcc-container {
    max-width: 960px;
    margin: 0 auto;
}

.jcc-single-post {
    background: white;
    padding: 4rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--jcc-border-color);
}

.jcc-announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--jcc-green-deep);
    color: var(--jcc-accent-gold);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.jcc-single-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--jcc-border-color);
}

.jcc-single-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--jcc-green-deep);
    margin: 0 0 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.jcc-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 1.05rem;
    color: var(--jcc-text-medium);
}

.jcc-single-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    aspect-ratio: 16 / 9;
}

.jcc-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jcc-single-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--jcc-text-dark);
}

.jcc-single-content h2, 
.jcc-single-content h3 {
    color: var(--jcc-green-deep);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.jcc-single-content p {
    margin-bottom: 1.5rem;
}

.jcc-single-content blockquote {
    border-left: 4px solid var(--jcc-accent-gold);
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: var(--jcc-bg-page);
    font-style: italic;
    color: var(--jcc-green-deep);
    font-size: 1.3rem;
    font-family: serif;
}

.jcc-single-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--jcc-border-color);
}

.jcc-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    background: white;
    color: var(--jcc-green-deep);
    border: 1px solid var(--jcc-border-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 1rem;
}

.jcc-btn-back:hover {
    color: white;
    background: var(--jcc-green-primary);
    border-color: var(--jcc-green-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 63, 0.2);
}

/* ========================================
   Archives
   ======================================== */

.jcc-archive-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--jcc-border-color);
}

.jcc-archive-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--jcc-green-deep);
    margin-bottom: 1rem;
}

.jcc-archive-description {
    font-size: 1.35rem;
    color: var(--jcc-text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.jcc-pagination .current {
    background: var(--jcc-green-primary);
    color: white;
    border-radius: 6px;
}

.jcc-pagination a:hover {
    background: var(--jcc-green-soft);
    color: white;
    border-radius: 6px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .jcc-single-post {
        padding: 2rem;
    }
    
    .jcc-single-title {
        font-size: 2.25rem;
    }
    
    .jcc-archive-title {
        font-size: 2.5rem;
    }
    
    .jcc-announcement-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .jcc-announcement-nav {
        align-self: flex-end;
    }
}

/* ========================================
   Popup Notifications (Top-Right)
   ======================================== */

.jcc-notification-container {
    position: fixed;
    top: 100px; /* Positioned below typical navbars */
    right: 20px;
    z-index: 99999; /* Lowered slightly to appear below high-z-index navbars if necessary, but still above content */
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.jcc-notification {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--jcc-green-deep) 0%, var(--jcc-green-primary) 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.25),
        0 2px 10px rgba(45, 90, 63, 0.3);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.jcc-notification-visible {
    opacity: 1;
    transform: translateX(0);
}

.jcc-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--jcc-accent-gold);
    flex-shrink: 0;
}

.jcc-notification-icon svg {
    width: 20px;
    height: 20px;
}

.jcc-notification-content {
    flex: 1;
    min-width: 0;
}

.jcc-notification-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
    color: white;
}

.jcc-notification-text {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.9);
}

.jcc-notification-date {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jcc-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    padding: 0;
}

.jcc-notification-close:hover {
    background: rgba(255, 59, 48, 0.4);
    color: white;
}

.jcc-notification {
    position: relative;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .jcc-notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .jcc-notification {
        padding: 14px;
    }
}
/* Nature Theme Integration */
:root {
    --forest-0: #1a2f26;
    --forest-1: #243d32;
    --forest-2: #2f4f41;
    --text-main: #f0f7f4;
}

/* Force transparent body for nature theme pages */
body.jcc-nature-page, 
html.jcc-nature-page {
    background-color: #1a2f26 !important; /* Fallback */
    background-color: transparent !important;
    min-height: 100vh;
}

/* Background Layers */
#nature-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--forest-0);
}

#park-fx {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.vignette-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: url('data:image/svg+xml,%3Csvg viewBox=\'0 0 200 200\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cfilter id=\'noiseFilter\'%3E%3CfeTurbulence type=\'fractalNoise\' baseFrequency=\'0.8\' numOctaves=\'3\' stitchTiles=\'stitch\'/%3E%3C/filter%3E%3Crect width=\'100%25\' height=\'100%25\' filter=\'url(%23noiseFilter)\' opacity=\'0.04\'/%3E%3C/svg%3E');
    background: radial-gradient(
        circle at 50% 50%, 
        transparent 10%, 
        rgba(15, 35, 25, 0.1) 60%, 
        rgba(10, 25, 20, 0.6) 100%
    );
}

/* Layout Wrappers */
.jcc-single-wrapper,
.jcc-archive-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px) 16px 24px;
}

/* Single Post Card */
.jcc-single-post {
    background: rgba(20, 38, 30, 0.78);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    backdrop-filter: blur(10px);
    color: var(--text-main);
}

.jcc-single-title {
    color: #f6fff9;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    margin: 0 0 12px 0;
}

.jcc-single-content {
    color: rgba(240,247,244,0.92);
    font-size: 1.1rem;
    line-height: 1.6;
}

.jcc-single-content h2,
.jcc-single-content h3 {
    color: #f6fff9;
    margin-top: 1.5em;
}

.jcc-single-content a {
    color: #b8f5d7;
    text-decoration: underline;
}

/* Archive List Styling */
.jcc-archive-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #f6fff9;
}

.jcc-archive-title {
    font-size: 3rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.jcc-archive-description {
    color: rgba(240,247,244,0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Override for Nature Theme - 3 Columns */
.jcc-posts-list.nature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Responsive: 2 columns on tablet, 1 on mobile */
@media (max-width: 992px) {
    .jcc-posts-list.nature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .jcc-posts-list.nature-grid {
        grid-template-columns: 1fr;
    }
}

/* Post Item Card */
.jcc-post-item.nature-card {
    background: rgba(20, 38, 30, 0.65);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, background 0.3s ease;
    color: var(--text-main);
}

.jcc-post-item.nature-card:hover {
    transform: translateY(-8px);
    background: rgba(20, 38, 30, 0.85);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    border-color: rgba(255,255,255,0.2);
}

.jcc-post-item.nature-card .jcc-post-title {
    color: #f6fff9;
}

.jcc-post-item.nature-card .jcc-post-title a {
    color: inherit;
    text-decoration: none;
}

.jcc-post-item.nature-card .jcc-post-excerpt {
    color: rgba(240,247,244,0.8);
}

.jcc-post-item.nature-card .jcc-meta-author,
.jcc-post-item.nature-card .jcc-meta-date {
    color: rgba(240,247,244,0.6);
}

.jcc-post-item.nature-card .jcc-read-more {
    color: #b8f5d7;
    font-weight: 500;
}

