/* ================================
   BLOG LIST
================================ */

.blog-grid-page{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.blog-card-large{
    overflow:hidden;
    border-radius:24px;
    border:1px solid rgba(148,163,184,.18);
    background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(3,7,18,.96));
    transition:transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.blog-card-large:hover{
    transform:translateY(-6px);
    border-color:rgba(56,189,248,.42);
    box-shadow:0 24px 60px rgba(0,0,0,.28);
}

.blog-image{
    display:block;
    width:100%;
    height:230px;
    overflow:hidden;
    background:rgba(15,23,42,.8);
}

.blog-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    display:block;
    transition:transform .35s ease;
}

.blog-card-large:hover .blog-image img{
    transform:scale(1.05);
}

.blog-content{
    padding:26px;
}

.blog-meta{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
    flex-wrap:wrap;
}

.blog-reading{
    color:rgba(255,255,255,.52);
    font-size:13px;
}

.blog-card-large h2{
    margin:0 0 14px;
    font-size:24px;
    line-height:1.28;
    letter-spacing:-.4px;
}

.blog-card-large h2 a{
    color:#fff;
    text-decoration:none;
}

.blog-card-large h2 a:hover{
    color:#7dd3fc;
}

.blog-card-large p{
    color:rgba(255,255,255,.68);
    font-size:15px;
    line-height:1.7;
    margin-bottom:20px;

    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.blog-link{
    color:#60a5fa;
    font-weight:800;
    text-decoration:none;
}

.blog-link:hover{
    color:#93c5fd;
}


/* ================================
   BLOG DETAIL HERO
================================ */

.blog-detail-hero{
    position:relative;
    height:620px;
    overflow:hidden;
}

.blog-detail-hero img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.blog-hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg,rgba(3,7,18,.92),rgba(3,7,18,.42),rgba(3,7,18,.18)),
        linear-gradient(180deg,rgba(3,7,18,.25),rgba(3,7,18,.96));
}

.blog-hero-content{
    position:relative;
    z-index:2;
    padding-top:220px;
}

.blog-badge,
.blog-category{
    display:inline-flex;
    align-items:center;
    width:max-content;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(56,189,248,.13);
    border:1px solid rgba(56,189,248,.28);
    color:#7dd3fc;
    font-size:13px;
    font-weight:800;
    letter-spacing:.2px;
}

.blog-hero-content h1{
    max-width:900px;
    margin:18px 0 22px;
    color:#fff;
    font-size:58px;
    line-height:1.08;
    letter-spacing:-2px;
}

.blog-meta-line{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    color:rgba(255,255,255,.72);
    font-size:15px;
}


/* ================================
   BLOG DETAIL LAYOUT
================================ */

.blog-detail-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:60px;
    align-items:start;
}

.blog-article{
    min-width:0;
}

.blog-excerpt{
    margin-bottom:34px;
    padding:26px 28px;
    border-radius:24px;
    border:1px solid rgba(56,189,248,.18);
    background:linear-gradient(180deg,rgba(14,165,233,.10),rgba(15,23,42,.50));
    font-size:22px;
    line-height:1.7;
    color:#dbeafe;
}


/* ================================
   BLOG RICH CONTENT
================================ */

.blog-content-rich{
    color:rgba(255,255,255,.78);
    font-size:18px;
    line-height:1.95;
    word-break:normal;
    overflow-wrap:break-word;
}

.blog-content-rich p{
    margin:0 0 22px;
}

.blog-content-rich h2{
    margin:48px 0 18px;
    color:#ffffff;
    font-size:32px;
    line-height:1.25;
    letter-spacing:-.8px;
}

.blog-content-rich h2:first-child{
    margin-top:0;
}

.blog-content-rich h3{
    margin:36px 0 14px;
    color:#ffffff;
    font-size:24px;
    line-height:1.3;
    letter-spacing:-.4px;
}

.blog-content-rich h4{
    margin:30px 0 12px;
    color:#ffffff;
    font-size:20px;
    line-height:1.35;
}

.blog-content-rich strong{
    color:#ffffff;
    font-weight:800;
}

.blog-content-rich em{
    color:#e0f2fe;
}

.blog-content-rich ul,
.blog-content-rich ol{
    margin:22px 0 30px;
    padding-left:0;
    list-style:none;
}

.blog-content-rich li{
    position:relative;
    margin-bottom:14px;
    padding-left:32px;
    color:rgba(255,255,255,.78);
    line-height:1.8;
}

.blog-content-rich ul li::before{
    content:"";
    position:absolute;
    left:0;
    top:14px;
    width:9px;
    height:9px;
    border-radius:999px;
    background:#38bdf8;
    box-shadow:0 0 18px rgba(56,189,248,.55);
}

.blog-content-rich ol{
    counter-reset:blog-counter;
}

.blog-content-rich ol li{
    counter-increment:blog-counter;
}

.blog-content-rich ol li::before{
    content:counter(blog-counter);
    position:absolute;
    left:0;
    top:5px;
    width:23px;
    height:23px;
    border-radius:999px;
    background:rgba(56,189,248,.16);
    border:1px solid rgba(56,189,248,.28);
    color:#38bdf8;
    font-size:12px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
}

.blog-content-rich a{
    color:#60a5fa;
    font-weight:800;
    text-decoration:none;
    border-bottom:1px solid rgba(96,165,250,.45);
    transition:color .2s ease, border-color .2s ease;
}

.blog-content-rich a:hover{
    color:#93c5fd;
    border-bottom-color:#93c5fd;
}

.blog-content-rich blockquote{
    margin:34px 0;
    padding:24px 28px;
    border-left:4px solid #38bdf8;
    border-radius:18px;
    background:rgba(15,23,42,.72);
    color:rgba(255,255,255,.82);
}

.blog-content-rich blockquote p:last-child{
    margin-bottom:0;
}

.blog-content-rich img{
    max-width:100%;
    height:auto;
    display:block;
    margin:34px 0;
    border-radius:22px;
    border:1px solid rgba(148,163,184,.16);
}

.blog-content-rich table{
    width:100%;
    margin:34px 0;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:18px;
    background:rgba(15,23,42,.72);
}

.blog-content-rich th,
.blog-content-rich td{
    padding:14px 16px;
    border:1px solid rgba(148,163,184,.16);
    text-align:left;
    color:rgba(255,255,255,.76);
}

.blog-content-rich th{
    color:#fff;
    background:rgba(56,189,248,.12);
    font-weight:800;
}

.blog-content-rich code{
    padding:3px 7px;
    border-radius:8px;
    background:rgba(15,23,42,.92);
    border:1px solid rgba(148,163,184,.18);
    color:#bae6fd;
    font-size:.92em;
}

.blog-content-rich pre{
    margin:30px 0;
    padding:22px;
    overflow:auto;
    border-radius:18px;
    background:#020617;
    border:1px solid rgba(148,163,184,.18);
}

.blog-content-rich pre code{
    padding:0;
    border:0;
    background:transparent;
}


/* ================================
   BLOG CTA
   İçerikte şu şekilde kullan:
   <p class="blog-cta"><a href="...">...</a></p>
================================ */

.blog-content-rich .blog-cta{
    margin:38px 0;
    padding:26px;
    border-radius:24px;
    border:1px solid rgba(56,189,248,.24);
    background:
        radial-gradient(circle at top left,rgba(56,189,248,.18),transparent 35%),
        linear-gradient(180deg,rgba(14,165,233,.12),rgba(15,23,42,.78));
}

.blog-content-rich .blog-cta a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:14px 22px;
    border-radius:999px;
    background:#38bdf8;
    color:#020617;
    font-weight:900;
    border:0;
    box-shadow:0 14px 34px rgba(56,189,248,.18);
}

.blog-content-rich .blog-cta a:hover{
    color:#020617;
    background:#7dd3fc;
}


/* deprem.codecosoft.com linkini sınıf vermesen de butonlaştırır */
.blog-content-rich p:has(a[href*="deprem.codecosoft.com"]){
    margin:38px 0;
    padding:26px;
    border-radius:24px;
    border:1px solid rgba(56,189,248,.24);
    background:
        radial-gradient(circle at top left,rgba(56,189,248,.18),transparent 35%),
        linear-gradient(180deg,rgba(14,165,233,.12),rgba(15,23,42,.78));
}

.blog-content-rich p:has(a[href*="deprem.codecosoft.com"]) a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:14px 22px;
    border-radius:999px;
    background:#38bdf8;
    color:#020617;
    font-weight:900;
    border:0;
    box-shadow:0 14px 34px rgba(56,189,248,.18);
}

.blog-content-rich p:has(a[href*="deprem.codecosoft.com"]) a:hover{
    color:#020617;
    background:#7dd3fc;
}


/* ================================
   BLOG SIDEBAR
================================ */

.blog-sidebar{
    position:sticky;
    top:120px;
    height:fit-content;
}

.sidebar-box{
    padding:24px;
    margin-bottom:18px;
    border-radius:22px;
    border:1px solid rgba(148,163,184,.18);
    background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(3,7,18,.96));
}

.sidebar-box strong{
    display:block;
    margin-bottom:10px;
    color:#38bdf8;
    font-size:14px;
}

.sidebar-box span{
    color:rgba(255,255,255,.72);
    line-height:1.6;
}


/* ================================
   RELATED POSTS
================================ */

.blog-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}

.blog-card{
    padding:26px;
    border-radius:24px;
    border:1px solid rgba(148,163,184,.18);
    background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(3,7,18,.96));
    transition:transform .28s ease, border-color .28s ease;
}

.blog-card:hover{
    transform:translateY(-5px);
    border-color:rgba(56,189,248,.36);
}

.blog-card h3{
    margin:16px 0 12px;
    color:#fff;
    font-size:22px;
    line-height:1.3;
}

.blog-card p{
    color:rgba(255,255,255,.68);
    line-height:1.7;
    margin-bottom:18px;
}

.blog-card a{
    color:#60a5fa;
    font-weight:800;
    text-decoration:none;
}

.blog-card a:hover{
    color:#93c5fd;
}


/* ================================
   RESPONSIVE
================================ */

@media(max-width:1100px){
    .blog-grid-page{
        grid-template-columns:repeat(2,1fr);
    }

    .blog-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:980px){
    .blog-detail-grid{
        grid-template-columns:1fr;
        gap:40px;
    }

    .blog-sidebar{
        position:relative;
        top:auto;
    }

    .blog-hero-content h1{
        font-size:42px;
        letter-spacing:-1.2px;
    }

    .blog-detail-hero{
        height:560px;
    }

    .blog-hero-content{
        padding-top:200px;
    }
}

@media(max-width:767px){
    .blog-grid-page{
        grid-template-columns:1fr;
    }

    .blog-grid{
        grid-template-columns:1fr;
    }

    .blog-image{
        height:220px;
    }

    .blog-content{
        padding:24px;
    }

    .blog-card-large h2{
        font-size:23px;
    }

    .blog-detail-hero{
        height:520px;
    }

    .blog-hero-content{
        padding-top:180px;
    }

    .blog-hero-content h1{
        font-size:34px;
        line-height:1.12;
        letter-spacing:-1px;
    }

    .blog-meta-line{
        gap:10px;
        font-size:14px;
    }

    .blog-excerpt{
        padding:22px;
        font-size:19px;
        line-height:1.65;
    }

    .blog-content-rich{
        font-size:16px;
        line-height:1.85;
    }

    .blog-content-rich h2{
        font-size:26px;
        margin-top:38px;
    }

    .blog-content-rich h3{
        font-size:22px;
    }

    .blog-content-rich h4{
        font-size:19px;
    }

    .blog-content-rich li{
        padding-left:28px;
    }

    .blog-content-rich ul li::before{
        top:12px;
    }

    .blog-content-rich .blog-cta,
    .blog-content-rich p:has(a[href*="deprem.codecosoft.com"]){
        padding:22px;
    }

    .blog-content-rich .blog-cta a,
    .blog-content-rich p:has(a[href*="deprem.codecosoft.com"]) a{
        width:100%;
        text-align:center;
    }

    .sidebar-box{
        padding:22px;
    }
}

@media(max-width:480px){
    .blog-detail-hero{
        height:480px;
    }

    .blog-hero-content{
        padding-top:165px;
    }

    .blog-hero-content h1{
        font-size:30px;
    }

    .blog-card-large h2{
        font-size:21px;
    }

    .blog-content-rich{
        font-size:15.5px;
    }

    .blog-content-rich h2{
        font-size:24px;
    }
}