/**
 * DJ Archive Page Styles — Neomorphism UI
 * PHP/markup değişmeden, mevcut tema tokenleri ile çalışır.
 * Tüm ekran boyutlarına uyumlu (320px → 2560px).
 */

:root {
    --dj-accent: var(--ferah-accent, #ff7a18);
    --dj-accent-2: var(--ferah-accent-2, #ff9500);
    --dj-bg: var(--ferah-bg, #0f1216);
    --dj-bg-secondary: var(--ferah-bg-secondary, #181c23);
    --dj-border: var(--ferah-border, #2a303b);
    --dj-text: var(--ferah-text, #e8eaed);
    --dj-text-muted: var(--ferah-text-muted, #8b93a3);
    --dj-radius-lg: var(--ferah-radius-lg, 20px);
    --dj-radius-sm: var(--ferah-radius-sm, 12px);

    /* Neomorphism katmanları */
    --dj-surface: color-mix(in srgb, var(--dj-bg-secondary) 88%, #fff 2%);
    --dj-surface-2: color-mix(in srgb, var(--dj-bg-secondary) 94%, #000 6%);
    --dj-light: color-mix(in srgb, var(--dj-bg-secondary) 70%, #ffffff 30%);
    --dj-shadow: color-mix(in srgb, var(--dj-bg) 40%, #000000 60%);

    --neu-out: 8px 8px 18px var(--dj-shadow), -8px -8px 18px color-mix(in srgb, var(--dj-light) 26%, transparent);
    --neu-out-sm: 4px 4px 10px var(--dj-shadow), -4px -4px 10px color-mix(in srgb, var(--dj-light) 22%, transparent);
    --neu-out-lg: 14px 14px 32px var(--dj-shadow), -12px -12px 28px color-mix(in srgb, var(--dj-light) 22%, transparent);
    --neu-in: inset 5px 5px 12px var(--dj-shadow), inset -5px -5px 12px color-mix(in srgb, var(--dj-light) 20%, transparent);
    --neu-in-sm: inset 3px 3px 7px var(--dj-shadow), inset -3px -3px 7px color-mix(in srgb, var(--dj-light) 18%, transparent);
    --dj-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ========== LAYOUT ========== */
.dj-archive-main {
    padding: clamp(16px, 3vw, 40px) clamp(12px, 3vw, 32px) 96px;
    background: var(--dj-bg);
}

.dj-archive-main .single-layout {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    display: grid;
    gap: clamp(18px, 2.4vw, 32px);
}

.dj-archive-main .single-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1100px) {
    .dj-archive-main .single-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }
}

.dj-archive-main .single-sidebar {
    background: var(--dj-surface);
    border-radius: var(--dj-radius-lg);
    box-shadow: var(--neu-out);
    padding: 20px;
}

.category-archive.dj-archive {
    min-width: 0;
}

/* ========== HERO ========== */
.dj-archive-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(22px, 3.4vw, 42px);
    margin-bottom: clamp(20px, 3vw, 34px);
    background: var(--dj-surface);
    border: 1px solid color-mix(in srgb, var(--dj-border) 55%, transparent);
    border-radius: calc(var(--dj-radius-lg) + 8px);
    box-shadow: var(--neu-out-lg);
    overflow: hidden;
}

.dj-archive-hero::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -160px;
    width: min(420px, 70vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--dj-accent) 26%, transparent), transparent 62%);
    filter: blur(4px);
    pointer-events: none;
    z-index: -1;
}

.dj-archive-hero__main,
.category-hero__main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 2vw, 26px);
    align-items: end;
    width: 100%;
}

@media (min-width: 900px) {
    .dj-archive-hero .category-hero__main {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.category-hero__eyebrow-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.category-hero__eyebrow,
.category-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--dj-surface-2);
    box-shadow: var(--neu-in-sm);
    color: var(--dj-text-muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.category-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dj-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--dj-accent) 22%, transparent);
    animation: djLivePulse 1.6s ease-in-out infinite;
}

.category-hero__count svg {
    color: var(--dj-accent);
}

.category-hero__title {
    margin: 0;
    font-size: clamp(26px, 4.6vw, 46px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.6px;
    color: var(--dj-text);
    text-shadow: 1px 1px 2px var(--dj-shadow), -1px -1px 1px color-mix(in srgb, var(--dj-light) 30%, transparent);
}

.category-hero__description {
    margin-top: 12px;
    max-width: 62ch;
    color: var(--dj-text-muted);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.7;
}

.dj-archive-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

/* ========== NEOMORPHIC BUTTONS ========== */
.single-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--dj-surface);
    box-shadow: var(--neu-out-sm);
    color: var(--dj-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow .22s var(--dj-ease), transform .22s var(--dj-ease), color .22s var(--dj-ease);
}

.single-hero-btn:hover,
.single-hero-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--neu-out);
    color: var(--dj-accent);
    outline: none;
}

.single-hero-btn:active {
    transform: translateY(0);
    box-shadow: var(--neu-in-sm);
}

.single-hero-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--dj-accent), var(--dj-accent-2));
    box-shadow: 6px 6px 16px var(--dj-shadow),
                -6px -6px 16px color-mix(in srgb, var(--dj-light) 20%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, .28);
}

.single-hero-btn--primary:hover,
.single-hero-btn--primary:focus-visible {
    color: #fff;
    box-shadow: 10px 10px 24px var(--dj-shadow),
                -8px -8px 20px color-mix(in srgb, var(--dj-light) 18%, transparent),
                0 0 0 1px color-mix(in srgb, var(--dj-accent) 45%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, .3);
}

.single-hero-btn--primary:active {
    box-shadow: inset 4px 4px 10px rgba(0, 0, 0, .35), inset -3px -3px 8px rgba(255, 255, 255, .15);
}

/* ========== GRID ========== */
.dj-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: clamp(14px, 2vw, 24px);
    margin-bottom: 34px;
}

/* ========== CARD ========== */
.dj-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--dj-surface);
    border: 1px solid color-mix(in srgb, var(--dj-border) 45%, transparent);
    border-radius: calc(var(--dj-radius-lg) + 4px);
    box-shadow: var(--neu-out);
    overflow: hidden;
    transition: box-shadow .26s var(--dj-ease), transform .26s var(--dj-ease);
}

.dj-card:hover,
.dj-card:focus-within {
    transform: translateY(-5px);
    box-shadow: var(--neu-out-lg);
}

.dj-card__photo-link {
    display: block;
    padding: 16px 16px 0;
    text-decoration: none;
}

.dj-card__photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: var(--dj-radius-lg);
    background: var(--dj-surface-2);
    box-shadow: var(--neu-in);
    overflow: hidden;
}

.dj-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform .5s var(--dj-ease), filter .3s var(--dj-ease);
}

.dj-card:hover .dj-card__photo img {
    transform: scale(1.06);
}

.dj-card__photo.is-live {
    box-shadow: var(--neu-in), 0 0 0 2px color-mix(in srgb, var(--dj-accent) 60%, transparent);
}

.dj-card__initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: clamp(38px, 8vw, 58px);
    font-weight: 800;
    color: color-mix(in srgb, var(--dj-text-muted) 70%, transparent);
    text-shadow: 2px 2px 4px var(--dj-shadow), -2px -2px 4px color-mix(in srgb, var(--dj-light) 26%, transparent);
}

.dj-card__live-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dj-accent), var(--dj-accent-2));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.dj-card__live-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: djLivePulse 1.2s ease-in-out infinite;
}

.dj-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 20px;
    flex: 1;
}

.dj-card__name {
    margin: 0;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 800;
    line-height: 1.25;
}

.dj-card__name a {
    color: var(--dj-text);
    text-decoration: none;
    transition: color .2s var(--dj-ease);
}

.dj-card__name a:hover {
    color: var(--dj-accent);
}

.dj-card__role {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--dj-accent);
}

.dj-card__program {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--dj-surface-2);
    box-shadow: var(--neu-in-sm);
    color: var(--dj-text-muted);
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dj-card__program svg {
    flex: 0 0 auto;
    color: var(--dj-accent);
}

/* ========== SOCIALS ========== */
.dj-card__socials,
.dj-single-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.dj-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dj-social__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dj-surface);
    box-shadow: var(--neu-out-sm);
    color: var(--dj-text-muted);
    text-decoration: none;
    transition: box-shadow .22s var(--dj-ease), transform .22s var(--dj-ease), color .22s var(--dj-ease);
}

.dj-social__item svg {
    width: 24px;
    height: 24px;
}

.dj-social__item:hover,
.dj-social__item:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--neu-out);
    outline: none;
}

.dj-social__item:active {
    transform: translateY(0);
    box-shadow: var(--neu-in-sm);
}

.dj-social--twitter:hover { color: #1da1f2; }
.dj-social--instagram:hover { color: #e1306c; }
.dj-social--facebook:hover { color: #1877f2; }
.dj-social--youtube:hover { color: #ff0000; }
.dj-social--tiktok:hover { color: #25f4ee; }
.dj-social--spotify:hover { color: #1db954; }
.dj-social--website:hover { color: var(--dj-accent); }

/* ========== CARD ACTION ========== */
.dj-card__actions {
    margin-top: auto;
    padding-top: 16px;
}

.dj-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--dj-surface);
    box-shadow: var(--neu-out-sm);
    color: var(--dj-text);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow .22s var(--dj-ease), color .22s var(--dj-ease), transform .22s var(--dj-ease);
}

.dj-card__link svg {
    transition: transform .22s var(--dj-ease);
}

.dj-card__link:hover,
.dj-card__link:focus-visible {
    color: var(--dj-accent);
    box-shadow: var(--neu-out);
    outline: none;
}

.dj-card__link:hover svg {
    transform: translateX(4px);
}

.dj-card__link:active {
    box-shadow: var(--neu-in-sm);
}

/* ========== PAGINATION ========== */
.dj-archive-pagination {
    display: flex;
    justify-content: center;
}

.dj-archive-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin: 0;
    list-style: none;
    border-radius: 999px;
    background: var(--dj-surface);
    box-shadow: var(--neu-out);
}

.dj-archive-pagination li {
    margin: 0;
}

.dj-archive-pagination a,
.dj-archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 50px;
    background: var(--dj-surface);
    box-shadow: var(--neu-out-sm);
    color: var(--dj-text-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow .2s var(--dj-ease), color .2s var(--dj-ease), transform .2s var(--dj-ease);
}

.dj-archive-pagination a:hover {
    transform: translateY(-2px);
    color: var(--dj-accent);
    box-shadow: var(--neu-out);
}

.dj-archive-pagination .current {
    color: #fff;
    background: linear-gradient(135deg, var(--dj-accent), var(--dj-accent-2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 4px 4px 12px var(--dj-shadow);
}

/* ========== EMPTY ========== */
.category-archive__empty {
    padding: clamp(32px, 6vw, 64px) 24px;
    text-align: center;
    border-radius: calc(var(--dj-radius-lg) + 4px);
    background: var(--dj-surface);
    box-shadow: var(--neu-in);
    color: var(--dj-text-muted);
}

.category-archive__empty h3 {
    margin: 0 0 8px;
    color: var(--dj-text);
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 800;
}

/* ========== ANIMATION ========== */
@keyframes djLivePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: .6; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .dj-archive-main {
        padding: 14px 12px 72px;
    }

    .dj-archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr));
        gap: 12px;
    }

    .dj-card__photo-link { padding: 10px 10px 0; }
    .dj-card__body { padding: 12px 12px 14px; gap: 6px; }
    .dj-card__name { font-size: 15px; }
    .dj-card__role { font-size: 12px; }
    .dj-social__item { width: 34px; height: 34px; }
    .dj-social__item svg { width: 24px; height: 24px; }
    .dj-archive-hero-actions .single-hero-btn { flex: 1 1 100%; }
}

@media (min-width: 1800px) {
    .dj-archive-main .single-layout { max-width: 1680px; }
}

@media (prefers-reduced-motion: reduce) {
    .dj-card,
    .dj-card__photo img,
    .dj-social__item,
    .single-hero-btn,
    .dj-card__link {
        transition: none;
    }

    .category-hero__dot,
    .dj-card__live-badge .dot {
        animation: none;
    }
}
