/* ==========================================================================
   1) Reused Shared Layout Navbar Infrastructure Settings
   ========================================================================== */
.navbar {
    background: linear-gradient(rgba(11, 11, 11, 0.2), rgba(11, 11, 11, 0.2)), 
                url('indexPictur/P1.jpeg') center/cover no-repeat;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 40px;
    height: 120px;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(156, 175, 136, 0.2); 
}

.nav-links {
    display: flex;
    gap: 30px; 
    list-style: none;
}

.nav-links.left { justify-content: flex-end; margin-right: 40px; }
.nav-links.right { justify-content: flex-start; margin-left: 40px; }

.nav-links a {
    color: var(--primary-green);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.nav-links a:hover { color: var(--pure-white); }
.logo-container { width: 180px; height: 90px; display: flex; align-items: center; justify-content: center; position: relative; }
.logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ==========================================================================
   2) Facebook-Style Timeline Stream Architecture
   ========================================================================== */
.feed-timeline-container {
    max-width: 680px; /* Standard premium centered timeline feed block width */
    margin: 80px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 60px; /* Space between the stacked 1st, 2nd, and 3rd blocks */
}

.feed-post-card {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

.feed-post-card:hover {
    border-color: rgba(156, 175, 136, 0.15);
}

/* TOP BLOCK: Media & Slider Component Space */
.feed-media-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    background-color: #000;
    overflow: hidden;
}

.carousel-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Controlled natively via anchor targeting tags */
}

.carousel-slide-item {
    min-width: 100%;
    height: 100%;
}

.carousel-slide-item img,
.feed-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

/* Honest placeholder for posts whose media couldn't be safely stored client-side */
.feed-media-pending {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #151515;
}

.feed-media-pending-icon {
    font-size: 2.6rem;
    opacity: 0.4;
}

.feed-media-pending-text {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Arrow Overlay Components */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(11, 11, 11, 0.6);
    color: var(--pure-white);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 12px 16px;
    border-radius: 4px;
    z-index: 10;
    transition: all 0.2s ease;
    font-family: sans-serif;
}

.carousel-arrow:hover {
    background-color: var(--primary-green);
    color: var(--matte-black);
}

.arrow-left { left: 15px; }
.arrow-right { right: 15px; }

/* MIDDLE BLOCK: Metadata Date and Title Area */
.feed-meta-middle {
    padding: 30px 30px 15px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-timestamp {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.feed-post-title {
    font-family: var(--font-heading);
    color: var(--primary-green);
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.3;
}

/* BOTTOM BLOCK: Text Area message with Expandable Features */
.feed-message-content {
    padding: 0 30px 30px 30px;
}

.feed-message-content p {
    font-family: var(--font-body);
    color: var(--body-text);
    font-size: 1.02rem;
    line-height: 1.7;
}

/* Hides longer textual overspill like facebook */
.feed-message-content .more-text-shroud {
    display: none;
}

.feed-message-content.expanded .more-text-shroud {
    display: inline;
}

.btn-show-more {
    background: transparent;
    border: none;
    color: var(--primary-green);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 10px;
    padding: 0;
    transition: color 0.2s ease;
}

.btn-show-more:hover {
    color: var(--pure-white);
}

/* ==========================================================================
   3) Native Lightroom Maximize Popout Shroud
   ========================================================================== */
.lightbox-overlay-dialog {
    border: none;
    background-color: rgba(0, 0, 0, 0.95);
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    padding: 0;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.lightbox-overlay-dialog[open] {
    display: flex; /* Centers item natively when toggled active */
}

#lightbox-enlarged-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.lightbox-close-x {
    position: absolute;
    top: 25px;
    right: 35px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close-x:hover { color: var(--primary-green); }

/* Video lightbox needs the video stacked above its controls bar, unlike the
   single-centered-image lightbox above. */
.video-lightbox-dialog[open] {
    flex-direction: column;
}

.video-lightbox-player {
    max-width: 90%;
    max-height: 78%;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.video-lightbox-controls-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding: 12px 28px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
}

.video-lightbox-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.video-lightbox-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.video-lightbox-btn:hover {
    color: var(--primary-green);
}

@media (max-width: 600px) {
    .video-lightbox-player {
        max-width: 96%;
        max-height: 65%;
    }

    .video-lightbox-controls-bar {
        gap: 16px;
        padding: 10px 20px;
    }

    .video-lightbox-btn svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-close-x {
        top: 14px;
        right: 18px;
        font-size: 2rem;
    }
}

/* ==========================================================================
   4) Reused Standardized Branding Editorial Footer Structure
   ========================================================================== */
.main-footer {
  background-color: #000000; 
  padding: 60px 20px 40px 20px;
  text-align: center;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-heading {
  font-family: 'Playfair Display', Georgia, serif;
  color: #ffffff; 
  font-size: 2.2rem;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 35px;
}

.social-links-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px; 
  margin-bottom: 45px;
}

.social-circle-icon {
  width: 46px;
  height: 46px;
  border: 1px solid #9caf88; 
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #9caf88; 
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
}

.social-circle-icon svg { width: 20px; height: 20px; }

.social-circle-icon:hover {
  background-color: #9caf88; 
  color: #000000;
  box-shadow: 0 0 15px rgba(156, 175, 136, 0.6);
  transform: translateY(-3px);
}

.footer-divider {
  width: 180px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1); 
  margin: 0 auto 30px auto;
}

.footer-copyright {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #444444; 
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.footer-copyright .white-text { color: #666666; transition: color 0.3s ease; }
.footer-copyright .white-text:hover { color: #9caf88; }

/* ==========================================================================
   5) Responsive Smart Breakpoints Module Engine at 900px Limit
   ========================================================================== */
@media (max-width: 900px) {
    /* Navbar Splitting Rules Collapse */
    .navbar {
        grid-template-columns: 1fr;
        height: auto;
        padding: 30px 20px;
        justify-items: center;
    }
    .nav-links.left, .nav-links.right {
        margin: 15px 0 0 0;
        justify-content: center;
        gap: 20px;
    }
    .logo-container {
        height: 70px;
        width: 140px;
        order: -1;
    }

    /* Feed Stack Size Optimizations */
    .feed-timeline-container {
        margin: 40px auto;
        gap: 40px;
    }
    .feed-media-wrapper {
        height: 340px; /* Shorter heights for phone panels */
    }
    .feed-meta-middle {
        padding: 20px 20px 10px 20px;
    }
    .feed-post-title {
        font-size: 1.5rem;
    }
    .feed-message-content {
        padding: 0 20px 20px 20px;
    }
    .carousel-arrow {
        padding: 8px 12px;
        font-size: 1rem;
    }

    /* Footer Mobile Adjustments */
    .footer-heading {
        font-size: 1.6rem;
        letter-spacing: 2px;
        margin-bottom: 25px;
    }
    .social-links-grid { gap: 15px; }
    .social-circle-icon { width: 40px; height: 40px; }
    .social-circle-icon svg { width: 18px; height: 18px; }
}

/* A platform turned off in System Settings — dimmed, click shows a message instead of navigating */
.social-link-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.social-link-disabled:hover {
    background-color: transparent;
    color: #9caf88;
    box-shadow: none;
    transform: none;
}
