/* Genel Stiller */
:root {
    --primary-color: #1a6ca1;
    --secondary-color: #e63946;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.content-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.breadcrumb a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumb .current {
    color: #666;
    font-weight: 600;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.content-main {
    flex: 2;
    min-width: 0;
}

.content-sidebar {
    flex: 1;
    min-width: 300px;
}

/* Content Header */
.content-header {
    margin-bottom: 30px;
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.content-category {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.content-category.breaking {
    background: rgba(231, 57, 70, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(231, 57, 70, 0.3);
}

.content-date,
.content-readtime,
.content-views {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.content-title {
    font-size: 36px;
    line-height: 1.3;
    color: var(--primary-color);
    margin: 0 0 20px 0;
}

.content-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid var(--secondary-color);
}

/* Author Info */
.content-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
}

.author-title {
    font-size: 14px;
    color: #666;
}

/* Featured Image */
.content-featured-image {
    margin: 30px 0;
}

.featured-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* Content Body */
.content-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

.content-body p {
    margin-bottom: 25px;
}

.content-body h2,
.content-body h3 {
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.content-body h2 {
    font-size: 28px;
}

.content-body h3 {
    font-size: 24px;
}

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

.content-body blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    font-style: italic;
    color: #555;
    margin: 30px 0;
    background: var(--light-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Gallery */
.content-gallery {
    margin: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Video */
.content-video {
    margin: 40px 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-top: 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

/* Tags */
.content-tags {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.content-tags h4 {
    margin-bottom: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.tag {
    background: #f1f5f9;
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Share Buttons */
.content-share {
    margin: 40px 0;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.email {
    background: #666;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Author Box */
.author-box {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #dee2e6;
}

.author-box-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-box-info h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.author-box-info p {
    margin: 0 0 10px 0;
    color: #666;
}

.author-social a {
    color: #666;
    margin-right: 10px;
    font-size: 20px;
    transition: color 0.3s;
}

.author-social a:hover {
    color: var(--primary-color);
}

.author-box-bio {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

/* Comments */
.content-comments {
    margin: 60px 0;
}

.comment-form {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), #4385e2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #4385e2, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 108, 161, 0.3);
}

/* Comments List */
.comments-list {
    margin-top: 30px;
}

.comment-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.comment-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author {
    display: flex;
    flex-direction: column;
}

.comment-name {
    font-weight: 600;
    color: var(--text-color);
}

.comment-date {
    font-size: 14px;
    color: #666;
}

.comment-body p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* Sidebar */
.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.widget-title {
    color: var(--primary-color);
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Related News */
.related-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-link {
    display: flex;
    gap: 15px;
}

.related-image {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
}

.related-category {
    display: inline-block;
    font-size: 11px;
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 5px;
}

.related-content h4 {
    font-size: 16px;
    margin: 0 0 5px 0;
    line-height: 1.4;
    color: var(--text-color);
}

.related-date {
    font-size: 12px;
    color: #666;
}

/* Popular News */
.popular-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-rank {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--secondary-color), #ff6b6b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.popular-content h4 {
    font-size: 16px;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.popular-content a:hover {
    color: var(--primary-color);
}

.popular-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 5px;
}

/* Advertisement */
.advertisement {
    position: relative;
    background: var(--light-bg);
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ad-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.ad-text {
    color: #666;
    font-size: 14px;
}

/* Newsletter */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary-color), #4385e2);
    color: white;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 16px;
}

.btn-newsletter {
    width: 100%;
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-newsletter:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Similar News */
.similar-news {
    margin: 60px 0;
}

.section-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.similar-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.similar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.similar-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.similar-card:hover .similar-image img {
    transform: scale(1.05);
}

.similar-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(231, 57, 70, 0.9);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.similar-content {
    padding: 20px;
}

.similar-content h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: var(--primary-color);
}

.similar-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.similar-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .content-sidebar {
        min-width: auto;
    }
    
    .content-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }
    
    .content-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .related-link {
        flex-direction: column;
    }
    
    .related-image {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .content-title {
        font-size: 24px;
    }
    
    .content-excerpt {
        font-size: 16px;
    }
    
    .content-body {
        font-size: 16px;
    }
    
    .author-box-header {
        flex-direction: column;
        text-align: center;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .content-meta span {
        font-size: 12px;
    }
}

/* Icon Stilleri */
.fas, .far, .fab {
    font-size: 16px;
}


/* Grid container */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 eşit kolon */
    gap: 25px;
    margin: 0 -12.5px; /* Gap compensation */
}

/* Grid item */
.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kolon */
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolon */
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr; /* 1 kolon */
    }
}
