/* =====================================================
   Rivora — Anasayfa keşfet kartları (eski kampanyalar bölümü)
   ===================================================== */
.rv-explore {
    --rv-ex-bg: color-mix(in srgb, var(--primary-color, #0a5c8a) 18%, #041a27);
    --rv-ex-bg2: color-mix(in srgb, var(--primary-color, #0a5c8a) 70%, #1a7fb0);
    --rv-ex-bg3: color-mix(in srgb, var(--primary-color, #0a5c8a) 45%, #0a3550);
    --rv-ex-hover-bg2: color-mix(in srgb, var(--primary-color, #0a5c8a) 12%, #fff);
    --rv-ex-d1: rgba(70, 175, 215, 0.13);
    --rv-ex-d2: rgba(70, 175, 215, 0.24);
    --rv-ex-ink: color-mix(in srgb, var(--primary-color, #0a5c8a) 30%, #061a26);
    --rv-ex-hover-bg: color-mix(in srgb, var(--primary-color, #0a5c8a) 5%, #fff);
    --rv-ex-hover-line: color-mix(in srgb, var(--primary-color, #0a5c8a) 18%, #fff);
    --rv-ex-accent: var(--primary-color, #0a5c8a);
    padding: 80px 0;
}

/* Başlık */
.rv-ex-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 48px;
    margin-bottom: 36px;
}

.rv-ex-title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--rv-ex-ink);
}

.rv-ex-desc {
    flex: 0 1 380px;
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: #5b6b78;
}

/* Izgara */
.rv-ex-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(232px, auto);
    grid-auto-flow: row dense;
    gap: 16px;
}

/* Kart */
.rv-ex-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    padding: 26px 24px 24px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 6px;
    /* Koyu renk geçişli zemin; ışık efekti fareyle birlikte hareket eder */
    background:
        radial-gradient(120% 90% at 100% 0%, var(--rv-ex-bg2) 0%, transparent 60%),
        linear-gradient(135deg, var(--rv-ex-bg) 0%, var(--rv-ex-bg3) 100%);
    background-size: 160% 160%, 100% 100%;
    background-position: 100% 0%, 0 0;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition: border-color 0.35s ease, color 0.35s ease, background-position 0.6s ease;
}

/* Açık renk katmanı: üzerine gelince yumuşakça belirir */
.rv-ex-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, var(--rv-ex-hover-bg) 0%, var(--rv-ex-hover-bg2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.rv-ex-card:hover,
.rv-ex-card:focus-visible {
    border-color: var(--rv-ex-hover-line);
    background-position: 0% 100%, 0 0;
    color: var(--rv-ex-ink);
    text-decoration: none;
}

.rv-ex-card:hover::before,
.rv-ex-card:focus-visible::before {
    opacity: 1;
}

.rv-ex-card:focus-visible {
    outline: 2px solid var(--rv-ex-accent);
    outline-offset: 2px;
}

.rv-ex-wide {
    grid-column: span 2;
}

/* Dekoratif şekiller */
.rv-ex-deco {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 56%;
    width: auto;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.rv-ex-wide .rv-ex-deco {
    height: 100%;
    max-width: 45%;
}

.rv-ex-d1 { fill: var(--rv-ex-d1); }
.rv-ex-d2 { fill: var(--rv-ex-d2); }

.rv-ex-card:hover .rv-ex-deco,
.rv-ex-card:focus-visible .rv-ex-deco {
    opacity: 0;
}

/* İçerik */
.rv-ex-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
}

.rv-ex-wide .rv-ex-body {
    max-width: 62%;
}

.rv-ex-label {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 700;
}

.rv-ex-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.rv-ex-wide .rv-ex-name {
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.15;
}

.rv-ex-text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.3s ease;
}

.rv-ex-card:not(.rv-ex-wide) .rv-ex-text {
    max-width: 210px;
}

.rv-ex-card:hover .rv-ex-text,
.rv-ex-card:focus-visible .rv-ex-text {
    color: #4f5f6c;
}

.rv-ex-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.rv-ex-tag {
    padding: 5px 11px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.rv-ex-card:hover .rv-ex-tag,
.rv-ex-card:focus-visible .rv-ex-tag {
    background: color-mix(in srgb, var(--rv-ex-accent) 9%, #fff);
    color: var(--rv-ex-accent);
}

/* Alt satır: fiyat / yazı + ok */
.rv-ex-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.rv-ex-price {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rv-ex-old {
    font-size: 13px;
    line-height: 1.3;
    opacity: 0.85;
}

.rv-ex-now {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.rv-ex-now small {
    margin-left: 4px;
    font-size: 14px;
    font-weight: 400;
}

.rv-ex-cta {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.rv-ex-arrow {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: #fff;
    color: var(--rv-ex-ink);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.rv-ex-card:hover .rv-ex-arrow,
.rv-ex-card:focus-visible .rv-ex-arrow {
    background: var(--rv-ex-accent);
    color: #fff;
}

.rv-ex-card:hover .rv-ex-arrow svg {
    transform: translateX(2px);
    transition: transform 0.3s ease;
}

/* Koyu tema */
[data-bs-theme="dark"] .rv-explore,
[data-theme="dark"] .rv-explore {
    --rv-ex-ink: #e8f1f7;
    --rv-ex-hover-bg: color-mix(in srgb, var(--primary-color, #0a5c8a) 14%, #0d1b24);
    --rv-ex-hover-bg2: color-mix(in srgb, var(--primary-color, #0a5c8a) 26%, #0d1b24);
    --rv-ex-hover-line: color-mix(in srgb, var(--primary-color, #0a5c8a) 40%, #0d1b24);
}

[data-bs-theme="dark"] .rv-ex-desc,
[data-theme="dark"] .rv-ex-desc,
[data-bs-theme="dark"] .rv-ex-card:hover .rv-ex-text,
[data-theme="dark"] .rv-ex-card:hover .rv-ex-text {
    color: #a9b8c3;
}

[data-bs-theme="dark"] .rv-ex-card:hover .rv-ex-arrow,
[data-theme="dark"] .rv-ex-card:hover .rv-ex-arrow {
    color: #fff;
}

[data-bs-theme="dark"] .rv-ex-card:hover .rv-ex-tag,
[data-theme="dark"] .rv-ex-card:hover .rv-ex-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #cfe3f1;
}

/* Duyarlı */
@media (max-width: 1199.98px) {
    .rv-ex-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rv-explore {
        padding: 56px 0;
    }
    .rv-ex-head {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }
    .rv-ex-desc {
        flex-basis: auto;
        font-size: 15px;
    }
    .rv-ex-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: minmax(210px, auto);
        gap: 12px;
    }
    .rv-ex-wide {
        grid-column: auto;
    }
    .rv-ex-wide .rv-ex-body {
        max-width: 78%;
    }
    .rv-ex-wide .rv-ex-deco {
        height: 70%;
    }
    .rv-ex-card {
        padding: 22px 20px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rv-ex-card,
    .rv-ex-card * {
        transition: none !important;
    }
}

/* =====================================================
   Anasayfa: Müşteri yorumları bölümünün üst ve alt boşluğu eşit
   (Yazılım paketlerinin alt boşluğu sıfırlanır, aralık yorumlar bölümünden gelir)
   ===================================================== */
.software-packages-section:has(+ .testimonials-section) {
    padding-bottom: 0;
}

.testimonials-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

@media (max-width: 767.98px) {
    .testimonials-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* Gece modu: yorumlar bölümü yazılım paketleriyle aynı zemin rengini kullanır,
   aradaki boşlukta renk kırılması (iki ayrı ton) görünmez */
[data-bs-theme="dark"] .software-packages-section + .testimonials-section,
[data-bs-theme="dark"] .testimonials-section {
    background: #0b1118;
}
