/* Latest Page Styles */
/* A premium blog-style layout for showcasing newest artworks */

/* ============================================
   HERO SECTION
   ============================================ */
.latest-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 120px 5% 80px;
    background: linear-gradient(135deg, 
        rgba(44, 44, 44, 0.02) 0%, 
        rgba(192, 57, 43, 0.03) 50%, 
        rgba(44, 44, 44, 0.02) 100%);
    overflow: hidden;
}

.latest-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(192, 57, 43, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(44, 44, 44, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.latest-hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease forwards;
}

.latest-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(192, 57, 43, 0.08);
    border-radius: 30px;
}

.latest-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.latest-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--light-text);
    max-width: 600px;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-text);
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 1rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   FEATURED SECTION
   ============================================ */
.featured-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, 
        var(--background-color) 0%, 
        rgba(255, 255, 255, 0.8) 100%);
}

.featured-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.featured-image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.18),
        0 15px 40px rgba(0, 0, 0, 0.12);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.featured-image-wrapper:hover .featured-image {
    transform: scale(1.03);
}

.featured-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}

.featured-content {
    padding: 20px 0;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 25px;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    color: var(--light-text);
    letter-spacing: 1px;
}

.featured-meta i {
    color: var(--accent-color);
}

.featured-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.featured-description {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.9;
    margin-bottom: 20px;
}

.featured-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 35px 0;
    padding: 25px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-text);
}

.detail-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.view-artwork-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

/* ============================================
   POSTS SECTION (Blog-style)
   ============================================ */
.posts-section {
    padding: 100px 5%;
    background: #fff;
}

.posts-header {
    text-align: center;
    margin-bottom: 60px;
}

.posts-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.posts-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--light-text);
}

.posts-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 50px;
}

/* Post Card - Blog Style */
.post-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.post-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.post-card:hover .post-image {
    transform: scale(1.08);
}

.post-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(44, 44, 44, 0.7) 0%,
        rgba(44, 44, 44, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-card:hover .post-image-overlay {
    opacity: 1;
}

.post-view-prompt {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    transition: all 0.4s ease;
    white-space: nowrap;
}

.post-card:hover .post-view-prompt {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.post-content {
    padding: 30px;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: var(--accent-color);
}

.post-excerpt {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tag {
    padding: 6px 14px;
    background: rgba(44, 44, 44, 0.05);
    border-radius: 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.post-card:hover .post-tag {
    background: rgba(192, 57, 43, 0.08);
    color: var(--accent-color);
}

/* ============================================
   VIDEO SPOTLIGHT
   ============================================ */
.video-spotlight-section {
    padding: 100px 5%;
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2c2c2c 50%, 
        #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.video-spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(192, 57, 43, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.video-spotlight-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.video-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.video-spotlight-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.2;
}

.video-spotlight-description {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    margin-bottom: 25px;
}

.video-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 25px;
    border-left: 2px solid var(--accent-color);
    line-height: 1.7;
}

.video-spotlight-player {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.video-spotlight-player video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

/* ============================================
   ARCHIVE SECTION
   ============================================ */
.archive-section {
    padding: 100px 5%;
    background: var(--background-color);
}

.archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.archive-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.archive-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--light-text);
}

.archive-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.archive-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.archive-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.archive-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.archive-item:hover img {
    transform: scale(1.1);
}

.archive-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(44, 44, 44, 0.9) 0%,
        rgba(44, 44, 44, 0.3) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.archive-item:hover .archive-overlay {
    opacity: 1;
}

.archive-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.archive-item:hover .archive-item-title {
    transform: translateY(0);
}

.archive-item-date {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    transform: translateY(10px);
    transition: transform 0.3s ease 0.05s;
}

.archive-item:hover .archive-item-date {
    transform: translateY(0);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.latest-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.latest-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.latest-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.lightbox-image-container {
    max-width: 100%;
    max-height: 75vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-info {
    margin-top: 25px;
    text-align: center;
    max-width: 600px;
}

.lightbox-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.lightbox-description {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* ============================================
   NAV ACTIVE STATE
   ============================================ */
.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    width: 80%;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .featured-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .featured-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-spotlight-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .video-spotlight-content {
        text-align: center;
    }
    
    .video-quote {
        border-left: none;
        padding-left: 0;
        border-top: 2px solid var(--accent-color);
        padding-top: 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .latest-hero {
        min-height: 50vh;
        padding: 100px 5% 60px;
    }
    
    .featured-section,
    .posts-section,
    .video-spotlight-section,
    .archive-section {
        padding: 60px 5%;
    }
    
    .featured-title {
        font-size: 2rem;
    }
    
    .featured-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .lightbox-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-content {
        padding: 20px;
    }
}
