/* Blog Detail Page Styles */

/* Logo Styles */
.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    color: white;
    padding: 8rem 0 6rem;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.blog-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    pointer-events: none;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    position: relative;
}

.breadcrumb a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.blog-header-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    flex-wrap: wrap;
    align-items: center;
}

.blog-category {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.blog-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.blog-category:hover::before {
    left: 100%;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: break-word;
}

.blog-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 2px;
}

.blog-excerpt {
    font-size: 1.3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Blog Content */
.blog-content {
    padding: 4rem 0;
    background: var(--background-primary);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-main {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.blog-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-body {
    padding: 3rem;
}

.blog-body h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.blog-body h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.blog-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.blog-body ul,
.blog-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-body li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.blog-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: var(--background-secondary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-primary);
}

.blog-body code {
    background: var(--background-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.blog-body pre {
    background: var(--background-dark);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Social Share */
.social-share {
    padding: 2rem 3rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-secondary);
}

.social-share h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

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

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

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

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

/* Author Info */
.author-info {
    padding: 2rem 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.author-details p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
}

.sidebar-widget h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.related-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    text-decoration: none;
}

.related-post:hover {
    background: var(--background-secondary);
}

.related-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-post-content h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-post-content .date {
    color: var(--text-light);
    font-size: 0.8rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.category-list a:hover {
    color: var(--primary-color);
}

/* Newsletter Widget */
.newsletter-widget {
    background: var(--gradient-primary);
    color: white;
}

.newsletter-widget h3,
.newsletter-widget p {
    color: white;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 0.8rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #d97706;
}

/* Related Articles */
.related-articles {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.related-articles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.related-articles .section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.related-articles .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

/* İlgili Yazılar Blog Kartları */
.related-articles .blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.related-articles .blog-content {
    padding: 2.5rem 3rem 3rem 3rem;
}

.related-articles .blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.related-articles .blog-content h3 {
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.related-articles .blog-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 5rem 0 4rem;
    }
    
    .blog-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .blog-title::after {
        width: 40px;
        height: 3px;
    }
    
    .related-articles .blog-content {
        padding: 2rem 2.5rem 2.5rem 2.5rem;
    }
    
    .related-articles .blog-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .related-articles .blog-content p {
        margin-bottom: 1.5rem;
    }
    
    .blog-excerpt {
        font-size: 1.2rem;
    }
    
    .blog-meta {
        gap: 1rem;
    }
    
    .blog-category {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-body {
        padding: 2rem;
    }
    
    .blog-body h2 {
        font-size: 1.5rem;
    }
    
    .blog-body h3 {
        font-size: 1.25rem;
    }
    
    .social-share {
        padding: 1.5rem 2rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .author-info {
        padding: 1.5rem 2rem;
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .related-post {
        flex-direction: column;
        text-align: center;
    }
    
    .related-post img {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 4rem 0 3rem;
    }
    
    .blog-title {
        font-size: 2rem;
        line-height: 1.4;
    }
    
    .blog-title::after {
        width: 30px;
        height: 2px;
    }
    
    .related-articles .blog-content {
        padding: 1.5rem 2rem 2rem 2rem;
    }
    
    .related-articles .blog-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .related-articles .blog-content p {
        margin-bottom: 1.2rem;
        font-size: 0.9rem;
    }
    
    .related-articles .blog-meta {
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
    
    .blog-excerpt {
        font-size: 1.1rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .blog-category {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .blog-body {
        padding: 1.5rem;
    }
    
    .social-share {
        padding: 1rem 1.5rem;
    }
    
    .author-info {
        padding: 1rem 1.5rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
}

/* Dark Mode Styles */
body.dark-mode .blog-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
}

body.dark-mode .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .breadcrumb a:hover {
    color: white;
}

body.dark-mode .breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .blog-category {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

body.dark-mode .blog-date {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .blog-author {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .blog-title {
    color: white;
}

body.dark-mode .blog-excerpt {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-main {
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .blog-body {
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .blog-body h2 {
    color: white;
}

body.dark-mode .blog-body h3 {
    color: white;
}

body.dark-mode .blog-body p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-body ul {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-body ol {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-body li {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-body blockquote {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .social-share {
    background: #1e293b;
    border-top: 1px solid #334155;
}

body.dark-mode .social-share h4 {
    color: white;
}

body.dark-mode .share-btn {
    background: #334155;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid #475569;
}

body.dark-mode .share-btn:hover {
    background: #3b82f6;
    color: white;
}

body.dark-mode .author-info {
    background: #1e293b;
    border-top: 1px solid #334155;
}

body.dark-mode .author-details h4 {
    color: white;
}

body.dark-mode .author-details p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-sidebar {
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .sidebar-widget {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

body.dark-mode .sidebar-widget h3 {
    color: white;
}

body.dark-mode .sidebar-widget p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .category-list a {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .category-list a:hover {
    color: #3b82f6;
}

body.dark-mode .newsletter-form input {
    background: #334155;
    border: 1px solid #475569;
    color: white;
}

body.dark-mode .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .newsletter-form button {
    background: #3b82f6;
    color: white;
}

body.dark-mode .newsletter-form button:hover {
    background: #2563eb;
}

body.dark-mode .related-articles {
    background: #0f172a;
}

body.dark-mode .related-articles .section-title {
    color: white;
}

body.dark-mode .blog-card {
    background: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .blog-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

body.dark-mode .blog-card .blog-content h3 {
    color: white;
}

body.dark-mode .blog-card .blog-content p {
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode .blog-card .blog-meta {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .blog-card .read-more {
    color: #3b82f6;
}

body.dark-mode .blog-card .read-more:hover {
    color: #60a5fa;
}

body.dark-mode .logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}
