/*
 * TÜRKONFED News Detail Page
 * Clean. Article-focused. Professional.
 * Light theme hardcoded for content sections.
 * Hero section retains dark overlay with white text.
 */

/* ============================================
   NOT FOUND STATE  (LIGHT)
   ============================================ */

.news-detail-notfound {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    background: #f8f9fb;
}

.notfound-content {
    text-align: center;
    max-width: 400px;
}

.notfound-content svg {
    width: 64px;
    height: 64px;
    color: #8a94a6;
    margin-bottom: 1.5rem;
}

.notfound-content h1 {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0 0 0.75rem;
}

.notfound-content p {
    font-size: 1rem;
    color: #5a6478;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back svg {
    width: 18px;
    height: 18px;
}

.btn-back:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* ============================================
   HERO SECTION  (KEEP DARK)
   ============================================ */

.news-detail-hero {
    position: relative;
    padding: 12rem 0 4.0rem;
    background: var(--color-bg-dark);
    overflow: hidden;
}

.news-detail-hero-bg {
    position: absolute;
    inset: 0;
}

.news-detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.news-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 18, 0.6) 0%, rgba(10, 13, 18, 0.95) 100%);
}

.news-detail-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.news-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.news-detail-back svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.news-detail-back:hover {
    color: #fff;
}

.news-detail-back:hover svg {
    transform: translateX(-4px);
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.news-detail-category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    padding: 0.35rem 0.75rem;
    background: var(--color-accent);
}

.news-detail-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.news-detail-title {
    font-family: var(--font-family-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0;
}

/* ============================================
   CONTENT SECTION  (LIGHT)
   ============================================ */

.news-detail-content {
    padding: 4rem 0;
    background: #f8f9fb;
}

.news-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

/* Article  (LIGHT) */
.news-article {
    background: #ffffff;
    border: 1px solid #e2e5eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.news-article-image {
    width: 100%;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    overflow: hidden;
}

.news-article-image img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.news-article-body {
    padding: 2.5rem;
}

.news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.news-article-body p {
    font-size: 1.0625rem;
    color: #5a6478;
    line-height: 1.8;
    margin: 0 0 1.5rem;
}

.news-article-body p:last-of-type {
    margin-bottom: 0;
}

.article-subheading {
    font-family: var(--font-family-heading);
    font-size: 1.1875rem;
    font-weight: 700;
    color: #1a1f2e;
    margin: 2rem 0 1rem;
    line-height: 1.4;
}

.article-subheading:first-child {
    margin-top: 0;
}

.article-quote {
    border-left: 3px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #5a6478;
    background: #f8f9fb;
    line-height: 1.7;
}

.news-summary-lead {
    font-size: 1.25rem !important;
    color: #1a1f2e !important;
    line-height: 1.7 !important;
    font-weight: 500;
}

/* Content Placeholder  (LIGHT) */
.news-content-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 2rem;
    background: #f8f9fb;
    border: 1px dashed #e2e5eb;
}

.news-content-placeholder svg {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.news-content-placeholder p {
    font-size: 0.9375rem !important;
    color: #8a94a6 !important;
    margin-bottom: 1.5rem !important;
}

.btn-source {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-source svg {
    width: 16px;
    height: 16px;
}

.btn-source:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
}

/* Share Section  (LIGHT) */
.news-article-share {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e2e5eb;
    background: #f8f9fb;
}

.share-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #5a6478;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a6478;
    background: #ffffff;
    border: 1px solid #e2e5eb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* ============================================
   SIDEBAR  (LIGHT)
   ============================================ */

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e5eb;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.widget-title {
    font-family: var(--font-family-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e5eb;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.source-link svg {
    width: 18px;
    height: 18px;
}

.source-link:hover {
    color: var(--color-accent-dark);
}

/* Related List  (LIGHT) */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateX(4px);
}

.related-item-image {
    flex-shrink: 0;
    width: 72px;
    height: 54px;
    overflow: hidden;
    background: #f8f9fb;
}

.related-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
}

.related-item-placeholder svg {
    width: 24px;
    height: 24px;
    color: #e2e5eb;
}

.related-item-content {
    flex: 1;
    min-width: 0;
}

.related-item-content h4 {
    font-family: var(--font-family-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1f2e;
    line-height: 1.4;
    margin: 0 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-item:hover h4 {
    color: var(--color-accent);
}

.related-item-date {
    font-size: 0.6875rem;
    color: #8a94a6;
}

/* ============================================
   GALLERY SECTION  (LIGHT)
   ============================================ */

.news-article-gallery {
    padding: 2rem 2.5rem;
    border-top: 1px solid #e2e5eb;
}

.news-article-gallery h3 {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0 0 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8f9fb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   ATTACHMENTS SECTION  (LIGHT)
   ============================================ */

.news-article-attachments {
    padding: 2rem 2.5rem;
    border-top: 1px solid #e2e5eb;
}

.news-article-attachments h3 {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0 0 1rem;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8f9fb;
    border: 1px solid #e2e5eb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.attachment-item:hover {
    border-color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.05);
    transform: translateY(-2px);
}

.attachment-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
}

.attachment-icon svg {
    width: 22px;
    height: 22px;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1f2e;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-size {
    display: block;
    font-size: 0.75rem;
    color: #8a94a6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.attachment-download {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.attachment-download svg {
    width: 20px;
    height: 20px;
}

.attachment-item:hover .attachment-download {
    opacity: 1;
}

/* ============================================
   TAGS SECTION  (LIGHT)
   ============================================ */

.news-article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e2e5eb;
}

.tags-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #5a6478;
    flex-shrink: 0;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    font-size: 0.75rem;
    font-weight: 500;
    color: #5a6478;
    padding: 0.35rem 0.75rem;
    background: #f8f9fb;
    border: 1px solid #e2e5eb;
    transition: all 0.3s ease;
}

.tag-item:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* ============================================
   MORE NEWS SECTION  (LIGHT)
   ============================================ */

.news-more {
    padding: 3rem 0;
    background: #ffffff;
    border-top: 1px solid #e2e5eb;
}

.news-more-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-more-header h2 {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1f2e;
    margin: 0;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.view-all svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.view-all:hover svg {
    transform: translateX(4px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .news-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-widget {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    /* Hero - reduce padding for tablet */
    .news-detail-hero {
        padding: 8rem 0 2.5rem;
    }

    .news-detail-title {
        font-size: 1.375rem;
        line-height: 1.35;
    }

    .news-detail-back {
        margin-bottom: 1.25rem;
    }

    /* Content section */
    .news-detail-content {
        padding: 1.5rem 0;
    }

    .news-article {
        border-left: none;
        border-right: none;
    }

    .news-article-body {
        padding: 1.25rem;
    }

    .news-article-body p {
        font-size: 0.9375rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }

    .news-summary-lead {
        font-size: 1.0625rem !important;
    }

    .article-subheading {
        font-size: 1.0625rem;
        margin: 1.5rem 0 0.75rem;
    }

    .article-quote {
        padding: 0.75rem 1rem;
        margin: 1rem 0;
        font-size: 0.9375rem;
    }

    /* Gallery */
    .news-article-gallery {
        padding: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* Attachments */
    .news-article-attachments {
        padding: 1.25rem;
    }

    .attachment-item {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .attachment-icon {
        width: 40px;
        height: 40px;
    }

    .attachment-icon svg {
        width: 20px;
        height: 20px;
    }

    .attachment-name {
        font-size: 0.8125rem;
    }

    .attachment-download {
        width: 44px;
        height: 44px;
    }

    /* Tags */
    .news-article-tags {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    /* Share */
    .news-article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .share-btn {
        width: 44px;
        height: 44px;
    }

    /* Sidebar */
    .news-sidebar {
        flex-direction: column;
    }

    .sidebar-widget {
        min-width: 100%;
    }

    /* More news */
    .news-more {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    /* Hero - compact for small phones */
    .news-detail-hero {
        padding: 7rem 0 1.75rem;
    }

    .news-detail-title {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .news-detail-date {
        font-size: 0.75rem;
    }

    /* Article image - mobile */
    .news-article-image {
        max-height: 400px;
    }

    .news-article-image img {
        max-height: 400px;
    }

    /* Body text */
    .news-article-body {
        padding: 1rem;
    }

    .news-article-body p {
        font-size: 0.875rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .article-subheading {
        font-size: 0.9375rem;
        margin: 1.25rem 0 0.5rem;
    }

    .article-quote {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    /* Gallery single column on small phones */
    .news-article-gallery {
        padding: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Attachments full width */
    .news-article-attachments {
        padding: 1rem;
    }

    .attachment-item {
        padding: 0.75rem;
        gap: 0.625rem;
    }

    .attachment-icon {
        width: 36px;
        height: 36px;
    }

    .attachment-icon svg {
        width: 18px;
        height: 18px;
    }

    .attachment-name {
        font-size: 0.75rem;
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .attachment-size {
        font-size: 0.6875rem;
    }

    /* Tags */
    .news-article-tags {
        padding: 1rem;
    }

    /* Share */
    .news-article-share {
        padding: 1rem;
    }

    /* Related items */
    .related-item-image {
        width: 60px;
        height: 45px;
    }

    .related-item-content h4 {
        font-size: 0.75rem;
    }

    /* Not found */
    .news-detail-notfound {
        padding: 6rem 0 3rem;
    }

    .notfound-content h1 {
        font-size: 1.375rem;
    }
}

/* Extra small phones (320px) */
@media (max-width: 360px) {
    .news-detail-hero {
        padding: var(--header-height) 0 1.5rem;
    }

    .news-detail-title {
        font-size: 1rem;
    }

    .news-article-body p {
        font-size: 0.8125rem;
    }

    .share-buttons {
        gap: 0.375rem;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .news-detail-back,
    .btn-back,
    .btn-source,
    .share-btn,
    .related-item,
    .view-all {
        transition: none;
    }

    .news-detail-back:hover svg,
    .view-all:hover svg {
        transform: none;
    }

    .btn-back:hover,
    .btn-source:hover,
    .share-btn:hover {
        transform: none;
    }
}
