/* Çanak Blog - Hafif, hızlı ve içerik ağırlıklı frontend stil dosyası */

:root{
    --bg:#f8f9fa;
    --surface:#fff;
    --text:#1f2937;
    --muted:#6b7280;
    --accent:#3f51b5;
    --accent-2:#e91e63;
    --line:#e5e7eb;
    --radius:12px;
    --shadow:0 4px 18px rgba(0,0,0,.08);
    --max:980px;
    --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:var(--font);
    background:var(--bg);
    color:var(--text);
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
}

/* Acil İletişim */
.emergency-contact{
    background:linear-gradient(135deg,#e91e63,#f06292);
    color:#fff;
    padding:8px 0;
    font-size:.9rem;
    box-shadow:0 2px 8px rgba(233,30,99,.2);
}
.emergency-inner{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:1.5rem;
    flex-wrap:wrap;
}
.emergency-label{
    font-weight:600;
    letter-spacing:.3px;
}
.emergency-phone,.emergency-whatsapp{
    color:#fff;
    font-weight:500;
    padding:4px 10px;
    border-radius:6px;
    transition:all .3s ease;
    display:inline-flex;
    align-items:center;
    gap:.4rem;
}
.emergency-phone:hover{
    background:rgba(255,255,255,.2);
    color:#fff;
}
.emergency-whatsapp:hover{
    background:rgba(255,255,255,.2);
    color:#fff;
}
@media(max-width:640px){
    .emergency-inner{
        gap:1rem;
        font-size:.85rem;
    }
    .emergency-phone,.emergency-whatsapp{
        padding:3px 8px;
    }
}

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

a{
    color:var(--accent);
    text-decoration:none;
}
a:hover{
    color:var(--accent-2);
}

.container{
    width:min(var(--max), 95%);
    margin:0 auto;
    padding:0 16px;
}

/* Header */
.site-header{
    background:var(--surface);
    border-bottom:1px solid var(--line);
    position:sticky;
    top:0;
    z-index:100;
    box-shadow:0 1px 3px rgba(0,0,0,.04);
}
.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding-top:12px;
    padding-bottom:12px;
    flex-wrap:wrap;
}
.logo{
    font-size:1.5rem;
    font-weight:800;
    color:var(--accent);
    letter-spacing:-.5px;
}
.main-nav{
    display:flex;
    gap:1.2rem;
    font-weight:500;
}
.main-nav a{
    color:var(--text);
}
.search-form{
    display:flex;
    gap:0;
}
.search-form input{
    border:1px solid var(--line);
    border-right:0;
    border-radius:var(--radius) 0 0 var(--radius);
    padding:7px 12px;
    font:inherit;
    outline:none;
    min-width:160px;
}
.search-form button{
    border:0;
    background:var(--accent);
    color:#fff;
    border-radius:0 var(--radius) var(--radius) 0;
    padding:7px 16px;
    cursor:pointer;
    font-weight:600;
}

/* Main */
.site-main{
    padding-top:2rem;
    padding-bottom:3rem;
    min-height:60vh;
}

/* Hero */
.hero{
    background:linear-gradient(135deg, var(--accent), #5c6bc0);
    color:#fff;
    border-radius:var(--radius);
    padding:2.2rem;
    margin-bottom:2rem;
    box-shadow:var(--shadow);
}
.hero h1{
    margin:0 0 .5rem;
    font-size:1.9rem;
    line-height:1.25;
}
.hero p{
    margin:0;
    opacity:.92;
    font-size:1.05rem;
}

/* Grid */
.post-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
    gap:1.5rem;
}

.post-card{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:transform .15s ease, box-shadow .15s ease;
    display:flex;
    flex-direction:column;
}
.post-card:hover{
    transform:translateY(-4px);
    box-shadow:0 10px 28px rgba(0,0,0,.12);
}
.post-card figure{
    margin:0;
    aspect-ratio:16/9;
    background:#e2e5e9;
    overflow:hidden;
}
.post-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .3s ease;
}
.post-card:hover img{
    transform:scale(1.04);
}
.post-card .body{
    padding:1.2rem;
    flex:1;
    display:flex;
    flex-direction:column;
}
.post-card h2{
    margin:0 0 .5rem;
    font-size:1.15rem;
    line-height:1.35;
    color:var(--text);
}
.post-card .meta{
    font-size:.82rem;
    color:var(--muted);
    margin-bottom:.6rem;
}
.post-card p{
    margin:0 0 1rem;
    color:var(--muted);
    font-size:.94rem;
    flex:1;
}
.btn{
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    background:var(--accent);
    color:#fff;
    padding:.55rem 1rem;
    border-radius:8px;
    font-weight:600;
    font-size:.9rem;
    border:0;
    cursor:pointer;
    align-self:flex-start;
}
.btn:hover{
    background:var(--accent-2);
    color:#fff;
}

/* Article */
.article-header{
    margin-bottom:1.5rem;
}
.article-header h1{
    font-size:2rem;
    line-height:1.2;
    margin:0 0 .6rem;
}
.article-meta{
    color:var(--muted);
    font-size:.9rem;
}
.article-cover{
    border-radius:var(--radius);
    margin:1.2rem 0 2rem;
    box-shadow:var(--shadow);
}
.article-body{
    background:var(--surface);
    border-radius:var(--radius);
    padding:1.8rem;
    box-shadow:var(--shadow);
    font-size:1.05rem;
}
.article-body p, .article-body li{
    margin-bottom:1rem;
}
.article-body img{
    border-radius:8px;
    margin:1rem 0;
}

/* Sidebar widgets */
.widget{
    background:var(--surface);
    border-radius:var(--radius);
    padding:1.2rem;
    margin-bottom:1.5rem;
    box-shadow:var(--shadow);
    border:1px solid var(--line);
}
.widget h3{
    margin-top:0;
    font-size:1.05rem;
    border-bottom:2px solid var(--line);
    padding-bottom:.5rem;
    margin-bottom:1rem;
}
.widget ul{
    list-style:none;
    padding:0;
    margin:0;
}
.widget li{
    padding:.35rem 0;
    border-bottom:1px solid var(--line);
}
.widget li:last-child{
    border-bottom:0;
}

/* Categories */
.category-list{
    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
    list-style:none;
    padding:0;
    margin:0;
}
.category-list a{
    background:#eef2ff;
    color:var(--accent);
    padding:.35rem .75rem;
    border-radius:20px;
    font-size:.88rem;
    font-weight:500;
}
.category-list a:hover{
    background:var(--accent);
    color:#fff;
}

/* Comments */
.comment-form{
    background:var(--surface);
    border-radius:var(--radius);
    padding:1.2rem;
    box-shadow:var(--shadow);
    margin-top:2rem;
}
.comment-form label{
    display:block;
    margin:.8rem 0 .25rem;
    font-weight:600;
    font-size:.9rem;
}
.comment-form input,
.comment-form textarea{
    width:100%;
    padding:.65rem;
    border:1px solid var(--line);
    border-radius:8px;
    font:inherit;
}
.comment-form textarea{
    resize:vertical;
    min-height:100px;
}
.comment-list{
    margin-top:1.5rem;
    display:flex;
    flex-direction:column;
    gap:1rem;
}
.comment{
    display:flex;
    gap:1rem;
    align-items:flex-start;
    background:var(--surface);
    border-radius:var(--radius);
    padding:1rem;
    box-shadow:var(--shadow);
}
.comment-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    background:var(--accent);
    color:#fff;
    display:grid;
    place-items:center;
    font-weight:700;
    flex-shrink:0;
}
.comment-body h4{
    margin:0 0 .25rem;
    font-size:.95rem;
}
.comment-body time{
    font-size:.8rem;
    color:var(--muted);
}

/* Pagination */
.pagination{
    display:flex;
    justify-content:center;
    gap:.4rem;
    margin-top:2.5rem;
    flex-wrap:wrap;
}
.pagination a, .pagination span{
    display:inline-block;
    padding:.4rem .8rem;
    border-radius:8px;
    background:var(--surface);
    border:1px solid var(--line);
    font-weight:500;
}
.pagination .current{
    background:var(--accent);
    color:#fff;
    border-color:var(--accent);
}

/* Two column layout (main + sidebar) */
.two-col{
    display:grid;
    grid-template-columns:1fr 280px;
    gap:2rem;
    align-items:start;
}
.two-col .content-col{
    min-width:0;
    order:1;
}
.two-col .sidebar{
    min-width:0;
    order:2;
}

/* Page header */
.page-header{
    margin-bottom:1.5rem;
}
.page-header h1{
    margin:0;
    font-size:1.6rem;
}

/* Empty state */
.empty{
    text-align:center;
    padding:3rem 1rem;
    color:var(--muted);
}

/* Footer */
.site-footer{
    background:var(--surface);
    border-top:1px solid var(--line);
    padding:1.5rem 0;
    text-align:center;
    color:var(--muted);
    font-size:.9rem;
}
.footer-inner p{
    margin:.25rem 0;
}

/* Responsive */
@media (max-width: 720px){
    .header-inner{
        flex-direction:column;
        align-items:stretch;
    }
    .main-nav{
        justify-content:center;
    }
    .search-form{
        width:100%;
    }
    .search-form input{
        flex:1;
    }
    .two-col{
        grid-template-columns:1fr;
        grid-template-rows:auto auto;
    }
    .two-col .content-col{
        order:2;
    }
    .two-col .sidebar{
        order:1;
    }
    .post-grid{
        grid-template-columns:1fr !important;
    }
    .article-header h1{
        font-size:1.45rem;
    }
    .hero h1{
        font-size:1.4rem;
    }
}
