/* ============================================
   Article/News Detail - Newspaper Style
   Based on studio.site/live/M3aAJkPYWe design
   ============================================ */

:root {
    --detail-primary: #1a1a1a;
    --detail-secondary: #555;
    --detail-muted: #888;
    --detail-light: #f5f5f5;
    --detail-border: #eee;
    --detail-accent: #3a5a7c;
}

/* Page Container */
.detail-page {
    background: #ffffff;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ============================================
   Hero Section with Featured Image
   ============================================ */

.detail-hero {
    position: relative;
    height: 420px;
    overflow: hidden;
    margin-bottom: 0;
}

.detail-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a5a7c 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
}

.detail-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.detail-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: #ffffff;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-hero__category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.detail-hero__category:hover {
    background: rgba(255, 255, 255, 0.3);
}

.detail-hero__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    max-width: 700px;
}

/* ============================================
   Main Content Layout
   ============================================ */

.detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    padding-top: 40px;
}

/* ============================================
   Article Main Content
   ============================================ */

.detail-main {
    min-width: 0;
}

/* Meta Info */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--detail-border);
    margin-bottom: 28px;
}

.detail-meta__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--detail-muted);
}

.detail-meta__item i {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Lead */
.detail-lead {
    font-size: 1.1875rem;
    font-weight: 500;
    color: var(--detail-primary);
    line-height: 1.7;
    margin: 0 0 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--detail-border);
}

/* Content Body */
.detail-content {
    font-size: 1.0625rem;
    color: var(--detail-secondary);
    line-height: 1.85;
}

.detail-content p {
    margin: 0 0 1.5em;
}

.detail-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--detail-primary);
    margin: 2em 0 0.75em;
    line-height: 1.4;
}

.detail-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--detail-primary);
    margin: 1.75em 0 0.5em;
    line-height: 1.4;
}

.detail-content h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--detail-primary);
    margin: 1.5em 0 0.5em;
}

.detail-content ul,
.detail-content ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.detail-content li {
    margin-bottom: 0.5em;
}

.detail-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: var(--detail-light);
    border-left: 4px solid var(--detail-accent);
    font-style: italic;
    color: var(--detail-secondary);
    border-radius: 0 8px 8px 0;
}

.detail-content blockquote p:last-child {
    margin-bottom: 0;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.detail-content a {
    color: var(--detail-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.detail-content a:hover {
    text-decoration: none;
}

/* ============================================
   Author Section
   ============================================ */

.detail-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 0;
    border-top: 1px solid var(--detail-border);
    border-bottom: 1px solid var(--detail-border);
    margin: 40px 0;
}

.detail-author__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.detail-author__placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.detail-author__info {
    flex: 1;
}

.detail-author__label {
    font-size: 0.75rem;
    color: var(--detail-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.detail-author__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--detail-primary);
    margin: 0;
}

.detail-author__name a {
    color: inherit;
    text-decoration: none;
}

.detail-author__name a:hover {
    text-decoration: underline;
}

/* ============================================
   Tags
   ============================================ */

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.detail-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--detail-light);
    color: var(--detail-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.detail-tag:hover {
    background: var(--detail-accent);
    color: #ffffff;
}

/* ============================================
   Similar Articles
   ============================================ */

.detail-similar {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--detail-primary);
}

.detail-similar__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--detail-primary);
    margin: 0 0 28px;
}

.detail-similar__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.detail-similar__card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.detail-similar__card:hover {
    transform: translateY(-3px);
}

.detail-similar__image {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--detail-light);
}

.detail-similar__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-similar__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
}

.detail-similar__date {
    font-size: 0.75rem;
    color: var(--detail-muted);
    margin-bottom: 6px;
}

.detail-similar__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--detail-primary);
    line-height: 1.4;
    margin: 0 0 8px;
}

.detail-similar__card:hover .detail-similar__headline {
    color: var(--detail-accent);
}

.detail-similar__excerpt {
    font-size: 0.875rem;
    color: var(--detail-secondary);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Sidebar
   ============================================ */

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sidebar Block */
.sidebar-block {
    background: var(--detail-light);
    border-radius: 10px;
    padding: 24px;
}

.sidebar-block__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--detail-primary);
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--detail-primary);
}

/* Latest News List */
.sidebar-news-list {
    display: flex;
    flex-direction: column;
}

.sidebar-news-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-news-item:first-child {
    padding-top: 0;
}

.sidebar-news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-news-item__date {
    font-size: 0.6875rem;
    color: var(--detail-muted);
    margin-bottom: 4px;
}

.sidebar-news-item__title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    margin: 0;
}

.sidebar-news-item__title a {
    color: var(--detail-primary);
    text-decoration: none;
}

.sidebar-news-item__title a:hover {
    color: var(--detail-accent);
}

/* Author Card in Sidebar */
.sidebar-author {
    text-align: center;
}

.sidebar-author__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
}

.sidebar-author__placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto 14px;
}

.sidebar-author__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--detail-primary);
    margin: 0 0 4px;
}

.sidebar-author__name a {
    color: inherit;
    text-decoration: none;
}

.sidebar-author__name a:hover {
    text-decoration: underline;
}

.sidebar-author__role {
    font-size: 0.8125rem;
    color: var(--detail-muted);
    margin: 0 0 12px;
}

.sidebar-author__bio {
    font-size: 0.875rem;
    color: var(--detail-secondary);
    line-height: 1.6;
    margin: 0;
}

.sidebar-author__link {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--detail-primary);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar-author__link:hover {
    background: var(--detail-accent);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr 260px;
        gap: 35px;
    }
    
    .detail-hero {
        height: 360px;
    }
    
    .detail-hero__title {
        font-size: 1.875rem;
    }
}

@media (max-width: 768px) {
    .detail-hero {
        height: 300px;
    }
    
    .detail-hero__content {
        padding: 25px 20px;
    }
    
    .detail-hero__title {
        font-size: 1.5rem;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 30px;
    }
    
    .detail-container {
        padding: 0 15px;
    }
    
    .detail-lead {
        font-size: 1.0625rem;
    }
    
    .detail-content {
        font-size: 1rem;
    }
    
    .detail-similar__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-block {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 540px) {
    .detail-hero {
        height: 260px;
    }
    
    .detail-hero__title {
        font-size: 1.25rem;
    }
    
    .detail-hero__category {
        padding: 5px 10px;
        font-size: 0.6875rem;
    }
    
    .detail-meta {
        gap: 12px;
    }
    
    .detail-meta__item {
        font-size: 0.75rem;
    }
    
    .detail-author {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar-block {
        min-width: 100%;
    }
}
