:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; max-width: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f1f5f9;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
}

.reading-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 4px;
    background: linear-gradient(90deg, #023039, #00f855);
    z-index: 9999; transition: width 0.1s ease;
}

.article-page { padding: 2rem 0; }

.article-breadcrumb {
    background: white; padding: 1rem 1.5rem; border-radius: var(--radius);
    margin-bottom: 1.5rem; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 0.9rem;
}
.article-breadcrumb a { color: var(--secondary); text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; }
.article-breadcrumb a:hover { color: var(--primary); }
.article-breadcrumb .separator { color: var(--border); }
.article-breadcrumb .current { color: var(--dark); font-weight: 600; }

.article-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow-lg); }
.article-hero img { width: 100%; height: 450px; object-fit: cover; display: block; max-width: 100%; }
.article-hero-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 3rem 2rem 2rem; color: white;
}

.article-category {
    display: inline-block; background: var(--primary); color: white;
    padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1rem; text-decoration: none; transition: var(--transition); max-width: none;
}
.article-category:hover { background: var(--primary-dark); color: white; text-decoration: none; }

.article-hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin: 0 0 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); max-width: none; }
.article-meta-bar { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.9rem; opacity: 0.9; max-width: none; }
.meta-item { display: flex; align-items: center; gap: 0.5rem; max-width: none; }
.meta-item i { opacity: 0.8; }

.floating-share {
    position: fixed; left: 2rem; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 0.75rem; z-index: 100; max-width: none;
}
.floating-share a, .floating-share button {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; transition: var(--transition);
    border: none; cursor: pointer; font-size: 1.1rem; box-shadow: var(--shadow); max-width: none;
}
.floating-share .facebook { background: #1877f2; }
.floating-share .twitter { background: #000; }
.floating-share .linkedin { background: #0a66c2; }
.floating-share .whatsapp { background: #25d366; }
.floating-share .copy { background: var(--secondary); }
.floating-share a:hover, .floating-share button:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); }

.article-grid { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; max-width: none; }
.article-main { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }

.article-content { padding: 2.5rem; overflow: hidden; word-wrap: break-word; overflow-wrap: break-word; }
.article-content p { margin-bottom: 1.5rem; font-size: 1.4rem; color: #374151; }
.article-content h2 { font-size: 1.75rem; font-weight: 700; margin: 2.5rem 0 1rem; color: var(--dark); border-left: 4px solid var(--primary); padding-left: 1rem; }
.article-content h3 { font-size: 1.4rem; font-weight: 600; margin: 2rem 0 1rem; color: var(--dark); }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem auto; display: block; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; table-layout: fixed; word-break: break-word; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); max-width: 100%; }
.table-responsive table { margin: 0; min-width: 480px; table-layout: auto; word-break: normal; }
.article-content table td, .article-content table th { border: 1px solid #e2e8f0; padding: 10px 14px; text-align: left; vertical-align: top; white-space: normal; overflow-wrap: break-word; }
.article-content table th { background: #f1f5f9; font-weight: 600; color: #1e293b; }
.article-content table tr:nth-child(even) td { background: #f8fafc; }
.article-content table tr:hover td { background: #eff6ff; }
.article-content pre, .article-content code, .article-content iframe, .article-content blockquote { max-width: 100%; overflow-x: auto; }
.article-content iframe { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 8px; border: none; }
.article-content ul, .article-content ol { margin: 1.5rem 0; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.75rem; }
.article-content blockquote { background: var(--light); border-left: 4px solid var(--primary); padding: 1.5rem; margin: 2rem 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--secondary); }
.article-content h2:first-of-type + ol, .article-content h2:first-of-type + ul { display: none !important; }

.article-actions {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 2.5rem; border-top: 1px solid var(--border);
    background: var(--light); flex-wrap: wrap; gap: 1rem; max-width: none;
}

.like-button {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.5rem;
    border: 2px solid var(--danger); background: white; border-radius: 50px;
    cursor: pointer; transition: var(--transition); font-size: 1rem; font-weight: 600; color: var(--danger); max-width: none;
}
.like-button:hover, .like-button.liked { background: var(--danger); color: white; }
.like-button.liked { animation: likeAnimation 0.5s ease; }
@keyframes likeAnimation { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.like-button i { font-size: 1.2rem; transition: var(--transition); }
.like-button.liked i { animation: heartBeat 0.5s ease; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 25% { transform: scale(1.3); } 50% { transform: scale(1); } 75% { transform: scale(1.2); } }

.action-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; max-width: none; }
.action-btn {
    padding: 0.75rem 1.25rem; border: 1px solid var(--border); background: white;
    border-radius: 8px; cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--secondary); max-width: none;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn.saved { background: var(--primary); color: white; border-color: var(--primary); }

.article-tags { padding: 1.5rem 2.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; max-width: none; }
.article-tags span { color: var(--secondary); font-weight: 500; margin-right: 0.5rem; }
.tag { display: inline-block; padding: 0.4rem 0.75rem; background: var(--light); color: var(--secondary); border-radius: 50px; font-size: 1.15rem; text-decoration: none; transition: var(--transition); max-width: none; }
.tag:hover { background: var(--primary); color: white; text-decoration: none; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.nav-item { background: white; border-radius: var(--radius); padding: 1.5rem; text-decoration: none; transition: var(--transition); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.nav-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.nav-item .label { font-size: 0.85rem; color: var(--secondary); display: flex; align-items: center; gap: 0.5rem; max-width: none; }
.nav-item .title { font-weight: 600; color: var(--dark); line-height: 1.4; }
.nav-item.next { text-align: right; }
.nav-item.next .label { justify-content: flex-end; }

.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.sidebar-widget { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.widget-header { background: linear-gradient(135deg, #1e293b, #334155); color: white; padding: 1.25rem 1.5rem; font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 0.75rem; max-width: none; }
.widget-content { padding: 1.5rem; }

.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { margin-bottom: 0.5rem; }
.category-list a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; color: var(--dark); text-decoration: none; border-radius: 8px; transition: var(--transition); max-width: none; }
.category-list a:hover { background: var(--light); color: var(--primary); transform: translateX(5px); }
.category-list a i { color: var(--secondary); font-size: 0.8rem; }

.related-post { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post:first-child { padding-top: 0; }
.related-post-image { width: 80px; height: 60px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.related-post-info { flex: 1; min-width: 0; }
.related-post-title { font-size: 0.9rem; font-weight: 600; color: var(--dark); text-decoration: none; line-height: 1.4; display: block; margin-bottom: 0.25rem; overflow: hidden; text-overflow: ellipsis; }
.related-post-title:hover { color: var(--primary); text-decoration: none; }
.related-post-date { font-size: 0.8rem; color: var(--secondary); }

.comments-section { background: white; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 2rem; overflow: hidden; }
.comments-header { background: linear-gradient(135deg, #1e293b, #334155); color: white; padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; max-width: none; }
.comments-header h3 { margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 0.75rem; max-width: none; }
.comments-count { background: rgba(255,255,255,0.2); padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.9rem; max-width: none; }
.comments-body { padding: 2rem; }

.comment-form { background: var(--light); padding: 1.5rem; border-radius: var(--radius); margin-bottom: 2rem; }
.comment-form h4 { margin: 0 0 1rem; font-size: 1.1rem; color: var(--dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--dark); font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; transition: var(--transition); font-family: inherit; max-width: 100%; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }

.submit-comment { background: var(--primary); color: white; border: none; padding: 0.875rem 2rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 0.5rem; max-width: none; }
.submit-comment:hover { background: var(--primary-dark); }
.submit-comment:disabled { background: var(--secondary); cursor: not-allowed; }

.comments-list { display: flex; flex-direction: column; gap: 1.5rem; }
.comment-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: var(--transition); }
.comment-item:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.05); }
.comment-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; max-width: none; }
.comment-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #8b5cf6); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; max-width: none; }
.comment-meta { flex: 1; min-width: 0; }
.comment-author { font-weight: 600; color: var(--dark); margin-bottom: 0.25rem; }
.comment-date { font-size: 0.85rem; color: var(--secondary); }
.comment-body { color: #4b5563; line-height: 1.7; margin-bottom: 1rem; overflow-wrap: break-word; }
.comment-actions { display: flex; gap: 1rem; flex-wrap: wrap; max-width: none; }
.comment-action { background: none; border: none; color: var(--secondary); font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); padding: 0.5rem; border-radius: 4px; max-width: none; }
.comment-action:hover { color: var(--primary); background: var(--light); }
.comment-action.liked { color: var(--danger); }
.comment-replies { margin-top: 1rem; padding-left: 2rem; border-left: 2px solid var(--border); }
.reply-item { padding: 1rem; background: var(--light); border-radius: 8px; margin-top: 1rem; }

.no-comments { text-align: center; padding: 3rem; color: var(--secondary); }
.no-comments i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.no-comments p { margin: 0; font-size: 1.1rem; }
.load-more-comments { text-align: center; margin-top: 1.5rem; }
.load-more-btn { background: var(--light); border: 1px solid var(--border); padding: 0.75rem 2rem; border-radius: 50px; cursor: pointer; font-weight: 500; transition: var(--transition); max-width: none; }
.load-more-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--dark); color: white; padding: 1rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.75rem; z-index: 9999; animation: slideIn 0.3s ease; max-width: calc(100vw - 4rem); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 1200px) { .floating-share { display: none; } }
@media (max-width: 991px) { .article-grid { grid-template-columns: 1fr; } .article-sidebar { order: 2; } .article-hero img { height: 350px; } .article-hero-title { font-size: 2rem; } }
@media (max-width: 768px) {
    .article-page { padding: 1rem 0; }
    .article-hero img { height: 280px; }
    .article-hero-overlay { padding: 2rem 1rem 1rem; }
    .article-hero-title { font-size: 1.5rem; }
    .article-meta-bar { gap: 1rem; font-size: 0.85rem; }
    .article-content { padding: 1.25rem; }
    .article-content p { font-size: 1.1rem; }
    .article-actions { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.5rem; }
    .like-button { justify-content: center; }
    .action-buttons { justify-content: center; }
    .article-nav { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .comments-body { padding: 1.5rem; }
    .comment-item { padding: 1rem; }
    .article-content table { font-size: 0.82rem; }
    .article-content table td, .article-content table th { padding: 7px 9px; }
    .article-content table th { white-space: nowrap; }
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.article-main, .sidebar-widget, .comments-section { animation: fadeInUp 0.6s ease forwards; }
.sidebar-widget:nth-child(2) { animation-delay: 0.1s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.2s; }

.loading { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 0.8s linear infinite; }
.ios-app .article-content p, .ios-app .article-content li { font-size: 1.15rem !important; line-height: 1.8 !important; }
.ios-app .article-content h2 { font-size: 1.5rem !important; }
.ios-app .article-content h3 { font-size: 1.25rem !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.toc-box { background: #f0f7ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.toc-box .toc-title { font-size: 1.35rem; font-weight: 700; color: #1e40af; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.toc-box ol { margin: 0; padding-left: 1.5rem; }
.toc-box ol li { margin-bottom: 0.4rem; }
.toc-box ol li a { color: #2563eb; text-decoration: none; font-size: 1.25rem; transition: color 0.2s; }
.toc-box ol li a:hover { color: #1d4ed8; text-decoration: underline; }

.sss-accordion { margin: 1rem 0; }
.sss-item { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 0.5rem; overflow: hidden; }
.sss-question { width: 100%; background: #f8fafc; border: none; padding: 1rem 1.25rem; text-align: left; font-size: 1.35rem; font-weight: 600; color: #1e293b; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background 0.2s; font-family: inherit; }
.sss-question:hover { background: #eff6ff; color: #2563eb; }
.sss-question.open { background: linear-gradient(135deg, #1e293b, #334155); color: white; }
.sss-question .sss-icon { flex-shrink: 0; font-size: 1.1rem; transition: transform 0.3s; }
.sss-question.open .sss-icon { transform: rotate(45deg); }
.sss-answer { display: none; padding: 1rem 1.25rem; color: #374151; font-size: 0.975rem; line-height: 1.7; border-top: 1px solid #e2e8f0; background: white; }
.sss-answer.open { display: block; }

.blog-reklam-alani {
    width: 100%;
    max-width: 336px;
    margin: 1.5rem auto;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .blog-reklam-alani {
        max-width: 300px;
    }
}