@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Nunito:wght@400;600;700&display=swap');

:root {
    --bg-start: #1f005c;
    --bg-mid: #5b0060;
    --bg-end: #ff8a00;
    --card-bg: rgba(255,255,255,0.9);
    --text-dark: #000000;
    --text-muted: #6b7280;
    --primary: #6d28d9;
    --primary-2: #8b5cf6;
    --font-primary: 'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: radial-gradient(1000px 600px at 0% 0%, #0ea5e9 0%, transparent 60%),
                radial-gradient(900px 500px at 100% 0%, #8b5cf6 0%, transparent 60%),
                linear-gradient(135deg, var(--bg-start), var(--bg-mid) 40%, var(--bg-end));
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
.hero {
    text-align: center;
    padding: 64px 16px 32px;
    color: #fff;
}
.hero h1 {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hero p {
    margin: 0 auto;
    max-width: 760px;
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.75;
    opacity: 0.95;
    font-weight: 400;
}
.search-bar {
    margin: 28px auto 0;
    max-width: 640px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
}
.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}
.search-bar input::placeholder {
    color: rgba(255,255,255,0.7);
}
.search-bar button {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.search-bar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109,40,217,0.4);
}
.search-bar .clear-search {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}
.search-bar .clear-search:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}
@media (max-width: 992px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
    background: #ffffff !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}
.card .content,
.card .title,
.card .excerpt {
    background: #ffffff !important;
}
.thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f3f4f6;
}
.thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.content { padding: 20px 22px; }
.meta { 
    color: #ff0606; 
    font-size: 13px; 
    margin-bottom: 10px; 
    line-height: 1.6;
    font-weight: 400;
}
.title { 
    margin: 0 0 12px; 
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 22px); 
    line-height: 1.4; 
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}
.excerpt { 
    margin: 0 0 14px; 
    color: #1f2937; 
    font-size: 15px; 
    line-height: 1.7;
    font-weight: 400;
}
.tags { display:flex; flex-wrap: wrap; gap:8px; }
.tag {
    font-size: 12px; padding: 6px 10px; border-radius: 999px;
    background: linear-gradient(135deg, #e9d5ff, #dbeafe);
    color: #4338ca; border: 1px solid rgba(67,56,202,0.15);
}
.actions { display:flex; justify-content: space-between; align-items:center; margin-top:auto; padding: 0 22px 20px; }
.readmore { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 15px;
    transition: all 0.2s ease;
}
.readmore:hover { 
    text-decoration: underline; 
    color: var(--primary-2);
}
.badge {
    background: linear-gradient(135deg, #34d399, #10b981);
    color:#fff; font-size:12px; padding:6px 10px; border-radius:999px;
}
.category-bar {
    display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; justify-content:center;
}
.category-bar a {
    color:#fff; border:1px solid rgba(255,255,255,0.35); padding:8px 16px; border-radius:999px; text-decoration:none;
    background: rgba(255,255,255,0.08);
    font-weight:500;
    transition:all 0.2s ease;
    font-size:14px;
}
.category-bar a:hover { 
    background: rgba(255,255,255,0.18); 
    transform:translateY(-1px);
    box-shadow:0 2px 8px rgba(0,0,0,0.1);
}
.category-bar a.active {
    background: rgba(255,255,255,0.25);
    border-color:rgba(255,255,255,0.5);
    font-weight:600;
}

/* Navbar + Footer for blog list */
.blog-navbar{
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(255,255,255,0.95);
    backdrop-filter:saturate(180%) blur(20px);
    -webkit-backdrop-filter:blur(20px);
    border-bottom:1px solid rgba(0,0,0,0.08);
    box-shadow:0 1px 3px rgba(0,0,0,0.05);
    transition:all 0.3s ease;
}
.blog-navbar .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 24px;
    max-width:1400px;
    margin:0 auto;
}
.blog-brand{
    display:flex;
    align-items:center;
    gap:12px;
    font-family:var(--font-heading);
    font-weight:700;
    font-size:20px;
    color:#111827;
    text-decoration:none;
    transition:opacity 0.2s;
}
.blog-brand:hover{
    opacity:0.8;
}
.blog-brand img{
    height: 71px;
    width: auto;
    display: block;
}
.blog-nav{
    display:flex;
    align-items:center;
    gap:8px;
}
.blog-nav a{
    color:#4b5563;
    text-decoration:none;
    font-weight:500;
    font-size:15px;
    padding:8px 16px;
    border-radius:8px;
    transition:all 0.2s ease;
    position:relative;
}
.blog-nav a:hover{
    color:#111827;
    background:rgba(0,0,0,0.05);
}
.blog-nav a.active{
    color:var(--primary);
    background:rgba(109,40,217,0.1);
}

.blog-footer{background:#0f172a;color:#cbd5e1;padding:30px 0;margin-top:60px}
.blog-footer .container{max-width:1100px;margin:0 auto;padding:0 20px}
.blog-footer a{color:#e5e7eb;text-decoration:none;transition:color 0.2s ease}
.blog-footer a:hover{color:#ffffff}

.blog-footer .footer-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:20px;
}

.blog-footer .footer-left{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.blog-footer .footer-links{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    font-size:14px;
}

.blog-footer .footer-links span{
    color:#6b7280;
}

.blog-footer .footer-right{
    display:flex;
    align-items:center;
}

.blog-footer .social-links{
    display:flex;
    align-items:center;
    gap:12px;
}

.blog-footer .social-links a.social-icon{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:36px !important;
    height:36px !important;
    border-radius:50% !important;
    background:rgba(255,255,255,0.1) !important;
    color:#cbd5e1 !important;
    transition:all 0.3s ease !important;
    font-size:16px !important;
    border:none !important;
    box-shadow:none !important;
    opacity:1 !important;
    cursor:pointer !important;
    text-decoration:none !important;
}

.blog-footer .social-links a.social-icon i{
    color:#cbd5e1 !important;
    background:transparent !important;
    box-shadow:none !important;
    opacity:1 !important;
    width:auto !important;
    height:auto !important;
    border:none !important;
}

.blog-footer .social-links a.social-icon:hover{
    background:rgba(255,255,255,0.2) !important;
    color:#ffffff !important;
    transform:translateY(-2px);
    box-shadow:none !important;
    opacity:1 !important;
}

.blog-footer .social-links a.social-icon i.fab{
    background:transparent !important;
    box-shadow:none !important;
    opacity:1 !important;
    color:#cbd5e1 !important;
    width:auto !important;
    height:auto !important;
    border:none !important;
}

.blog-footer .social-links a.social-icon svg{
    width:16px !important;
    height:16px !important;
    fill:#cbd5e1 !important;
    transition:fill 0.3s ease;
    display:inline-block;
    vertical-align:middle;
}

.blog-footer .social-links a.social-icon:hover svg{
    fill:#ffffff !important;
}

@media (max-width:768px){
    .blog-footer .footer-content{
        flex-direction:column;
        text-align:center;
    }
    
    .blog-footer .footer-left{
        align-items:center;
    }
    
    .blog-footer .footer-links{
        justify-content:center;
    }
}

/* Share bar */
.share-bar{display:flex;align-items:center;gap:10px;padding:0 22px 22px}
.share-bar span{color:#6b7280}
.share-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;color:#fff;text-decoration:none;font-weight:700;font-size:12px}
.share-btn.fb{background:#1877f2}
.share-btn.tw{background:#111827}
.share-btn.li{background:#0a66c2}
.share-btn.wa{background:#25d366}
.share-btn.tg{background:#229ED9}

/* Related */
.related{padding:10px 0 40px}
.related .container{max-width:1100px;margin:0 auto;padding:0 20px}
.related h3{
    font-family:var(--font-heading);
    color:#111827;
    margin:0 0 20px;
    font-size:24px;
    font-weight:700;
}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:900px){.related-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.related-grid{grid-template-columns:1fr}}
.related-card{display:flex;gap:12px;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 10px 20px rgba(0,0,0,.08);text-decoration:none;color:#111827;transition:transform 0.2s,box-shadow 0.2s}
.related-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(0,0,0,.12)}
.related-thumb{width:140px;height:100px;flex:0 0 140px;overflow:hidden;background:#f3f4f6}
.related-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.related-content{padding:12px 14px}
.related-title{font-family:var(--font-heading);font-weight:700;margin:4px 0 8px;font-size:16px;line-height:1.4;line-height:1.4}
.related-excerpt{color:#6b7280;font-size:14px;line-height:1.6}
.related-meta{color:#9ca3af;font-size:12px;margin-bottom:6px}

/* Breadcrumb */
.breadcrumb{
    max-width:1200px;
    margin:0 auto;
    padding:24px 24px 20px;
    color:#4b5563;
    font-size:16px;
    line-height:1.7;
    font-weight:400;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    background:rgba(255,255,255,0.5);
    border-radius:12px;
    margin-bottom:16px;
}
.crumb{
    color:#ffffff;
    text-decoration:none;
    transition:all 0.2s ease;
    padding:8px 14px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    font-weight:500;
    font-size:16px;
    white-space:nowrap;
}
.crumb svg{
    flex-shrink:0;
    opacity:0.8;
    margin-right:6px;
    width:16px;
    height:16px;
}
.crumb:hover{
    color:#ffffff;
    background:rgba(255,255,255,0.15);
    transform:translateY(-1px);
}
.crumb:hover svg{
    opacity:1;
}
.crumb-sep{
    margin:0 4px;
    opacity:0.5;
    color:#6b7280;
    display:inline-flex;
    align-items:center;
    user-select:none;
}
.crumb-sep svg{
    display:block;
    width:14px;
    height:14px;
}
.crumb.current{
    color:#ffffff;
    font-weight:700;
    font-size:16px;
    pointer-events:none;
    background:rgba(0,0,0,0.03);
    padding:8px 14px;
    max-width:100%;
}
.crumb.current span{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width:600px;
}
.crumb.current:hover{
    background:rgba(0,0,0,0.03);
    color:#ffffff;
    transform:none;
}
@media (max-width: 768px) {
    .crumb.current span {
        max-width: 300px;
    }
}
@media (max-width: 480px) {
    .crumb.current span {
        max-width: 200px;
    }
}

/* Article Detail Styles */
.article { 
    max-width: 900px; 
    margin: 32px auto; 
    background: #ffffff !important; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,.12); 
    overflow: hidden; 
}
.article-header { 
    padding: 32px 32px 24px; 
    background: #ffffff !important; 
}
.article * {
    color: #000000 !important;
}
.article a {
    color: var(--primary) !important;
}
.article a:hover {
    color: var(--primary-2) !important;
}
.article-header .meta,
.article-header .author-info {
    color: #4b5563 !important;
}
.article img,
.article svg {
    color: inherit !important;
}
.article-header h1 { 
    margin: 0 0 16px; 
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #000000 !important;
}
.article-header .meta {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 400;
}
.article-header .author-info {
    margin-top: 12px;
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
}
.article-cover { 
    width: 100%; 
    height: 420px; 
    object-fit: cover; 
    display: block; 
}
.article-body { 
    padding: 0 32px 32px; 
    color: #000000 !important; 
    line-height: 1.8;
    font-size: 17px;
    font-weight: 400;
    background: #ffffff !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.article-body p,
.article-body div,
.article-body span {
    color: #000000 !important;
}
.article-body p { 
    margin: 0 0 24px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #000000 !important;
}
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin: 32px 0 16px;
    color: #000000 !important;
    letter-spacing: -0.01em;
}
.article-body h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin: 28px 0 14px;
    color: #000000 !important;
}
.article-body h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 24px 0 12px;
    color: #000000 !important;
}
.article-body ul,
.article-body ol {
    margin: 0 0 24px;
    padding-left: 28px;
    line-height: 1.8;
    color: #000000 !important;
}
.article-body li {
    margin-bottom: 8px;
    color: #000000 !important;
}
.article-body blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--primary);
    background: #f9fafb;
    font-style: italic;
    line-height: 1.8;
    color: #1f2937;
}
.article-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}
.article-body pre {
    background: #1a1a1a;
    color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    line-height: 1.6;
}
.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}
.article-body table th,
.article-body table td {
    padding: 12px;
    border: 1px solid #e5e7eb;
    text-align: left;
    color: #000000;
}
.article-body table th {
    background: #f9fafb;
    font-weight: 600;
}

@media (max-width: 768px) {
    .article {
        margin: 16px auto;
        border-radius: 12px;
    }
    .article-header {
        padding: 24px 24px 20px;
    }
    .article-header h1 {
        font-size: 24px;
        line-height: 1.35;
    }
    .article-body {
        padding: 0 24px 24px;
        font-size: 16px;
    }
    .article-body h2 {
        font-size: 24px;
        margin: 28px 0 14px;
    }
    .article-body h3 {
        font-size: 20px;
        margin: 24px 0 12px;
    }
    .article-body h4 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    .article-body p {
        margin: 0 0 20px;
    }
    .article-body ul,
    .article-body ol {
        margin: 0 0 20px;
        padding-left: 24px;
    }
}

/* Floating actions */
.floating-actions{position:fixed;right:16px;bottom:16px;display:flex;flex-direction:column;gap:10px;z-index:200}
.fab{width:44px;height:44px;border:none;border-radius:50%;color:#fff;background:linear-gradient(135deg,#6366f1,#8b5cf6);box-shadow:0 10px 20px rgba(0,0,0,.15);cursor:pointer;opacity:.9}
.fab:hover{opacity:1}
.fab-top{display:none}
.fab-top.visible{display:block}

/* Footer sosyal medya linklerinde .fab stilini devre dışı bırak */
.blog-footer .social-links .fab,
.blog-footer .social-links a.fab{
    background:transparent !important;
    box-shadow:none !important;
    opacity:1 !important;
    width:auto !important;
    height:auto !important;
    border:none !important;
    color:inherit !important;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 48px 0 24px;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-number:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.pagination-number.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.pagination-number.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.4);
}

.pagination-dots {
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.pagination-info {
    display: flex;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 32px;
}

.pagination-info span {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 16px;
    }
    
    .hero {
        padding: 48px 16px 24px;
    }
    
    .pagination {
        gap: 6px;
        margin: 32px 0 16px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }
    
    .pagination-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .content {
        padding: 16px 18px;
    }
    
    .title {
        font-size: 18px;
    }
    
    .excerpt {
        font-size: 14px;
    }
    
    .blog-navbar .container {
        padding: 14px 16px;
    }
    
    .blog-brand {
        font-size: 16px;
        gap: 8px;
    }
    
    .blog-brand img {
        height: 26px;
    }
    
    .blog-nav {
        gap: 4px;
    }
    
    .blog-nav a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .breadcrumb {
        padding: 18px 16px 16px;
        font-size: 15px;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .crumb {
        padding: 6px 12px;
        font-size: 15px;
    }
    
    .crumb svg {
        width: 14px;
        height: 14px;
        margin-right: 5px;
    }
    
    .crumb.current {
        font-size: 15px;
        padding: 6px 12px;
    }
    
    .crumb-sep svg {
        width: 12px;
        height: 12px;
    }
}