/* =====================================================================
   ALVIALIFE — Kullanıcı Sonuçları (Dikey / Reels Tasarım)
   ===================================================================== */

/* ---- Hero ---- */
.sr-hero {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    padding: 3rem 0 3.5rem;
    overflow: hidden;
}
.sr-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.sr-hero__title {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 .85rem;
}
.sr-hero__lead { color: var(--text-muted-d); font-size: .95rem; margin: 0 0 1.75rem; line-height: 1.65; }
.sr-hero__stats { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.sr-hero__stat-num { font-size: 1.45rem; font-weight: 800; color: var(--accent); line-height: 1; }
.sr-hero__stat-lbl { font-size: .75rem; color: var(--text-muted-d); margin-top: .2rem; }

.sr-hero__media { position: relative; }
.sr-hero__img { width: 100%; border-radius: 1rem; object-fit: contain; max-height: 420px; }
.sr-hero__img-placeholder {
    width: 100%; height: 320px;
    background: rgba(103,224,220,.06);
    border: 2px dashed rgba(103,224,220,.2);
    border-radius: 1rem;
}
.sr-hero__vid-card {
    position: absolute; bottom: -1rem; right: 0;
    background: #fff; border-radius: .85rem;
    display: flex; align-items: center; gap: .75rem;
    width: 210px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
    cursor: pointer; transition: transform .15s; padding-right: .85rem;
    overflow: hidden;
}
.sr-hero__vid-card:hover { transform: translateY(-2px); }
.sr-hero__vid-thumb { position: relative; width: 76px; height: 56px; flex-shrink: 0; }
.sr-hero__vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-hero__vid-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.sr-hero__vid-info strong { display: block; font-size: .8rem; font-weight: 700; color: var(--text-dark); }
.sr-hero__vid-info span  { font-size: .7rem; color: var(--accent); }

/* ---- Feature bar ---- */
.sr-features { background: #f8fafc; padding: 1.25rem 0; border-bottom: 1px solid #e5e9f0; border-top: 1px solid #e5e9f0; }
.sr-features__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.sr-feature { display: flex; align-items: center; gap: .65rem; font-size: .83rem; color: var(--text-dark); font-weight: 500; }
.sr-feature__icon { color: var(--accent); flex-shrink: 0; }

/* ---- Grid section ---- */
.sr-grid-section { background: #fff; padding: 3.5rem 0 4rem; }
.sr-section-title {
    text-align: center; font-size: 1.65rem; font-weight: 800;
    color: var(--text-dark); margin: 0 0 .5rem; letter-spacing: .05em;
}
.sr-section-lead { text-align: center; color: #6b7280; margin: 0 0 2rem; font-size: .95rem; }

/* Filter bar */
.sr-filter-bar {
    display: flex; align-items: center;
    gap: .75rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.sr-tabs {
    display: flex; gap: .35rem; flex-wrap: wrap;
    flex: 1; justify-content: center;
}
.sr-sort { margin-left: auto; flex-shrink: 0; }
.sr-tab {
    background: #f1f5f9; border: 1.5px solid #e2e8f0;
    color: #5a6377; font-size: .8rem; font-weight: 600;
    padding: .5rem 1rem; border-radius: 999px;
    cursor: pointer; transition: all .15s; white-space: nowrap;
}
.sr-tab:hover { border-color: var(--text-dark); color: var(--text-dark); }
.sr-tab.active { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
.sr-sort {
    border: 1.5px solid #e2e8f0; border-radius: .5rem;
    padding: .45rem .85rem; font-size: .8rem;
    color: var(--text-dark); background: #fff; cursor: pointer; outline: none;
    font-family: inherit;
}

/* ========================
   DİKEY (9:16) VİDEO KARTLARI
   ======================== */
.sr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sr-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transition: transform .2s, box-shadow .2s;
}
.sr-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }

/* DİKEY THUMBNAIL (9:16 oran) */
.sr-card__media {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #111;
}
.sr-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
    display: block;
}
.sr-card:hover .sr-card__media img { transform: scale(1.04); }

/* Kategori rozeti */
.sr-card__badge {
    position: absolute; top: .65rem; left: .65rem; z-index: 3;
    padding: .22rem .65rem;
    border-radius: .3rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em;
}

/* Play butonu */
.sr-card__play {
    position: absolute; inset: 0; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    opacity: .75; transition: opacity .15s;
}
.sr-card:hover .sr-card__play { opacity: 1; }
.sr-card__play svg circle { transition: fill .15s; }
.sr-card:hover .sr-card__play svg circle { fill: rgba(0,0,0,.6); }

/* ========================
   ÖZEL VIDEO MODAL (DİKEY)
   ======================== */
.sr-modal {
    display: none;
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0, 0, 0, .88);
    align-items: center; justify-content: center;
    padding: 1.5rem;
    animation: srFadeIn .2s ease;
}
.sr-modal.open { display: flex; }

@keyframes srFadeIn { from { opacity: 0; } to { opacity: 1; } }

.sr-modal__box {
    position: relative;
    width: min(380px, 88vw);
    max-height: 92vh;
    background: #000;
    border-radius: 1rem;
    overflow: visible;
    box-shadow: 0 24px 60px rgba(0,0,0,.6);
    animation: srSlideUp .25s ease;
}
@keyframes srSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Çarpı (X) butonu — büyük ve belirgin */
.sr-modal__close {
    position: absolute;
    top: -18px; right: -18px;
    width: 48px; height: 48px;
    background: #fff;
    border-radius: 50%; border: 0; cursor: pointer;
    font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    z-index: 10001; color: #1a2a4a;
    transition: background .15s, transform .15s;
    line-height: 1;
}
.sr-modal__close:hover { background: #f0f4f8; transform: scale(1.08); }

/* 9:16 iframe wrap */
.sr-modal__video {
    aspect-ratio: 9 / 16;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    max-height: 90vh;
}
.sr-modal__video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Dışına tıklayınca kapat imleci */
.sr-modal { cursor: pointer; }
.sr-modal__box { cursor: default; }

/* ---- Daha fazla yükle ---- */
.sr-load-more { text-align: center; margin-top: 2.5rem; }
.sr-load-more button {
    padding: .75rem 2.5rem; font-size: .88rem;
    border: 2px solid var(--text-dark); border-radius: 999px;
    background: transparent; color: var(--text-dark);
    cursor: pointer; font-weight: 600; transition: all .15s;
    display: inline-flex; align-items: center; gap: .5rem;
}
.sr-load-more button:hover { background: var(--text-dark); color: #fff; }

/* ---- Paylaşım bölümü ---- */
.sr-share { background: #f8fafc; padding: 3.5rem 0; border-top: 1px solid #e5e9f0; }
.sr-share__inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; }
.sr-share__title { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin: 0 0 .75rem; }
.sr-share__lead  { color: #6b7280; margin: 0 0 1.5rem; line-height: 1.6; }
.sr-share__steps { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.sr-share__step {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    gap: .5rem; flex: 1; min-width: 100px;
}
.sr-share__step-icon {
    width: 56px; height: 56px;
    background: rgba(103,224,220,.1); color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.sr-share__step strong { font-size: .82rem; color: var(--text-dark); }
.sr-share__step span   { font-size: .75rem; color: #6b7280; line-height: 1.4; }
.sr-share__arrow { color: #d1d5db; font-size: 1.1rem; flex-shrink: 0; }

/* ---- Footer CTA ---- */
.sr-footer-cta { background: var(--bg-darker); padding: 2rem 0; border-top: 1px solid var(--border-dark); }
.sr-footer-cta__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.sr-footer-cta__title { font-size: 1.1rem; font-weight: 800; color: #fff; margin: 0 0 .25rem; }
.sr-footer-cta__lead  { color: var(--text-muted-d); font-size: .85rem; margin: 0; }
.sr-footer-cta__qr { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-left: auto; }
.sr-footer-cta__qr img { border-radius: .4rem; }
.sr-footer-cta__qr span { font-size: .7rem; color: var(--text-muted-d); text-align: center; }

/* ============================
   MOBİL RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
    .sr-grid { grid-template-columns: repeat(3, 1fr); }
    .sr-features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sr-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
    .sr-hero__vid-card { position: static; width: 100%; margin-top: 1rem; }
    .sr-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .sr-section-title { font-size: 1.25rem; }
    .sr-share__inner { grid-template-columns: 1fr; gap: 2rem; }
    .sr-features__grid { grid-template-columns: 1fr 1fr; }
    .sr-filter-bar {
        flex-wrap: wrap;
        gap: .6rem;
        justify-content: flex-end;
    }
    .sr-tabs {
        width: 100%;
        order: 1;
        justify-content: center;
        flex-wrap: wrap;
        margin: 0;
    }
    .sr-sort {
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }
    .sr-modal__box { width: min(340px, 92vw); }
    .sr-modal__close { width: 42px; height: 42px; font-size: 1.3rem; top: -14px; right: -14px; }
}

@media (max-width: 500px) {
    .sr-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .sr-features__grid { grid-template-columns: 1fr; }
    .sr-tabs { gap: .25rem; justify-content: center; width: 100%; }
    .sr-tab { font-size: .72rem; padding: .4rem .75rem; }
    .sr-sort { margin-left: auto; }
    .sr-modal__box { width: 95vw; }
    .sr-modal { padding: .75rem; }
    .sr-modal__close { top: -12px; right: -8px; }
    .sr-share__steps { gap: .5rem; }
    .sr-footer-cta__qr { display: none; }
}

/* ---- TikTok kart ---- */
.sr-card--tiktok .sr-card__media { background: linear-gradient(135deg, #010101 0%, #1a0a0f 50%, #010101 100%); }
.sr-card__tiktok-bg {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #1a0a0f, #0a0014, #010101);
}
.sr-card__tiktok-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(0,0,0,.45);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,.15);
    transition: transform .2s;
}
.sr-card:hover .sr-card__tiktok-logo { transform: translate(-50%, -50%) scale(1.12); }

/* ---- TikTok modal boyutu (9:16 ? genis) ---- */
.sr-modal__box--tiktok {
    width: min(380px, 95vw) !important;
}
.sr-modal__box--tiktok .sr-modal__video {
    aspect-ratio: 9 / 16;
}

/* ---- Instagram modal boyutu — kendi resmi embed kartı (başlık/altyazı dahil),
   sabit 9:16 yerine daha esnek/uzun bir kutu kullanılır ---- */
.sr-modal__box--instagram {
    width: min(420px, 95vw) !important;
}
.sr-modal__box--instagram .sr-modal__video {
    aspect-ratio: unset;
    height: min(680px, 85vh);
}
