/**
 * Torevya Site Haritası sayfasına özel düzenlemeler.
 * torevya-pages.css dosyasından sonra yüklenmelidir.
 */

.torevya-sitemap-grid > div {
    display: flex;
}

.torevya-sitemap-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 30px;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.torevya-sitemap-card:hover {
    border-color: rgba(53, 55, 243, 0.18);
    box-shadow: 0 22px 50px rgba(23, 32, 68, 0.10);
    transform: translateY(-5px);
}

.torevya-sitemap-card__header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.torevya-sitemap-card__icon {
    display: flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0;
    padding: 9px;
    background: #eef4ff;
    border: 1px solid rgba(53, 55, 243, 0.10);
    border-radius: 20px;
}

.torevya-sitemap-grid > div:nth-child(2n) .torevya-sitemap-card__icon {
    background: #fbf0ff;
}

.torevya-sitemap-grid > div:nth-child(3n) .torevya-sitemap-card__icon {
    background: #eafffa;
}

.torevya-sitemap-card__icon img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.torevya-sitemap-card__header h3 {
    margin: 2px 0 8px;
    color: #10162f;
    font-size: 22px;
    line-height: 1.25;
}

.torevya-sitemap-card__header p {
    margin: 0;
    color: #66708c;
    font-size: 14px;
    line-height: 1.65;
}

.torevya-sitemap-card__links {
    display: grid;
    gap: 9px;
    margin: auto 0 0;
    padding: 20px 0 0;
    list-style: none;
    border-top: 1px solid #e8edf6;
}

.torevya-sitemap-card__links a {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 9px 12px;
    color: #34405f;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: #f8faff;
    border: 1px solid transparent;
    border-radius: 12px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.torevya-sitemap-card__links a svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #27c5df;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.torevya-sitemap-card__links a:hover,
.torevya-sitemap-card__links a:focus-visible {
    color: #3537f3;
    background: #f0f4ff;
    border-color: rgba(53, 55, 243, 0.14);
    outline: none;
    transform: translateX(3px);
}

.torevya-sitemap-card__links a:hover svg,
.torevya-sitemap-card__links a:focus-visible svg {
    transform: translateX(3px);
}

@media (max-width: 767.98px) {
    .torevya-sitemap-card {
        padding: 22px;
    }

    .torevya-sitemap-card__header {
        gap: 14px;
        margin-bottom: 20px;
    }

    .torevya-sitemap-card__icon {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
        padding: 8px;
        border-radius: 17px;
    }

    .torevya-sitemap-card__icon img {
        width: 44px;
        height: 44px;
    }

    .torevya-sitemap-card__header h3 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .torevya-sitemap-card,
    .torevya-sitemap-card__links a,
    .torevya-sitemap-card__links a svg {
        transition: none;
    }
}
