﻿/* Modern News Detail Page - KodLegal Design System */

/* Page Header - Enhanced */
.page-header {
    background: linear-gradient(135deg, var(--kodlegal-bg-light) 0%, var(--kodlegal-bg-gray) 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.02) 0%, rgba(46, 16, 101, 0.05) 100%);
    pointer-events: none;
}

/* Article Container - Modern Background */
.article-container {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--kodlegal-bg-lighter) 0%, var(--kodlegal-bg-medium) 100%);
    min-height: 70vh;
    position: relative;
}

.article-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="article-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="0.5" fill="%23000" opacity="0.02"/><circle cx="60" cy="30" r="0.5" fill="%23000" opacity="0.02"/><circle cx="30" cy="70" r="0.5" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23article-grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Article Meta - Modern Design */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--kodlegal-gray);
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    transition: all 0.3s ease;
}

.meta-item:hover, .meta-item:active {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.meta-item i {
    color: var(--kodlegal-primary);
}

.category-badge {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(46, 16, 101, 0.3);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Article Card - Glassmorphism Design */
.article-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    z-index: 2;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 25px 25px 0 0;
}

/* Article Title */
.article-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
    position: relative;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 2px;
}

/* Article Summary */
.article-summary {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--kodlegal-gray);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

/* Article Image */
.article-image {
    margin: 2.5rem 0;
    text-align: center;
    position: relative;
}

.article-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.article-image img:hover, img:active {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Article Content */
.article-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--kodlegal-dark);
    margin-bottom: 3rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: var(--kodlegal-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--kodlegal-primary);
}

/* Share Section - Enhanced */
.share-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.share-section h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: var(--kodlegal-dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--kodlegal-primary);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--kodlegal-primary);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--kodlegal-primary);
    border-radius: 25px;
    transition: width 0.3s ease;
    z-index: -1;
}

.share-btn:hover::before {
    width: 100%;
}

.share-btn:hover, .share-btn:active {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 16, 101, 0.2);
}

/* Navigation Section */
.navigation-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--kodlegal-primary);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--kodlegal-primary);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-btn.primary {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    color: white;
    border-color: transparent;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--kodlegal-primary);
    border-radius: 25px;
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-btn:hover::before {
    width: 100%;
}

.nav-btn:hover, .nav-btn:active {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 16, 101, 0.2);
}

.nav-btn.primary:hover, .nav-btn.primary:active {
    background: linear-gradient(135deg, var(--kodlegal-secondary), var(--kodlegal-primary));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46, 16, 101, 0.3);
}

/* Related Articles Section */
.related-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

.related-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: var(--kodlegal-dark);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 2px;
    transition: all 0.4s ease;
}

.related-title:hover::after {
    width: 100px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary), var(--kodlegal-accent));
    height: 4px;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    border-radius: 2px;
}

/* Related News Cards */
.related-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.8));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-card:hover, .related-card:active {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(46, 16, 101, 0.12);
    border-color: rgba(46, 16, 101, 0.2);
}

.related-image {
    height: 200px;
    background: linear-gradient(135deg, var(--kodlegal-bg-light), var(--kodlegal-bg-muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kodlegal-gray);
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.related-card:hover, .related-card:active .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: var(--kodlegal-gray);
    flex-wrap: wrap;
}

.related-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(46, 16, 101, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 500;
}

.related-category {
    background: linear-gradient(135deg, var(--kodlegal-primary), var(--kodlegal-secondary));
    color: white;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 10px;
    font-weight: 600;
}

.related-card h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--kodlegal-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.related-card:hover, .related-card:active h5 {
    color: var(--kodlegal-primary);
}

.related-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--kodlegal-gray);
    line-height: 1.5;
    margin-bottom: auto;
    opacity: 0.9;
    flex-grow: 1;
}

.related-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--kodlegal-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--kodlegal-primary);
    border-radius: 20px;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--kodlegal-primary);
    border-radius: 20px;
    transition: width 0.3s ease;
    z-index: -1;
}

.related-link:hover::before {
    width: 100%;
}

.related-link:hover, .related-link:active {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 3rem;
    }
    
    .article-container {
        padding: 3rem 0;
    }
    
    .article-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        justify-content: center;
        gap: 1rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .navigation-section .row {
        text-align: center;
    }
    
    .navigation-section .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        text-align: center !important; /* Mobilde ortala */
    }
    
    .navigation-section .nav-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .related-content {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .meta-item {
        flex-direction: column;
        text-align: center;
        gap: 0.2rem;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
}

