/* ============================================================
   Referanslar Sayfası — influencer360
   Birebir layout, renk, duruş — Influencer360 marka renkleri (#e8a020)
   ============================================================ */

.ref-page * { box-sizing: border-box; }

/* ════════════════════════════════════════════════════════════════
   GENEL BÖLÜM
   ════════════════════════════════════════════════════════════════ */
.ref-section {
    background: #0c0c0c;
    position: relative;
}

/* ════════════════════════════════════════════════════════════════
   OWL CAROUSEL — Büyük Logo Kartları (koyu bg üzerinde beyaz kartlar)
   ════════════════════════════════════════════════════════════════ */
.ref-carousel-wrap {
    padding: 210px 0 90px;  /* header(88) + announcement-bar(48) + ekstra(74) = 210px */
    background: #0c0c0c;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.ref-carousel-wrap .owl-carousel {
    overflow: visible;
}
.ref-carousel-wrap .owl-stage-outer {
    overflow: hidden;
}

/* ── KART ────────────────────────────────────────────────────── */
.ref-box {
    cursor: pointer;
    user-select: none;
}

.ref-box-inner {
    width: 340px;
    height: 220px;
    background: #f5f5f5;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.ref-box:hover .ref-box-inner {
    transform: translateY(-8px);
    box-shadow: 0 28px 64px rgba(0,0,0,0.55);
}

.ref-box-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 36px;
    width: 100%;
    height: 100%;
}

.ref-box-logo img {
    max-width: 200px;
    max-height: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.ref-box:hover .ref-box-logo img {
    transform: scale(1.06);
}

.ref-box-title {
    margin-top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-align: center;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}

.ref-carousel-wrap .owl-dots,
.ref-carousel-wrap .owl-nav { display: none; }

/* ════════════════════════════════════════════════════════════════
   ACCORDION BÖLÜMLER — Sticky Stack
   Her section scroll ettikçe bir öncekinin üzerine yığılır
   ════════════════════════════════════════════════════════════════ */
.ref-sticky-accordion {
    position: relative;
}

.ref-accordion-item {
    position: sticky;
    top: 70px;
    /* z-index PHP tarafından inline verilir */
    transition: none;
}

/* ── TEK numaralı: AÇIK zemin (beyazımsı) ── */
.ref-accordion-item:nth-child(odd) {
    background: #f2f2f0;
    border-radius: 0;
}

/* ── ÇİFT numaralı: KOYU zemin — influencer360 gibi üst köşeler yuvarlatılmış ── */
.ref-accordion-item:nth-child(even) {
    background: #141414;
    border-radius: 2.5rem 2.5rem 0 0;  /* Üst köşeler oval — influencer360 birebir */
    margin-top: -2.5rem;               /* Önceki section'ın üzerine kayıyor */
}

/* İlk item (açık zemin) için margin sıfır */
.ref-accordion-item:first-child {
    margin-top: 0;
    border-radius: 2.5rem 2.5rem 0 0;
}

/* Açık zeminden koyu zeminin içine geçerken üst köşe */
.ref-accordion-item:nth-child(odd):not(:first-child) {
    border-radius: 2.5rem 2.5rem 0 0;
    margin-top: -2.5rem;
}

/* ── Accordion Head ──────────────────────────────────────────── */
.ref-accordion-head {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 80px 0 0;
    cursor: pointer;
    user-select: none;
}

/* Kare ikon kutusu — pembe */
.ref-accordion-icon {
    width: 68px;
    height: 68px;
    background: #e91e63;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    color: #fff;
    transition: transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(233,30,99,0.30);
}

.ref-accordion-head:hover .ref-accordion-icon {
    transform: scale(1.05);
}

/* Başlık metni */
.ref-accordion-head h2 {
    flex: 1;
    font-size: clamp(1.5rem, 2.5vw, 2.4rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.8px;
    margin: 0 !important;
    line-height: 1.1 !important;
    text-transform: uppercase;
}

/* Açık zemin başlık */
.ref-accordion-item:nth-child(odd) .ref-accordion-head h2 {
    color: #1a1a1a !important;
}

/* Koyu zemin başlık */
.ref-accordion-item:nth-child(even) .ref-accordion-head h2 {
    color: #ffffff !important;
}

/* Gizlenenler */
.ref-accordion-count  { display: none; }
.ref-accordion-chevron { display: none; }

/* Başlık altı separator */
.ref-accordion-separator {
    margin: 28px 0 0;
    padding: 0;
}

.ref-accordion-item:nth-child(odd) .ref-accordion-separator {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.10);
}

.ref-accordion-item:nth-child(even) .ref-accordion-separator {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.10);
}

/* ── Accordion Body ──────────────────────────────────────────── */
.ref-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.ref-accordion-body.open {
    max-height: 1600px;
}

.ref-accordion-body .row {
    padding: 50px 0 100px;
}

/* ════════════════════════════════════════════════════════════════
   SOL: TAB İÇERİK
   ════════════════════════════════════════════════════════════════ */
.ref-tab-content {
    padding-top: 0;
}

.ref-tab-pane {
    display: none;
    animation: refTabFadeIn 0.28s ease;
}

.ref-tab-pane.active { display: block; }

@keyframes refTabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Brand logo */
.ref-tab-brand-logo {
    margin-bottom: 32px;
}

.ref-tab-brand-logo img {
    max-height: 60px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Koyu zeminde logo beyazlaştır */
.ref-accordion-item:nth-child(even) .ref-tab-brand-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Açıklama metni */
.ref-tab-article {
    font-size: 15.5px !important;
    line-height: 1.90 !important;
    margin-bottom: 0 !important;
    max-width: 520px;
    background: none !important;
}

.ref-accordion-item:nth-child(odd) .ref-tab-article {
    color: #4b5563 !important;
}

.ref-accordion-item:nth-child(even) .ref-tab-article {
    color: rgba(255,255,255,0.65) !important;
}

.ref-tab-article-sub {
    font-size: 13.5px !important;
    margin-top: 14px !important;
    opacity: 0.7;
}

/* Web sitesine git linki */
.ref-tab-actions {
    margin-top: 22px;
}

.ref-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: gap 0.2s ease;
    background: none !important;
    color: #e91e63 !important;
}

.ref-tab-btn:hover {
    gap: 14px;
    text-decoration: none !important;
    color: #e91e63 !important;
}

/* ════════════════════════════════════════════════════════════════
   PLATFORM / ARAÇ BADGE'LERİ — influencer360: Ai Illustrator / Ps Photoshop
   ════════════════════════════════════════════════════════════════ */
.ref-tool-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.ref-tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid;
    background: transparent !important;
    background-color: transparent !important;
    line-height: 1;
}

.ref-accordion-item:nth-child(odd) .ref-tool-badge {
    border-color: rgba(0,0,0,0.15) !important;
    color: #374151 !important;
}

.ref-accordion-item:nth-child(even) .ref-tool-badge {
    border-color: rgba(255,255,255,0.30) !important;
    color: rgba(255,255,255,0.85) !important;
}

/* İkon renkleri de emin olalım */
.ref-accordion-item:nth-child(odd) .ref-tool-badge i {
    color: #374151 !important;
}

.ref-accordion-item:nth-child(even) .ref-tool-badge i {
    color: rgba(255,255,255,0.85) !important;
}

/* ════════════════════════════════════════════════════════════════
   REFERANS İÇERİK MEDYASİ — sol tab içinde görsel/video
   ════════════════════════════════════════════════════════════════ */
.ref-tab-media {
    margin-top: 28px;
    border-radius: 16px;
    overflow: hidden;
    max-width: 520px;
}

.ref-tab-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s ease;
}

.ref-tab-image:hover {
    transform: scale(1.015);
}

.ref-tab-video {
    display: block;
    width: 100%;
    max-height: 340px;
    border-radius: 16px;
    background: #000;
    outline: none;
}

/* Koyu zemin üzerinde medya hafif parlak border */
.ref-accordion-item:nth-child(even) .ref-tab-media {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

/* Açık zemin üzerinde medya gölge */
.ref-accordion-item:nth-child(odd) .ref-tab-media {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* ── Aspect-Ratio Modifier'ları ──────────────────────────────── */
/*
   Tüm oranlar köşeleri oval (border-radius) tutar.
   İçerik (img/video) aspect-ratio kutusunu object-fit:cover ile doldurur.
   max-width: 360px — sol kolonda sığan, orantılı görünüm.
*/

/* auto: orijinal oran — boyut kısıtlaması yok, media kendi oranında */
.ref-tab-media--auto {
    max-width: 520px;
}
.ref-tab-media--auto .ref-tab-image,
.ref-tab-media--auto .ref-tab-video {
    max-height: 340px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* reels: 9:16 dikey — Instagram/TikTok reels boyutu */
.ref-tab-media--reels {
    max-width: 260px;      /* dar genişlik — telefon boyutu */
    aspect-ratio: 9 / 16;
}
.ref-tab-media--reels .ref-tab-image,
.ref-tab-media--reels .ref-tab-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: unset;
}

/* post: 1:1 kare — Instagram post */
.ref-tab-media--post {
    max-width: 360px;
    aspect-ratio: 1 / 1;
}
.ref-tab-media--post .ref-tab-image,
.ref-tab-media--post .ref-tab-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: unset;
}

/* portrait: 4:5 dikey — Instagram portrait post */
.ref-tab-media--portrait {
    max-width: 320px;
    aspect-ratio: 4 / 5;
}
.ref-tab-media--portrait .ref-tab-image,
.ref-tab-media--portrait .ref-tab-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: unset;
}

/* landscape: 16:9 yatay — geniş ekran, TV, banner */
.ref-tab-media--landscape {
    max-width: 520px;
    aspect-ratio: 16 / 9;
}
.ref-tab-media--landscape .ref-tab-image,
.ref-tab-media--landscape .ref-tab-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: unset;
}

/* Mobil: tüm ratio'larda max-width sınırla */
@media (max-width: 575px) {
    .ref-tab-media--reels    { max-width: 200px; }
    .ref-tab-media--post     { max-width: 100%; }
    .ref-tab-media--portrait { max-width: 240px; }
    .ref-tab-media--landscape{ max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════════
   SAĞ BRAND NAV — Çok marka olunca scrollable
   ════════════════════════════════════════════════════════════════ */
.ref-brand-nav-wrap {
    position: relative;
}

/* 8+ markadan itibaren scroll devreye giriyor (max-height: 8 * ~58px) */
.ref-brand-nav {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(233,30,99,0.35) transparent;
}

.ref-brand-nav::-webkit-scrollbar {
    width: 3px;
}

.ref-brand-nav::-webkit-scrollbar-track {
    background: transparent;
}

.ref-brand-nav::-webkit-scrollbar-thumb {
    background: rgba(233,30,99,0.35);
    border-radius: 10px;
}

.ref-brand-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(233,30,99,0.6);
}

/* Scroll varsa alta/üste fade gölgesi */
.ref-brand-nav-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    pointer-events: none;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.ref-brand-nav-wrap.has-scroll::after {
    opacity: 1;
}

.ref-accordion-item:nth-child(odd) .ref-brand-nav-wrap::after {
    background: linear-gradient(to bottom, transparent, #f2f2f0);
}

.ref-accordion-item:nth-child(even) .ref-brand-nav-wrap::after {
    background: linear-gradient(to bottom, transparent, #141414);
}

/* ════════════════════════════════════════════════════════════════
   CTA PILL BUTONU — influencer360'daki sarı/turuncu "TASARIM HİZMETİ AL"
   ════════════════════════════════════════════════════════════════ */
.ref-tab-cta {
    margin-top: 36px;
    padding-bottom: 0;
}

.ref-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    background: #e91e63 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 100px;
    text-decoration: none !important;
    transition: all 0.28s ease;
    box-shadow: 0 8px 28px rgba(233,30,99,0.35);
    border: none;
}

.ref-cta-pill:hover {
    background: #c2185b !important;
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(233,30,99,0.52);
    color: #fff !important;
    text-decoration: none !important;
}

/* ════════════════════════════════════════════════════════════════
   SAĞ: BRAND NAV — "+" çizgili liste (influencer360 birebir)
   + Çok marka olunca scrollable (max-height: ~8 item)
   ════════════════════════════════════════════════════════════════ */
.ref-brand-nav {
    display: flex;
    flex-direction: column;
    padding-top: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    /* Scroll — 480px ≈ 8 marka satırı; fazlası için scroll */
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(233,30,99,0.35) transparent;
    /* Padding sağda scrollbar için */
    padding-right: 8px;
}

.ref-brand-nav::-webkit-scrollbar {
    width: 3px;
}

.ref-brand-nav::-webkit-scrollbar-track {
    background: transparent;
}

.ref-brand-nav::-webkit-scrollbar-thumb {
    background: rgba(233,30,99,0.35);
    border-radius: 10px;
}

.ref-brand-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(233,30,99,0.6);
}

.ref-brand-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 0;
    /* DIV olarak kullanıldığı için button reset gerekmiyor */
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-bottom-width: 1px !important;
    border-bottom-style: solid !important;
    box-shadow: none !important;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease, padding-left 0.2s ease;
    font-family: inherit;
    outline: none !important;
    border-radius: 0 !important;
    /* Global stil override'larını kırmak için */
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* İlk item üst çizgi */
.ref-brand-btn:first-child {
    border-top-width: 1px !important;
    border-top-style: solid !important;
}

/* Açık zemin */
.ref-accordion-item:nth-child(odd) .ref-brand-btn {
    color: #374151;
    border-bottom-color: rgba(0,0,0,0.10) !important;
    border-top-color: rgba(0,0,0,0.10) !important;
}

/* Koyu zemin */
.ref-accordion-item:nth-child(even) .ref-brand-btn {
    color: rgba(255,255,255,0.65);
    border-bottom-color: rgba(255,255,255,0.10) !important;
    border-top-color: rgba(255,255,255,0.10) !important;
}

/* Hover */
.ref-accordion-item .ref-brand-btn:hover {
    color: #e91e63 !important;
    padding-left: 6px;
    background: transparent !important;
    background-color: transparent !important;
}

/* Aktif — pembe renk, arka plan KESİNLİKLE ŞEFFAF */
.ref-brand-btn.active,
.ref-brand-nav .ref-brand-btn.active,
.ref-accordion-item .ref-brand-btn.active,
.ref-accordion-item:nth-child(odd) .ref-brand-btn.active,
.ref-accordion-item:nth-child(even) .ref-brand-btn.active,
.ref-sticky-accordion .ref-brand-btn.active {
    color: #e91e63 !important;
    font-weight: 700 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* "+" ikonu */
.ref-brand-btn-icon {
    font-size: 11px;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.25s ease;
    width: 16px;
    text-align: center;
}

.ref-accordion-item:nth-child(odd) .ref-brand-btn-icon {
    color: rgba(0,0,0,0.20);
}

.ref-accordion-item:nth-child(even) .ref-brand-btn-icon {
    color: rgba(255,255,255,0.20);
}

.ref-brand-btn.active .ref-brand-btn-icon {
    color: #e91e63 !important;
    transform: rotate(45deg);
}

.ref-brand-star {
    margin-left: auto;
    font-size: 12px;
    color: #e91e63;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   SON SECTION ALT GEÇİŞ — Sticky accordion'dan footer'a geçiş
   ════════════════════════════════════════════════════════════════ */
.ref-sticky-accordion::after {
    content: '';
    display: block;
    height: 0;
}

/* ════════════════════════════════════════════════════════════════
   CTA BOTTOM BÖLÜMÜ
   ════════════════════════════════════════════════════════════════ */
.ref-cta-bottom {
    background: #080818;
    padding: 90px 0;
    position: relative;
    z-index: 200;
}

.ref-cta-bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.ref-cta-bottom-text h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -1.5px;
    line-height: 1.1 !important;
    margin-bottom: 14px !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.ref-cta-bottom-text h2 em {
    font-style: normal !important;
    color: #e91e63 !important;
    -webkit-text-fill-color: #e91e63 !important;
    opacity: 1 !important;
}

.ref-cta-bottom-text p {
    font-size: 1rem !important;
    color: rgba(255,255,255,0.75) !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.ref-cta-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: #e91e63;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(233,30,99,0.4);
}

.ref-cta-bottom-btn:hover {
    background: #c2185b;
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(233,30,99,0.55);
    color: #fff !important;
    text-decoration: none !important;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSİF — Tam mobile uyumluluk
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    .ref-carousel-wrap { padding: 120px 0 70px; }
    .ref-box-inner { width: 280px; height: 185px; border-radius: 28px; }
    .ref-box-logo img { max-width: 170px; max-height: 95px; }
}

@media (max-width: 991px) {
    .ref-carousel-wrap { padding: 100px 0 52px; }
    .ref-box-inner { width: 230px; height: 155px; border-radius: 24px; }
    .ref-box-logo img { max-width: 145px; max-height: 80px; }
    .ref-box-title { max-width: 230px; }

    /* Mobilde sticky kaldır */
    .ref-accordion-item { position: relative !important; top: 0 !important; }
    /* Mobilde border-radius azalt */
    .ref-accordion-item:nth-child(even),
    .ref-accordion-item:nth-child(odd):not(:first-child) {
        border-radius: 1.5rem 1.5rem 0 0;
        margin-top: -1.5rem;
    }

    .ref-accordion-head { padding: 60px 0 0; gap: 18px; }
    .ref-accordion-icon { width: 56px; height: 56px; border-radius: 14px; font-size: 20px; }
    .ref-accordion-head h2 { font-size: clamp(1.2rem, 3vw, 1.8rem) !important; }

    .ref-brand-nav { margin-top: 36px; }
    .ref-accordion-body .row { padding: 36px 0 72px; }

    .ref-cta-bottom-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ref-cta-bottom-actions { display: flex; justify-content: center; }
}

@media (max-width: 767px) {
    .ref-carousel-wrap { padding: 90px 0 44px; }
    .ref-tab-article { font-size: 14.5px !important; max-width: 100%; }
    .ref-tab-brand-logo img { max-height: 48px; }
    .ref-tool-badges { gap: 8px; margin-top: 22px; }
    .ref-tool-badge { padding: 8px 16px; font-size: 12px; }
    .ref-tab-cta { margin-top: 28px; }
    .ref-cta-pill { padding: 16px 34px; font-size: 12px; }
}

@media (max-width: 575px) {
    .ref-carousel-wrap { padding: 80px 0 36px; }
    .ref-box-inner { width: 175px; height: 122px; border-radius: 20px; }
    .ref-box-logo img { max-width: 115px; max-height: 62px; }
    .ref-box-title { max-width: 175px; font-size: 11px; }

    .ref-accordion-item:nth-child(even),
    .ref-accordion-item:nth-child(odd):not(:first-child) {
        border-radius: 1.2rem 1.2rem 0 0;
        margin-top: -1.2rem;
    }

    .ref-accordion-head { padding: 48px 0 0; gap: 14px; }
    .ref-accordion-head h2 { font-size: 1.05rem !important; }
    .ref-accordion-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 17px; }

    .ref-brand-btn { font-size: 13.5px; padding: 14px 0; }

    .ref-cta-bottom { padding: 56px 0; }
    .ref-cta-bottom-btn { padding: 14px 24px; font-size: 14px; }
}