/* The blog (pages/blog): its list of posts and a post's page. Colours are the
   theme's own or see-through greys and the site's red, so the dark and the light
   theme both carry them. */

/* ---- the list: cards, as many to a row as "Site Ayarları → Blog" says, one on a phone */
#site .blog-liste {
    display: grid;
    grid-template-columns: repeat(var(--blog-sutun, 2), minmax(0, 1fr));
    gap: 14px;
}

/* "Son Yazılar": as many to a row as "Site Ayarları → Blog" says */
#site .blog-liste-kucuk {
    grid-template-columns: repeat(var(--blog-sutun, 4), minmax(0, 1fr));
    gap: 10px;
}

/* the heading's icon at the heading's own size: the theme draws panel icons larger */
#site .blog .panel-title .fa {
    font-size: 11px;
    vertical-align: baseline;
}

#site .blog-kart {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(127, 127, 127, .18);
    border-radius: 6px;
    background: rgba(127, 127, 127, .05);
    transition: border-color .15s ease, transform .15s ease;
}

#site .blog-kart:hover {
    border-color: rgba(217, 83, 79, .55);
    transform: translateY(-2px);
}

#site .blog-kart-gorsel {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(127, 127, 127, .12);
}

/* a tall picture shows its top, where the faces and the titles usually are */
#site .blog-kart-gorsel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

#site .blog-kart-bos {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 32px;
    opacity: .35;
}

#site .blog-kart-govde {
    padding: 10px 12px 12px;
}

#site .blog-kart-baslik {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

/* a long title cut after the lines "Site Ayarları → Blog" gives it */
#site .blog-baslik-kisa .blog-kart-baslik a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--blog-baslik-satir);
    line-clamp: var(--blog-baslik-satir);
}

#site .blog-liste-kucuk .blog-kart-baslik {
    font-size: 12px;
}

#site .blog-kart-baslik a {
    color: inherit;
}

#site .blog-kart-baslik a:hover {
    color: #d9534f;
    text-decoration: none;
}

#site .blog-kart-ozet {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    opacity: .85;
}

#site .blog-bilgi {
    margin: 0 0 6px;
    font-size: 11px;
    opacity: .75;
}

#site .blog-bilgi a {
    color: inherit;
    font-weight: 700;
}

#site .blog-tumu {
    font-size: 12px;
    font-weight: 700;
}

/* ---- a post */
/* the trail: "Blog / the title", the title cut at the end of the line, not before */
#site .blog-yol {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    font-size: 12px;
    font-weight: 700;
}

#site .blog-yol > li {
    flex: none;
    white-space: nowrap;
}

#site .blog-yol > li.active {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

#site .blog-yol .fa {
    font-size: 11px;
}

#site .blog-onizleme {
    margin-bottom: 12px;
    font-size: 12px;
}

#site .blog-yazi .panel-body {
    padding: 16px 20px 20px;
}

#site .blog-yazi-baslik {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
}

/* the cover at one height whatever its shape (16:9): a tall one shows its top */
#site .blog-yazi-kapak {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 14px 0 16px;
    border-radius: 6px;
    background: rgba(127, 127, 127, .12);
    object-fit: cover;
    object-position: center top;
}

#site .blog-yazi-ozet {
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 3px solid #d9534f;
    font-size: 15px;
    line-height: 1.6;
    opacity: .9;
}

/* the body, as written in the panel's editor */
#site .blog-icerik {
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

#site .blog-icerik h2,
#site .blog-icerik h3 {
    margin: 26px 0 10px;
    font-weight: 800;
    line-height: 1.3;
}

#site .blog-icerik h2 {
    font-size: 21px;
}

#site .blog-icerik h3 {
    font-size: 18px;
}

#site .blog-icerik p,
#site .blog-icerik ul,
#site .blog-icerik ol {
    margin: 0 0 14px;
}

#site .blog-icerik a {
    color: #d9534f;
    text-decoration: underline;
}

#site .blog-icerik img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

#site .blog-icerik blockquote {
    margin: 0 0 14px;
    padding: 6px 14px;
    border-left: 3px solid #d9534f;
    font-size: inherit;
    opacity: .9;
}

#site .blog-icerik blockquote > :last-child {
    margin-bottom: 0;
}

#site .blog-icerik pre,
#site .blog-icerik code {
    border-radius: 4px;
    background: rgba(127, 127, 127, .15);
    color: inherit;
}

#site .blog-icerik hr {
    border-color: rgba(127, 127, 127, .25);
}

#site .blog-icerik table {
    width: 100%;
    margin: 0 0 14px;
}

#site .blog-icerik th,
#site .blog-icerik td {
    padding: 6px 8px;
    border: 1px solid rgba(127, 127, 127, .25);
}

/* the anime it is about, two to a row */
#site .blog-animeler {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

#site .blog-animeler .blog-anime:only-child {
    grid-column: 1 / -1;
}

#site .blog-anime {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(127, 127, 127, .2);
    border-radius: 6px;
    color: inherit;
}

#site .blog-anime:hover {
    border-color: rgba(217, 83, 79, .55);
    text-decoration: none;
}

#site .blog-anime img {
    flex: none;
    width: 60px;
    height: 85px;
    border-radius: 4px;
    object-fit: cover;
}

#site .blog-anime > span {
    min-width: 0;
}

#site .blog-anime small,
#site .blog-anime strong,
#site .blog-anime-git {
    display: block;
}

#site .blog-anime small {
    font-size: 11px;
    opacity: .7;
}

#site .blog-anime strong {
    margin: 2px 0 4px;
    font-size: 15px;
}

#site .blog-anime-git {
    color: #d9534f;
    font-size: 12px;
    font-weight: 700;
}

/* the posts before and after it: the two links alone, the titles on hovering them */
#site .blog-gecis {
    display: flex;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
}

#site .blog-gecis a {
    color: inherit;
}

#site .blog-gecis a:hover {
    color: #d9534f;
    text-decoration: none;
}

#site .blog-gecis-sonraki {
    margin-left: auto;
}

@media (max-width: 767px) {
    #site .blog-liste {
        grid-template-columns: minmax(0, 1fr);
    }

    #site .blog-liste-kucuk {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #site .blog-animeler {
        grid-template-columns: minmax(0, 1fr);
    }

    #site .blog-yazi .panel-body {
        padding: 12px;
    }

    #site .blog-yazi-baslik {
        font-size: 21px;
    }
}
