﻿/* Blog Detay Sayfası - Modern, Temiz ve Profesyonel Tasarım */
:root {
    --vivid-blue: #1a73e8;
    --vivid-blue-dark: #0d47a1;
    --vivid-blue-light: #4e92df;
    --black: #000000;
    --dark-bg: #121212;
    --dark-surface: #1e1e1e;
    --dark-card: #262626;
    --white: #ffffff;
    --gray-50: rgba(255, 255, 255, 0.05);
    --gray-100: rgba(255, 255, 255, 0.1);
    --gray-200: rgba(255, 255, 255, 0.2);
    --gray-300: rgba(255, 255, 255, 0.3);
    --gray-500: rgba(255, 255, 255, 0.5);
    --gray-700: rgba(255, 255, 255, 0.7);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Genel stil sıfırlama ve ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
}

/* Ana konteyner */
.blog-detail-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Blog kartı */
.blog-detail {
    background-color: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 60px;
    border: 1px solid var(--gray-100);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Blog başlık bölümü */
.blog-title {
    padding: 40px;
    background: linear-gradient(135deg, var(--vivid-blue), var(--vivid-blue-dark));
    position: relative;
}

.blog-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    color: var(--white);
    font-size: 0.95rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.blog-meta i {
    color: var(--white);
    opacity: 0.9;
}

.meta-text {
    font-weight: 500;
}

/* Öne çıkan görsel */
.blog-featured-image {
    position: relative;
    width: 100%;
    max-height: 550px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.03);
}

/* Blog içeriği */
.blog-content {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.blog-content p {
    margin-bottom: 24px;
    color: var(--white);
}

.blog-content h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 40px 0 24px;
    color: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--white);
}

.blog-content a {
    color: var(--vivid-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.blog-content a:hover {
    border-bottom-color: var(--vivid-blue);
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: var(--shadow-md);
    display: block;
}

.blog-content img.expanded {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.blog-content blockquote {
    border-left: 4px solid var(--vivid-blue);
    padding: 0 0 0 24px;
    margin: 30px 0;
    font-style: italic;
    color: var(--gray-700);
}

.blog-content code {
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-content pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
    border: 1px solid var(--gray-100);
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
    color: var(--gray-700);
}

.blog-content ul, .blog-content ol {
    margin: 24px 0 24px 24px;
}

.blog-content li {
    margin-bottom: 12px;
}

/* Etiketler */
.blog-tags {
    padding: 0 40px 30px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tags-title {
    font-weight: 600;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.blog-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(26, 115, 232, 0.1);
    color: var(--vivid-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.blog-tag:hover {
    background-color: rgba(26, 115, 232, 0.2);
    transform: translateY(-2px);
}

/* Paylaşım Butonları */
.blog-share {
    padding: 30px 40px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 24px;
}

.share-title {
    font-weight: 600;
    color: var(--gray-500);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

.share-btn.linkedin {
    background-color: #0a66c2;
}

.share-btn.email {
    background-color: #ea4335;
}

.share-btn.copy {
    background-color: #6c757d;
}

.share-btn.copied {
    background-color: #28a745;
}

/* İlgili Yazılar */
.related-posts {
    padding: 40px;
    border-top: 1px solid var(--gray-100);
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--vivid-blue);
    border-radius: 3px;
}

.related-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.related-post-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
    position: relative;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--vivid-blue);
}

.related-post-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.related-post-item:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-info {
    padding: 20px;
}

.related-post-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
    line-height: 1.4;
}

.related-post-date {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Yorum Bölümü */
.blog-comments-section {
    padding: 40px;
    border-top: 1px solid var(--gray-100);
}

.blog-comments-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

.blog-comments-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--vivid-blue);
    border-radius: 3px;
}

.comments-container {
    margin-bottom: 40px;
}

.comment-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.comment-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--gray-200);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.comment-author {
    font-weight: 600;
    color: var(--vivid-blue);
    font-size: 1.05rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.comment-text {
    line-height: 1.6;
    color: var(--white);
}

.no-comments {
    text-align: center;
    padding: 30px;
    border: 1px dashed var(--gray-200);
    border-radius: 12px;
    color: var(--gray-500);
}

/* Yorum Formu */
.comment-form {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--gray-100);
}

.comment-form h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gray-100);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--vivid-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.form-control::placeholder {
    color: var(--gray-500);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.comment-submit-btn {
    background-color: var(--vivid-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.comment-submit-btn:hover {
    background-color: var(--vivid-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.validation-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 6px;
}

.login-reminder {
    text-align: center;
    padding: 24px;
    border: 1px dashed var(--gray-200);
    border-radius: 8px;
    margin-top: 24px;
}

.login-reminder p {
    color: var(--gray-500);
    margin: 0;
    font-size: 1.05rem;
}

.login-reminder a {
    color: var(--vivid-blue);
    text-decoration: none;
    font-weight: 600;
}

.login-reminder a:hover {
    text-decoration: underline;
}

.comment-success {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    margin-top: 20px;
}

.comment-success i {
    color: #28a745;
    font-size: 24px;
}

.comment-success p {
    margin: 0;
    color: var(--white);
}

/* Hata Mesajları */
.error-message {
    text-align: center;
    padding: 60px 30px;
    background-color: var(--dark-card);
    border-radius: 16px;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
}

.error-message i {
    font-size: 56px;
    color: #ff6b6b;
    margin-bottom: 24px;
}

.error-message p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.back-button {
    display: inline-block;
    background-color: var(--vivid-blue);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-button:hover {
    background-color: var(--vivid-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Duyarlı Tasarım */
@media (max-width: 768px) {
    .blog-title {
        padding: 30px;
    }
    
    .blog-title h1 {
        font-size: 1.8rem;
    }
    
    .blog-meta {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-content, 
    .blog-comments-section, 
    .related-posts, 
    .blog-share {
        padding: 25px;
    }
    
    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-posts-list {
        grid-template-columns: 1fr;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
