/* =====================================================================
   Rivora · Footer (partials/footer.tpl → footer.rv-footer)
   Üstte iletişim kutuları, solda marka + durum kartı, sağda menü sütunları,
   altta bülten satırı ve telif / ödeme logoları.
   Renkler tema ana renginden türetilir (koyu lacivert).
   ===================================================================== */

.rv-footer {
    --rv-ft-bg: color-mix(in srgb, var(--primary-color, #065174) 26%, #02101a);
    --rv-ft-bg-2: color-mix(in srgb, var(--primary-color, #065174) 38%, #031722);
    --rv-ft-line: rgba(255, 255, 255, 0.09);
    --rv-ft-text: rgba(255, 255, 255, 0.74);
    --rv-ft-strong: #fff;
    --rv-ft-accent: var(--wstyle-secondary, #0284c7);
    position: relative;
    background: var(--rv-ft-bg);
    color: var(--rv-ft-text);
    font-size: 14px;
    line-height: 1.6;
}

.rv-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.rv-footer a:hover {
    color: var(--rv-ft-strong);
}

.rv-ft-powered {
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--rv-ft-line);
}

.rv-ft-powered a {
    font-weight: 600;
    color: var(--rv-ft-strong);
}

/* ---------- Üst iletişim kutuları ---------- */
.rv-ft-contact {
    background: var(--rv-ft-bg-2);
    border-bottom: 1px solid var(--rv-ft-line);
}

.rv-ft-contact-grid {
    display: grid;
    grid-template-columns: repeat(var(--rv-ft-ct, 4), minmax(0, 1fr));
    border-left: 1px solid var(--rv-ft-line);
}

.rv-ft-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 20px 22px;
    border-right: 1px solid var(--rv-ft-line);
}

.rv-ft-contact-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.rv-ft-contact-ico {
    flex: 0 0 auto;
    display: inline-flex;
    font-size: 20px;
    color: var(--rv-ft-accent);
    filter: brightness(1.35);
}

.rv-ft-contact-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.rv-ft-contact-body small {
    font-size: 11.5px;
    color: var(--rv-ft-text);
}

.rv-ft-contact-body strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--rv-ft-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 5 kutu sığsın diye orta genişlikte daha sıkı yerleşim */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .rv-ft-contact-item {
        gap: 10px;
        padding: 18px 14px;
    }
    .rv-ft-contact-body strong {
        font-size: 14px;
    }
}

/* 5 kutu tablette 3 + 2 dizilir */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .rv-ft-contact-grid[style*="ct: 5"],
    .rv-ft-contact-grid[style*="ct:5"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: -1px;
    }
    .rv-ft-contact-grid[style*="ct: 5"] .rv-ft-contact-item,
    .rv-ft-contact-grid[style*="ct:5"] .rv-ft-contact-item {
        border-bottom: 1px solid var(--rv-ft-line);
    }
}

/* ---------- Ana alan ---------- */
.rv-ft-main {
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 48px;
    padding: 56px 0 40px;
}

.rv-ft-brand .site-logo {
    max-height: 44px;
    width: auto;
}

.rv-ft-brand .site-brand-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--rv-ft-strong);
}

.rv-ft-about {
    margin: 18px 0 16px;
    font-size: 13.5px;
}

.rv-ft-about strong,
.rv-ft-company strong {
    color: var(--rv-ft-strong);
    font-weight: 700;
}

.rv-ft-company {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 20px;
    font-size: 12.5px;
}

.rv-ft-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 22px -6px;
}

.rv-ft-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 18px;
    color: var(--rv-ft-text);
}

.rv-ft-socials a:hover {
    background: rgba(255, 255, 255, 0.07);
}

/* Menüler + durum şeridi */
/* İki sütun da alta yaslanır: ETBİS ve durum şeridi aynı hizada */
.rv-ft-brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rv-ft-brand .rv-ft-etbis {
    margin-top: auto;
    align-self: flex-start;
    min-height: 82px;
}

.rv-ft-brand > :has(+ .rv-ft-etbis) {
    margin-bottom: 20px;
}

.rv-ft-right {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Durum bilgisi: menülerin altında yatay şerit, ETBİS ile aynı hizada */
.rv-ft-status-row {
    position: relative;
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.rv-ft-status {
    min-height: 82px;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 16px 24px;
    padding: 14px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

/* Menülerle şerit arasındaki boşluk */
.rv-ft-nav:not(:last-child) {
    margin-bottom: 36px;
}

.rv-ft-status:hover {
    border-color: rgba(255, 255, 255, 0.32);
}

.rv-ft-status-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
}

.rv-ft-status-dot {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.rv-ft-status-txt {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--rv-ft-strong);
    white-space: nowrap;
}

.rv-ft-status-bars {
    display: block;
    flex: 1 1 auto;
    min-width: 40px;
    height: 10px;
    background: repeating-linear-gradient(90deg, rgba(34, 197, 94, 0.85) 0 3px, transparent 3px 6px);
    border-radius: 1px;
}

.rv-ft-status-foot {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

/* Dar alanda uzun etiket kısalır, ok şeridin dışına taşmaz */
.rv-ft-status-foot > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-ft-status-foot b {
    font-size: 13px;
    color: var(--rv-ft-strong);
}

/* WhatsApp butonu */
.rv-ft-wa {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 0 24px 0 18px;
    border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: 4px;
    background: rgba(37, 211, 102, 0.08);
    color: var(--rv-ft-strong);
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.rv-ft-wa:hover,
.rv-ft-wa:focus-visible {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.16);
    color: var(--rv-ft-strong);
}

/* Destek talebi butonu */
.rv-ft-tk {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 0 24px 0 18px;
    border: 1px solid color-mix(in srgb, var(--rv-ft-accent) 45%, transparent);
    border-radius: 4px;
    background: color-mix(in srgb, var(--rv-ft-accent) 9%, transparent);
    color: var(--rv-ft-strong);
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.rv-ft-tk:hover,
.rv-ft-tk:focus-visible {
    border-color: var(--rv-ft-accent);
    background: color-mix(in srgb, var(--rv-ft-accent) 18%, transparent);
    color: var(--rv-ft-strong);
}

.rv-ft-tk .rv-ft-wa-txt small {
    color: var(--rv-ft-text);
}

.rv-ft-tk-ico {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--rv-ft-accent);
    color: #fff;
}

/* WhatsApp'tan farklı: dönen kesik çizgili halka + yanıp sönen nokta */
.rv-ft-tk-ico::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    /* Eşit aralıklı 15 çizgi: kesik kenarlıktaki birleşme izi (ok gibi görünen parça) oluşmaz */
    background: repeating-conic-gradient(var(--rv-ft-accent) 0deg 14deg, transparent 14deg 24deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    pointer-events: none;
    animation: rv-ft-tk-spin 6s linear infinite;
}

.rv-ft-tk-ico::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--rv-ft-bg);
    border-radius: 50%;
    background: #f59e0b;
    pointer-events: none;
    animation: rv-ft-tk-blink 1.4s ease-in-out infinite;
}

@keyframes rv-ft-tk-spin {
    to { transform: rotate(360deg); }
}

@keyframes rv-ft-tk-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(0.7); }
}

/* Dar ekran: durum şeridi üstte tam genişlik, iki buton altta yan yana */
@media (min-width: 768px) and (max-width: 1399.98px) {
    .rv-ft-status-row {
        flex-wrap: wrap;
    }
    .rv-ft-status {
        flex-basis: 100%;
    }
    .rv-ft-tk,
    .rv-ft-wa {
        flex: 1 1 0;
        min-height: 66px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rv-ft-tk-ico::before,
    .rv-ft-tk-ico::after {
        animation: none;
    }
}

.rv-ft-wa-ico {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 21px;
    line-height: 1;
}

/* İkonun etrafında yanıp sönen halka */
.rv-ft-wa-ico::before,
.rv-ft-wa-ico::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #25d366;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: rv-ft-wa-ring 2s ease-out infinite;
}

.rv-ft-wa-ico::after {
    animation-delay: 1s;
}

@keyframes rv-ft-wa-ring {
    0% { transform: scale(1); opacity: 0.85; }
    100% { transform: scale(1.65); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rv-ft-wa-ico::before,
    .rv-ft-wa-ico::after {
        animation: none;
    }
}

.rv-ft-wa-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    white-space: nowrap;
}

.rv-ft-wa-txt strong {
    font-size: 14px;
    font-weight: 600;
}

.rv-ft-wa-txt small {
    font-size: 12px;
    color: var(--rv-ft-text);
}

.rv-ft-status-arrow {
    flex: 0 0 auto;
    color: var(--rv-ft-text);
}

@media (max-width: 767.98px) {
    .rv-ft-status-row {
        flex-direction: column;
        gap: 12px;
    }
    .rv-ft-wa,
    .rv-ft-tk {
        min-height: 60px;
    }
    .rv-ft-status {
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    .rv-ft-status-head {
        flex: 1 1 auto;
    }
    .rv-ft-status-bars {
        order: 5;
        flex-basis: 100%;
    }
    .rv-ft-status-arrow {
        display: none;
    }
}

/* ETBİS rozeti */
.rv-ft-etbis {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
}

a.rv-ft-etbis:hover {
    border-color: rgba(255, 255, 255, 0.32);
}

.rv-ft-etbis img {
    flex: 0 0 auto;
    width: auto;
    max-width: 64px;
    height: 60px;
    padding: 2px;
    border-radius: 3px;
    background: #fff;
    object-fit: contain;
}

.rv-ft-etbis-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.rv-ft-etbis-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.rv-ft-etbis-txt strong {
    font-size: 14px;
    color: var(--rv-ft-strong);
}

.rv-ft-etbis-txt small {
    font-size: 11.5px;
}

/* Menü sütunları */
.rv-ft-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px 28px;
    align-content: start;
}

.rv-ft-heading {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rv-ft-line);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--rv-ft-strong);
}

.rv-ft-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rv-ft-links li + li {
    margin-top: 10px;
}

.rv-ft-links a {
    font-size: 13.5px;
}

/* ---------- Bülten ---------- */
.rv-ft-news {
    border-top: 1px solid var(--rv-ft-line);
}

.rv-ft-news-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.rv-ft-news-text h2 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--rv-ft-strong);
}

.rv-ft-news-text p {
    margin: 0;
    font-size: 12.5px;
}

.rv-ft-news-text a {
    color: var(--rv-ft-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rv-ft-news-form {
    flex: 0 1 440px;
    min-width: 0;
}

.rv-ft-news-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
}

.rv-ft-news-field:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
}

.rv-ft-news-field input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.rv-ft-news-field input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.rv-ft-news-field input.is-invalid {
    color: #fca5a5;
}

.rv-ft-news-field button,
.rv-ft-news-captcha button {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 18px;
    border: 0;
    border-radius: 3px;
    background: var(--rv-ft-accent);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.rv-ft-news-field button:hover,
.rv-ft-news-captcha button:hover {
    filter: brightness(1.12);
}

.rv-ft-news-captcha button {
    width: 100%;
    margin-top: 8px;
}

.rv-ft-news-ok {
    margin: 0;
    color: #86efac;
    font-weight: 600;
}

/* ---------- Alt çubuk ---------- */
.rv-ft-bottom {
    border-top: 1px solid var(--rv-ft-line);
}

.rv-ft-bottom-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.rv-ft-copy {
    margin: 0;
    font-size: 12.5px;
}

.rv-ft-sep {
    margin: 0 8px;
    opacity: 0.6;
}

.rv-ft-pays {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rv-pay {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.rv-pay-visa {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
}

.rv-pay-troy {
    font-size: 17px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.03em;
}

.rv-pay-amex {
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 6.5px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.rv-pay-iyzico {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    font-size: 12.5px;
}

.rv-pay-iyzico small {
    font-size: 6.5px;
    font-weight: 600;
    opacity: 0.8;
}

.rv-pay-mc {
    position: relative;
    display: inline-flex;
    width: 26px;
    height: 16px;
}

.rv-pay-mc i {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
}

.rv-pay-mc i:first-child {
    left: 0;
    opacity: 0.95;
}

.rv-pay-mc i:last-child {
    right: 0;
    opacity: 0.55;
}

/* ---------- Gece modu ---------- */
[data-bs-theme="dark"] .rv-footer {
    --rv-ft-bg: color-mix(in srgb, var(--primary-color, #065174) 18%, #020a11);
    --rv-ft-bg-2: color-mix(in srgb, var(--primary-color, #065174) 26%, #03111a);
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1199.98px) {
    .rv-ft-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 991.98px) {
    .rv-ft-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rv-ft-contact-item {
        border-bottom: 1px solid var(--rv-ft-line);
    }
    .rv-ft-contact-grid {
        margin-bottom: -1px;
    }
    .rv-ft-news-in {
        flex-direction: column;
        align-items: stretch;
    }
    .rv-ft-news-form {
        flex-basis: auto;
    }
}

@media (max-width: 575.98px) {
    .rv-ft-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rv-ft-contact-grid {
        grid-template-columns: minmax(0, 1fr);
        border-left: 0;
    }
    .rv-ft-contact-item {
        padding: 14px 4px;
        border-right: 0;
    }
    .rv-ft-main {
        padding-top: 40px;
    }
    .rv-ft-bottom-in {
        flex-direction: column;
        align-items: flex-start;
    }
}
