/* Premium Editorial Blog Styles */

/* --- Variables & Core --- */
:root {
    --blog-gold: #c69c6d;
    --blog-dark: #1a1a1a;
    --blog-gray: #f9f9f9;
    --blog-text: #333333;
    --blog-font-serif: 'Playfair Display', serif;
    --blog-font-sans: 'Montserrat', sans-serif;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-up {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

/* Staggered delays */
.animate-fade-up:nth-child(1) { animation-delay: 100ms; }
.animate-fade-up:nth-child(2) { animation-delay: 200ms; }
.animate-fade-up:nth-child(3) { animation-delay: 300ms; }
.animate-fade-up:nth-child(4) { animation-delay: 400ms; }
.animate-fade-up:nth-child(5) { animation-delay: 500ms; }
.animate-fade-up:nth-child(6) { animation-delay: 600ms; }
.animate-fade-up:nth-child(7) { animation-delay: 700ms; }
.animate-fade-up:nth-child(8) { animation-delay: 800ms; }
.animate-fade-up:nth-child(9) { animation-delay: 900ms; }

/* --- Layout --- */
.blog-container {
    max-width: 1400px; /* Wider for slider */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.article-content-container {
    max-width: 760px;
    margin: 0 auto;
}

/* --- Typography --- */
.blog-title {
    font-family: var(--blog-font-serif);
    font-weight: 700;
    color: var(--blog-dark);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.blog-meta {
    font-family: var(--blog-font-sans);
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* --- Article Slider --- */
.blog-slider-wrapper {
    position: relative;
    padding: 0 40px; /* Space for arrows */
}

.blog-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 5px 40px 5px; /* Bottom padding for shadows */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.blog-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.blog-slide {
    flex: 0 0 400px; /* Fixed width for consistent cards */
    scroll-snap-align: start;
    height: auto;
}

/* Slider Navigation Buttons */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--blog-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background: var(--blog-dark);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: -20px; }
.slider-next { right: -20px; }

/* --- Article Cards (Premium) --- */
.article-card-new {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    min-height: 500px;
}

.article-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.article-card-img-wrapper {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background: #f0f0f0;
}

.article-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.article-card-new:hover .article-card-img-wrapper img {
    transform: scale(1.08);
}

/* Card Overlay */
.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.article-overlay-btn {
    background: #fff;
    color: var(--blog-dark);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--blog-font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.article-card-new:hover .article-overlay {
    opacity: 1;
}

.article-card-new:hover .article-overlay-btn {
    transform: translateY(0) scale(1);
}

.article-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-category {
    font-family: var(--blog-font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--blog-gold);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.article-card-title {
    font-family: var(--blog-font-serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.25;
}

.article-card-title a {
    color: var(--blog-dark);
    text-decoration: none;
    background-image: linear-gradient(var(--blog-dark), var(--blog-dark));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.3s ease;
}

.article-card-new:hover .article-card-title a {
    background-size: 100% 1px;
}

.article-card-excerpt {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--blog-font-sans);
    font-size: 0.8rem;
    color: #999;
}

/* --- Detail View --- */
.article-header-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.article-featured-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.article-body {
    font-family: 'Georgia', serif;
    font-size: 19px;
    line-height: 1.85;
    color: #2a2a2a;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-body p {
    margin-bottom: 1.8em;
}

.article-body h2 {
    font-family: var(--blog-font-serif);
    font-size: 2rem;
    color: var(--blog-dark);
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.article-body blockquote {
    font-family: var(--blog-font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--blog-dark);
    text-align: center;
    border: none;
    margin: 3rem 0;
    padding: 0 2rem;
    position: relative;
}

.article-body blockquote::before {
    content: "“";
    display: block;
    font-size: 4rem;
    color: var(--blog-gold);
    line-height: 1;
    margin-bottom: 10px;
}

/* --- Modern Back Button --- */
.btn-modern-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    background: transparent;
    color: var(--blog-dark);
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-family: var(--blog-font-sans);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-modern-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--blog-dark);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-modern-back:hover {
    color: #fff;
    border-color: var(--blog-dark);
    padding-left: 28px;
    padding-right: 36px;
}

.btn-modern-back:hover::before {
    width: 100%;
}

.btn-modern-back i {
    transition: transform 0.3s ease;
}

.btn-modern-back:hover i {
    transform: translateX(-4px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .blog-container { padding: 0 15px; }
    .blog-slide { flex: 0 0 340px; }
    .slider-nav-btn { width: 40px; height: 40px; }
    .slider-prev { left: -10px; }
    .slider-next { right: -10px; }
}

@media (max-width: 768px) {
    .blog-slider-wrapper { padding: 0; }
    
    /* Disable slider on mobile, stack vertically */
    .blog-slider { 
        display: flex;
        flex-direction: column;
        overflow-x: visible;
        scroll-snap-type: none;
        gap: 30px; 
        padding-left: 0; 
        padding-right: 0; 
    }
    
    .blog-slide { 
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .slider-nav-btn { display: none; /* Hide arrows on touch devices */ }
    
    .blog-title { 
        font-size: 2rem; 
        line-height: 1.2;
    }
    .blog-meta { font-size: 0.8rem; }
    
    .article-body { 
        font-size: 16px; 
        line-height: 1.6;
    }
    
    .article-card-img-wrapper { 
        padding-top: 60%; 
    }
    
    /* Disable complex hover on mobile */
    .article-overlay {
        display: none;
    }
    
    .article-card-new:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
}
