/**
 * Torevya blog liste sayfası.
 * torevya-pages.css dosyasından sonra yüklenmelidir.
 */

.torevya-blog-page [hidden] {
    display: none !important;
}

.torevya-blog-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(27, 35, 88, 0.12);
}

.torevya-blog-summary__item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    min-height: 145px;
    padding: 29px;
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0, rgba(39, 197, 223, 0.20), transparent 42%),
        linear-gradient(135deg, #17256f, #3537f3);
}

.torevya-blog-summary__item:nth-child(2) {
    background:
        radial-gradient(circle at 100% 0, rgba(238, 101, 182, 0.18), transparent 42%),
        linear-gradient(135deg, #3537f3, #7048da);
}

.torevya-blog-summary__item:nth-child(3) {
    background:
        radial-gradient(circle at 100% 0, rgba(139, 234, 248, 0.20), transparent 42%),
        linear-gradient(135deg, #3156d7, #168db5);
}

.torevya-blog-summary__item strong {
    color: rgba(255, 255, 255, 0.28);
    font-size: 34px;
    line-height: 1;
}

.torevya-blog-summary__item span {
    display: block;
    margin-bottom: 7px;
    font-size: 16px;
    font-weight: 800;
}

.torevya-blog-summary__item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.6;
}

.torevya-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 0 34px;
}

.torevya-blog-filter {
    min-height: 42px;
    padding: 9px 17px;
    color: #536078;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #e5e8f5;
    border-radius: 999px;
    box-shadow: 0 7px 20px rgba(31, 39, 94, 0.05);
    transition:
        color 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.torevya-blog-filter:hover,
.torevya-blog-filter:focus-visible {
    color: #3537f3;
    border-color: rgba(53, 55, 243, 0.35);
    box-shadow: 0 10px 24px rgba(53, 55, 243, 0.12);
    transform: translateY(-1px);
}

.torevya-blog-filter:focus-visible {
    outline: 3px solid rgba(39, 197, 223, 0.28);
    outline-offset: 2px;
}

.torevya-blog-filter.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #2636c9, #5a45f6);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(53, 55, 243, 0.24);
}

.torevya-blog-listing .row > div {
    display: flex;
}

.torevya-blog-card--enhanced {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

.torevya-blog-card--enhanced .torevya-blog-card__visual {
    position: relative;
    display: grid;
    min-height: 250px;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(145deg, #182873, #3b3ff2);
    place-items: center;
}

.torevya-blog-card--enhanced .torevya-blog-card__visual::before {
    position: absolute;
    top: -55px;
    right: -42px;
    z-index: -1;
    width: 185px;
    height: 185px;
    content: "";
    border: 32px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.torevya-blog-card--enhanced .torevya-blog-card__visual::after {
    position: absolute;
    inset: 18px;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    pointer-events: none;
}

.torevya-blog-card--cyan .torevya-blog-card__visual {
    background: linear-gradient(145deg, #0b628b, #21b8d1);
}

.torevya-blog-card--violet .torevya-blog-card__visual {
    background: linear-gradient(145deg, #4b2d91, #8b5cf6);
}

.torevya-blog-card--blue .torevya-blog-card__visual {
    background: linear-gradient(145deg, #164b9b, #3a78e8);
}

.torevya-blog-card--teal .torevya-blog-card__visual {
    background: linear-gradient(145deg, #087c86, #28bfa8);
}

.torevya-blog-card--purple .torevya-blog-card__visual {
    background: linear-gradient(145deg, #542b8c, #ad4fd4);
}

.torevya-blog-card__number {
    position: absolute;
    top: 31px;
    left: 33px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.46);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.torevya-blog-card__illustration {
    display: grid;
    width: 205px;
    height: 165px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 35px;
    box-shadow: 0 22px 45px rgba(5, 16, 68, 0.22);
    place-items: center;
    transform: rotate(-2deg);
    transition:
        transform 260ms ease,
        box-shadow 260ms ease;
}

.torevya-blog-card__illustration img {
    display: block;
    width: 160px;
    height: 120px;
    object-fit: contain;
}

.torevya-blog-card--enhanced:hover .torevya-blog-card__illustration {
    box-shadow: 0 27px 52px rgba(5, 16, 68, 0.30);
    transform: rotate(0) scale(1.035);
}

.torevya-blog-card--enhanced .torevya-blog-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 30px;
}

.torevya-blog-card--enhanced .torevya-card-meta {
    margin-bottom: 12px;
}

.torevya-blog-card--enhanced .torevya-card-meta span {
    border: 1px solid rgba(53, 55, 243, 0.09);
}

.torevya-blog-card__date {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-bottom: 12px;
    color: #7b8499;
    font-size: 13px;
    font-weight: 600;
}

.torevya-blog-card--enhanced h3 {
    min-height: 68px;
}

.torevya-blog-card--enhanced p {
    margin-bottom: 0;
}

.torevya-blog-card--enhanced .torevya-card-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 22px;
}

@media (max-width: 991.98px) {
    .torevya-blog-summary {
        grid-template-columns: 1fr;
    }

    .torevya-blog-summary__item {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .torevya-blog-summary__item {
        padding: 24px 21px;
    }

    .torevya-blog-filters {
        justify-content: flex-start;
    }

    .torevya-blog-card--enhanced .torevya-blog-card__visual {
        min-height: 225px;
    }

    .torevya-blog-card__illustration {
        width: 180px;
        height: 145px;
    }

    .torevya-blog-card__illustration img {
        width: 140px;
        height: 105px;
    }

    .torevya-blog-card--enhanced .torevya-blog-card__content {
        padding: 25px;
    }

    .torevya-blog-card--enhanced h3 {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .torevya-blog-filter,
    .torevya-blog-card__illustration {
        transition: none;
    }
}
