/**
 * Yayıncılar listesi — premium sayfa
 */

.page-yayincilar {
    --yp-accent: #7c8cff;
    --yp-accent-2: #22d3ee;
    --yp-live: #ef4444;
    --yp-card: #ffffff;
    --yp-bg: #f4f6fb;
    --yp-border: rgba(148, 163, 184, 0.22);
    --yp-text: #0f172a;
    --yp-muted: #64748b;
    --yp-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

:root[data-theme="dark"] .page-yayincilar,
body.dark .page-yayincilar {
    --yp-card: rgba(18, 27, 46, 0.96);
    --yp-bg: #0b1220;
    --yp-border: rgba(148, 163, 184, 0.14);
    --yp-text: #f8fafc;
    --yp-muted: #94a3b8;
    --yp-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

.page-yayincilar .container-xxl {
    max-width: 1320px;
}

/* Hero */
.yp-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--yp-border);
    background: linear-gradient(135deg, rgba(124, 140, 255, 0.12), rgba(34, 211, 238, 0.08)), linear-gradient(180deg, var(--yp-card), var(--yp-bg));
    box-shadow: var(--yp-shadow);
    margin-bottom: 24px;
}

.yp-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.55;
}

.yp-hero__glow--a {
    width: 280px;
    height: 280px;
    top: -60px;
    left: -40px;
    background: rgba(124, 140, 255, 0.35);
    animation: ypFloat 9s ease-in-out infinite;
}

.yp-hero__glow--b {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -20px;
    background: rgba(34, 211, 238, 0.25);
    animation: ypFloat 9s ease-in-out infinite reverse;
}

@keyframes ypFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -8px); }
}

.yp-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 32px 34px;
}

.yp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yp-accent);
}

.yp-hero__title {
    margin: 10px 0 8px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--yp-text);
    line-height: 1.15;
}

.yp-hero__sub {
    margin: 0;
    max-width: 520px;
    font-size: 15px;
    color: var(--yp-muted);
    line-height: 1.55;
}

.yp-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.yp-stat {
    min-width: 88px;
    padding: 12px 16px;
    border-radius: 16px;
    background: var(--yp-card);
    border: 1px solid var(--yp-border);
    text-align: center;
}

.yp-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--yp-text);
    line-height: 1.1;
}

.yp-stat span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--yp-muted);
}

.yp-stat--live strong { color: var(--yp-live); }

.yp-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.yp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.yp-btn--primary {
    background: linear-gradient(135deg, var(--yp-accent), #6366f1);
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(124, 140, 255, 0.35);
}

.yp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(124, 140, 255, 0.45);
    color: #fff !important;
}

.yp-btn--ghost {
    background: transparent;
    border: 1px solid var(--yp-border);
    color: var(--yp-muted) !important;
}

.yp-btn--ghost:hover {
    border-color: var(--yp-accent);
    color: var(--yp-accent) !important;
}

/* Toolbar */
.yp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--yp-card);
    border: 1px solid var(--yp-border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.yp-search {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 46px;
    border-radius: 12px;
    background: var(--yp-bg);
    border: 1px solid var(--yp-border);
}

.yp-search i { color: var(--yp-muted); font-size: 18px; }

.yp-search__input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--yp-text);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.yp-search__input::placeholder { color: var(--yp-muted); }

.yp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yp-filter {
    border: 1px solid var(--yp-border);
    background: var(--yp-bg);
    color: var(--yp-muted);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
}

.yp-filter:hover,
.yp-filter.is-active {
    border-color: var(--yp-accent);
    background: rgba(124, 140, 255, 0.1);
    color: var(--yp-accent);
}

/* Sections */
.yp-section {
    margin-bottom: 32px;
}

.yp-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.yp-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yp-muted);
}

.yp-section__title {
    margin: 6px 0 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--yp-text);
}

.yp-section__count {
    font-size: 13px;
    font-weight: 700;
    color: var(--yp-muted);
}

/* Horizontal rail */
.yp-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.yp-rail::-webkit-scrollbar { height: 6px; }
.yp-rail::-webkit-scrollbar-thumb {
    background: rgba(124, 140, 255, 0.35);
    border-radius: 999px;
}

.yp-rail__item {
    flex: 0 0 min(280px, 78vw);
    scroll-snap-align: start;
}

/* Grid */
.yp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* Cards */
.yp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--yp-card);
    border: 1px solid var(--yp-border);
    box-shadow: var(--yp-shadow);
    color: var(--yp-text) !important;
    text-decoration: none !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    animation: ypCardIn 0.5s ease both;
}

.yp-grid__item:nth-child(2) .yp-card { animation-delay: 0.04s; }
.yp-grid__item:nth-child(3) .yp-card { animation-delay: 0.08s; }
.yp-grid__item:nth-child(4) .yp-card { animation-delay: 0.12s; }

@keyframes ypCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.yp-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 140, 255, 0.45);
    box-shadow: 0 24px 48px rgba(124, 140, 255, 0.14);
}

.yp-card--compact {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.yp-card__cover {
    position: relative;
    height: 100px;
    background: linear-gradient(135deg, rgba(124, 140, 255, 0.2), rgba(34, 211, 238, 0.12)), var(--yp-bg);
    background-size: cover;
    background-position: center;
}

.yp-card--twitch .yp-card__cover {
    background-color: #9146ff22;
}

.yp-card--kick .yp-card__cover {
    background-color: #53fc1822;
}

.yp-card--youtube .yp-card__cover {
    background-color: #ff000022;
}

.yp-card__live {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    background: rgba(239, 68, 68, 0.92);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.yp-card__live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: ypPulse 1.4s ease infinite;
}

@keyframes ypPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.yp-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
}

.yp-card__badge--sponsor {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.yp-card__badge--popular {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.yp-card__body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 18px;
}

.yp-card__avatar {
    position: absolute;
    top: -34px;
    left: 16px;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid var(--yp-card);
    background: var(--yp-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--yp-text);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.yp-card.is-live .yp-card__avatar {
    box-shadow: 0 0 0 2px var(--yp-live), 0 8px 20px rgba(239, 68, 68, 0.2);
}

.yp-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yp-card__meta {
    padding-top: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.yp-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.yp-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    color: var(--yp-text);
    line-height: 1.3;
}

.yp-card__platform {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.yp-card--twitch .yp-card__platform {
    color: #9146ff;
    background: rgba(145, 70, 255, 0.12);
}

.yp-card--kick .yp-card__platform {
    color: #16a34a;
    background: rgba(83, 252, 24, 0.12);
}

.yp-card--youtube .yp-card__platform {
    color: #dc2626;
    background: rgba(255, 0, 0, 0.1);
}

.yp-card__handle {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--yp-muted);
}

.yp-card__bio {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--yp-muted);
    flex: 1;
}

.yp-card--compact .yp-card__bio { display: none; }

.yp-card__stats {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--yp-muted);
}

.yp-card__stats i {
    margin-right: 4px;
    opacity: 0.85;
}

.yp-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 800;
    color: var(--yp-accent);
    transition: gap 0.18s ease;
}

.yp-card:hover .yp-card__cta { gap: 10px; }

.yp-card--compact .yp-card__cover { height: 80px; }
.yp-card--compact .yp-card__avatar {
    width: 56px;
    height: 56px;
    top: -28px;
}

.yp-card--compact .yp-card__meta { padding-top: 32px; }
.yp-card--compact .yp-card__cta { margin-top: 10px; }

/* Empty + pagination */
.yp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    border-radius: 20px;
    border: 1px dashed var(--yp-border);
    color: var(--yp-muted);
}

.yp-empty i {
    font-size: 2.5rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 12px;
}

.yp-alert { border-radius: 14px; margin-bottom: 20px; }

.yp-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.yp-pagination .pagination {
    gap: 6px;
}

.yp-pagination .page-link {
    border-radius: 10px;
    border-color: var(--yp-border);
    color: var(--yp-text);
}

.yp-pagination .page-item.active .page-link {
    background: var(--yp-accent);
    border-color: var(--yp-accent);
}

@media (max-width: 767.98px) {
    .yp-hero__inner {
        padding: 24px 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .yp-hero__actions { min-width: 0; }

    .yp-toolbar { flex-direction: column; align-items: stretch; }

    .yp-grid {
        grid-template-columns: 1fr;
    }
}
