/* ===== UGC SAYFALARI (v2) ===== */

/* --- Hero --- */
.ugc-hero {
    position: relative;
    overflow: hidden;
    color: #f5f3ff;
    background:
        radial-gradient(60% 80% at 85% 20%, rgba(168, 85, 247, 0.35), transparent 60%),
        radial-gradient(50% 60% at 0% 100%, rgba(236, 72, 153, 0.18), transparent 60%),
        linear-gradient(160deg, #1a0b3a 0%, #120726 55%, #0b0518 100%);
}
.ugc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    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);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    pointer-events: none;
}
.ugc-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: 600px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.ugc-hero .breadcrumb { margin-bottom: 20px; color: rgba(245, 243, 255, 0.6); }
.ugc-hero .breadcrumb a { color: #c4b5fd; }
.ugc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 18px;
}
.ugc-hero-title {
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}
.ugc-hero-title.is-category { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.ugc-hero-sub {
    font-size: 1.12rem;
    color: rgba(245, 243, 255, 0.72);
    max-width: 520px;
    margin-bottom: 30px;
}
.ugc-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.ugc-hero .btn-outline { color: #f5f3ff; border-color: rgba(255, 255, 255, 0.25); }
.ugc-hero .btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.ugc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ugc-stats li {
    display: flex;
    flex-direction: column;
    padding: 12px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 108px;
}
.ugc-stats strong { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.ugc-stats span { font-size: 0.78rem; color: rgba(245, 243, 255, 0.6); }

/* Kayan dikey video sütunları */
.ugc-hero-reel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    height: 560px;
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.reel-col { overflow: hidden; }
.reel-track { display: flex; flex-direction: column; gap: 14px; animation: reel-up 38s linear infinite; }
.reel-col-1 .reel-track { animation-direction: reverse; animation-duration: 44s; }
.reel-col-2 .reel-track { animation-duration: 34s; }
.reel-item {
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    background: #241341;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.reel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes reel-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
.ugc-hero-reel:hover .reel-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .reel-track { animation: none; } }

/* --- Bölümler --- */
.ugc-section { padding: 88px 0; }
.ugc-head { text-align: center; margin-bottom: 40px; }
.ugc-head .section-sub { margin: 0 auto; }
.ugc-head-row { text-align: left; display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.ugc-head-row .section-title { text-align: left; }
.ugc-head-row .section-sub { margin: 0; }

/* Sektör kartları */
.ugc-sectors { background: var(--bg2); }
.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}
.sector-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.sector-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-purple); }
.sector-stack { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.sector-stack img {
    position: absolute;
    top: 6px;
    width: 46px;
    height: 72px;
    object-fit: cover;
    border-radius: 9px;
    border: 2px solid var(--card);
    background: var(--bg3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}
.sector-stack img:nth-child(1) { left: 0; transform: rotate(-8deg); z-index: 1; }
.sector-stack img:nth-child(2) { left: 19px; z-index: 3; top: 2px; }
.sector-stack img:nth-child(3) { left: 38px; transform: rotate(8deg); z-index: 2; }
.sector-card:hover .sector-stack img:nth-child(1) { transform: rotate(-14deg) translateX(-4px); }
.sector-card:hover .sector-stack img:nth-child(3) { transform: rotate(14deg) translateX(4px); }
.sector-text h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.sector-text p { font-size: 0.85rem; color: var(--muted); }
.sector-arrow { display: inline-block; color: var(--purple-light); transition: transform 0.2s; }
.sector-card:hover .sector-arrow { transform: translateX(4px); }
.sector-desc { margin-top: 4px; }

/* Filtre çubuğu */
.ugc-filters {
    position: sticky;
    top: 70px;
    z-index: 20;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 12px 0;
    margin-bottom: 20px;
    background: var(--bg);
    scrollbar-width: none;
}
.ugc-filters::-webkit-scrollbar { display: none; }
.ugc-filters .filter-btn { white-space: nowrap; flex-shrink: 0; }
.ugc-filters .filter-btn em {
    font-style: normal;
    font-size: 0.72rem;
    opacity: 0.65;
    margin-left: 4px;
}

/* Video duvarı */
.vgrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.vcard { display: block; border-radius: 18px; outline-offset: 3px; }
.vcard[hidden] { display: none; }
.vcard-media {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.vcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.vcard-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(8, 4, 20, 0.92) 100%);
    pointer-events: none;
}
.vcard:hover .vcard-media { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 16px 40px rgba(124, 58, 237, 0.28); }
.vcard:hover .vcard-media img { transform: scale(1.05); }
.vcard-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    z-index: 2;
    transition: transform 0.25s ease, background 0.25s ease;
}
.vcard-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.vcard:hover .vcard-play { transform: scale(1.12); background: var(--purple); border-color: var(--purple-light); }
.vcard-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: rgba(124, 58, 237, 0.85);
}
.vcard-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 14px;
    color: #fff;
}
.vcard-info h3 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.72rem; }
.vcard-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vcard-views { opacity: 0.8; white-space: nowrap; }
.vgrid-more { text-align: center; margin-top: 36px; }

/* Adımlar */
.ugc-steps-wrap { background: var(--bg2); }
.ugc-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    counter-reset: none;
}
.ugc-steps li {
    padding: 28px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
}
.ugc-steps span {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--purple-light);
    margin-bottom: 14px;
}
.ugc-steps h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.ugc-steps p { color: var(--muted); font-size: 0.95rem; }

/* Kategori sayfası: sektör geçiş çubuğu */
.sector-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sector-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(245, 243, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}
.sector-nav a:hover, .sector-nav a.active { background: var(--purple); border-color: var(--purple-light); color: #fff; }
.ugc-hero-compact .ugc-hero-inner { min-height: 0; grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 48px; }

/* --- Detay sayfası --- */
.vdetail { padding: 56px 0 88px; }
.vdetail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: 56px;
    align-items: start;
}
.vdetail-player {
    position: sticky;
    top: 96px;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(124, 58, 237, 0.25);
}
.vdetail-player iframe, .vdetail-player video { width: 100%; height: 100%; border: 0; display: block; }
.vdetail-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.vdetail-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdetail-poster .vcard-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.vdetail-poster .vcard-play svg { width: 30px; height: 30px; }
.vdetail-poster:hover .vcard-play { transform: scale(1.1); background: var(--purple); }
.vdetail .breadcrumb { margin-bottom: 18px; }
.vdetail h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.vdetail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.vdetail-chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
}
a.vdetail-chip { color: var(--purple-light); }
.vdetail-desc { color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.vdetail-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.vdetail-perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.vdetail-perks li {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}
.vdetail-perks strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.vdetail-perks span { color: var(--muted); font-size: 0.82rem; }
.vdetail-box {
    margin-bottom: 24px;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
}
.vdetail-box h2 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.vdetail-creators { display: flex; flex-wrap: wrap; gap: 12px; }
.vdetail-creator { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--bg3); }
.vdetail-creator img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.vdetail-creator strong { display: block; font-size: 0.88rem; }
.vdetail-creator span { font-size: 0.75rem; color: var(--muted); }
.vrelated { padding-top: 0; }

/* --- Video oynatıcı penceresi --- */
.vbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vbox[hidden] { display: none; }
.vbox-backdrop { position: absolute; inset: 0; background: rgba(5, 2, 12, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vbox-panel {
    position: relative;
    display: flex;
    gap: 24px;
    align-items: center;
    animation: vbox-in 0.25s ease;
}
@keyframes vbox-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.vbox-player {
    height: min(82vh, 760px);
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.vbox-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.vbox-side { width: 260px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.vbox-side h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.vbox-side .btn { justify-content: center; }
.vbox-side .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.vbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(20, 10, 40, 0.9);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
body.vbox-open { overflow: hidden; }

/* --- Açık tema --- */
[data-theme="light"] .vcard-media,
[data-theme="light"] .sector-card,
[data-theme="light"] .ugc-steps li { box-shadow: 0 2px 10px rgba(26, 26, 46, 0.05); }

/* --- Duyarlı --- */
@media (max-width: 1100px) {
    .vgrid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
    .ugc-hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 28px; padding-top: 28px; }
    .ugc-hero-reel { height: 300px; grid-template-columns: repeat(3, 1fr); }
    .vgrid { grid-template-columns: repeat(3, 1fr); }
    .ugc-steps { grid-template-columns: 1fr; }
    .vdetail-grid { grid-template-columns: 1fr; gap: 28px; }
    .vdetail-player { position: relative; top: 0; max-width: 380px; margin: 0 auto; width: 100%; }
    .vbox-panel { flex-direction: column; gap: 14px; }
    .vbox-player { height: min(70vh, 640px); }
    .vbox-side { width: 100%; max-width: 360px; flex-direction: row; flex-wrap: wrap; }
    .vbox-side h3 { width: 100%; font-size: 1rem; margin: 0; }
    .vbox-side .btn { flex: 1; padding: 10px 12px; font-size: 0.85rem; }
}
@media (max-width: 600px) {
    .ugc-section { padding: 56px 0; }
    .ugc-hero-reel { height: 220px; gap: 10px; }
    .reel-item { border-radius: 12px; }
    .ugc-stats li { min-width: 0; flex: 1 1 40%; padding: 10px 14px; }
    .ugc-stats strong { font-size: 1.1rem; }
    .ugc-hero-ctas .btn { flex: 1; justify-content: center; padding: 14px 12px; font-size: 0.95rem; white-space: nowrap; }
    .vdetail { padding-top: 28px; }
    .vdetail-player { max-width: 280px; }
    .vgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .vcard-media { border-radius: 14px; }
    .vcard-info { padding: 10px; }
    .vcard-info h3 { font-size: 0.8rem; }
    .vcard-play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
    .sector-grid { grid-template-columns: 1fr; gap: 10px; }
    .ugc-head-row { flex-direction: column; align-items: flex-start; }
    .ugc-filters { top: 62px; }
    .vdetail-perks { grid-template-columns: 1fr; }
    .vbox { padding: 12px; }
    .vbox-close { top: -8px; right: -8px; }
}
