/* Footer Extra CSS */

/* Social media links */
.footer-social-link {
    background: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}

.footer-social-link i {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Branding */
.footer-branding {
    font-family: var(--font-family-base);
}

/* ================================================
   GALERİ LIGHTBOX
   ================================================ */
.lightbox-button {
    border-radius: var(--border-radius-base);
}
.lightbox-image {
    border-radius: var(--border-radius-base);
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.5));
    max-height: calc(100vh - 200px);
}
.lightbox-loading  { border-radius: var(--border-radius-base); }
.lightbox-counter  { border-radius: var(--border-radius-base); }
.lightbox-close    { border-radius: var(--border-radius-base); }

/* ================================================
   REFERANS LIGHTBOX — Premium Tasarım
   ================================================ */

/* Overlay */
.ref-lb-overlay {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Şeffaf backdrop katmanı */
.ref-lb-backdrop {
    cursor: pointer;
}

/* Kapat butonu */
.ref-lb-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition-hover), transform var(--transition-hover);
}
.ref-lb-close-btn:hover {
    background: rgba(239,68,68,0.75);
    transform: scale(1.1) rotate(90deg);
}

/* Ana kart */
.ref-lb-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: calc(var(--border-radius-base, 8px) + 4px);
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 32px 80px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.1);
    animation: refLbCardIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

html.dark-mode .ref-lb-card {
    background: #0f172a;
    box-shadow:
        0 32px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.06);
}

@keyframes refLbCardIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Görsel alanı */
.ref-lb-image-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 40px 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

html.dark-mode .ref-lb-image-area {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Dekoratif ızgara deseni */
.ref-lb-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

html.dark-mode .ref-lb-grid-bg {
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* Görsel çerçevesi */
.ref-lb-img-frame {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: var(--border-radius-base, 8px);
    padding: 16px 24px;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.08),
        0 1px 4px rgba(0,0,0,0.06),
        0 0 0 1px rgba(0,0,0,0.05);
    min-width: 120px;
    min-height: 80px;
    transition: box-shadow 0.3s ease;
}

html.dark-mode .ref-lb-img-frame {
    /* Beyaz arka plan korunuyor — koyu logolar görünür kalsın */
    background: #ffffff;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.12);
}

/* Görsel */
.ref-lb-img {
    max-height: 160px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease, transform 0.25s ease;
    border-radius: 4px;
}

/* Navigasyon butonları */
.ref-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    color: #475569;
    cursor: pointer;
    transition: color var(--transition-hover), background-color var(--transition-hover), border-color var(--transition-hover);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ref-lb-nav:hover {
    background: var(--color-primary, #3b82f6);
    color: #fff;
    border-color: transparent;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

html.dark-mode .ref-lb-nav {
    background: rgba(30,41,59,0.95);
    border-color: rgba(255,255,255,0.1);
    color: #94a3b8;
}

html.dark-mode .ref-lb-nav:hover {
    background: var(--color-primary, #3b82f6);
    color: #fff;
    border-color: transparent;
}

.ref-lb-nav--prev { left: 12px; }
.ref-lb-nav--next { right: 12px; }

/* Alt şerit */
.ref-lb-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    gap: 12px;
}

html.dark-mode .ref-lb-footer {
    border-top-color: rgba(255,255,255,0.07);
    background: #0f172a;
}

.ref-lb-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Etiket ikonunun rengi */
.ref-lb-label-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--color-primary, #3b82f6);
    opacity: 0.85;
}

.ref-lb-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

html.dark-mode .ref-lb-title {
    color: #e2e8f0;
}

.ref-lb-counter {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
    background: #f1f5f9;
    border-radius: 100px;
    padding: 2px 10px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

html.dark-mode .ref-lb-counter {
    background: rgba(255,255,255,0.06);
    color: #64748b;
}

/* Mobil */
@media (max-width: 480px) {
    .ref-lb-card { max-width: 100%; }
    .ref-lb-image-area { min-height: 220px; padding: 32px 48px; }
    .ref-lb-img { max-height: 120px; }
    .ref-lb-nav { width: 30px; height: 30px; }
    .ref-lb-nav--prev { left: 8px; }
    .ref-lb-nav--next { right: 8px; }
}
