/* ============================================================
   ARTISTS PAGE — Photo-forward editorial roster
   ============================================================ */

@font-face {
    font-family: 'Delight';
    src: url('../Assets/delight-font-family/delight-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.artists-page {
    background: #0d0d10;
    color: #fff;
    min-height: 100vh;
}

.artists-main {
    display: block;
    padding: 0;
}

/* ── Transparent Header override ──────────────────────────── */
.artists-page .header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: transparent;
    height: 64px;
    padding: 0 2rem;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.artists-page .header.scrolled {
    position: fixed;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(178, 120, 255, 0.15);
}
@media (max-width: 768px) {
    .artists-page .header { padding: 0 1rem; height: 60px; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.artists-hero {
    position: relative;
    min-height: 52vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    overflow: hidden;
}

.artists-hero__bg {
    position: absolute;
    inset: -5%;
    background: url('../images/background-InDevelopment.png') center/cover no-repeat;
    filter: brightness(0.35) saturate(0.6);
    transition: transform 0.1s linear;
}

.artists-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(13,13,16,0.1) 0%,
        rgba(13,13,16,0.4) 50%,
        rgba(13,13,16,1) 100%
    );
}

.artists-hero__content {
    position: relative;
    z-index: 2;
    padding: 72px 4rem 0;
    max-width: 800px;
}

.artists-hero__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B278FF;
    margin-bottom: 0.75rem;
}

.artists-hero__title {
    font-family: 'Delight', 'Inter', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 1rem;
}

.artists-accent {
    background: linear-gradient(135deg, #B278FF, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.artists-hero__sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 480px;
    margin: 0;
}

/* ── Filter Bar ────────────────────────────────────────────── */
.artists-filter-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 13, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.9rem 0;
}

.artists-filter-bar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.artists-type-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    flex: 1;
}

.artists-chip {
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.artists-chip:hover {
    border-color: rgba(178, 120, 255, 0.4);
    color: #fff;
}
.artists-chip--active {
    background: rgba(178, 120, 255, 0.15);
    border-color: rgba(178, 120, 255, 0.5);
    color: #B278FF;
    font-weight: 600;
}
.artists-chip--buchbar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.artists-chip--buchbar.artists-chip--active .buchbar-dot { background: #22c55e; }
.buchbar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.45);
    flex-shrink: 0;
}

/* ── Date availability filter ────────────────────────────── */
.artists-date-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.artists-date-wrap > i {
    position: absolute;
    left: 0.8rem;
    color: rgba(102, 255, 0, 0.5);
    font-size: 0.8rem;
    pointer-events: none;
}
.artists-date-input {
    background: rgba(102, 255, 0, 0.06);
    border: 1px solid rgba(102, 255, 0, 0.2);
    border-radius: 100px;
    color: #fff;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem 0.4rem 2.2rem;
    width: 160px;
    outline: none;
    transition: border-color 0.2s;
    color-scheme: dark;
}
.artists-date-input:focus { border-color: rgba(102, 255, 0, 0.5); }
.artists-date-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    cursor: pointer;
    flex-shrink: 0;
}
.artists-date-clear:hover { background: rgba(255,255,255,0.18); color: #fff; }

.artists-search-wrap {
    position: relative;
    flex-shrink: 0;
}
.artists-search-wrap i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    pointer-events: none;
}
.artists-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #fff;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem 0.4rem 2.2rem;
    width: 220px;
    transition: border-color 0.2s;
    outline: none;
}
.artists-search-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.artists-search-input:focus { border-color: rgba(178, 120, 255, 0.4); }

/* ── Grid Section ──────────────────────────────────────────── */
.artists-grid-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.artists-count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

/* Loading */
.artists-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 6rem 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.9rem;
}
.loading-dots { display: flex; gap: 6px; }
.loading-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(178, 120, 255, 0.5);
    animation: dotBounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Grid */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Empty */
.artists-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 6rem 0;
    color: rgba(255, 255, 255, 0.25);
}
.artists-empty i { font-size: 2.5rem; opacity: 0.4; }
.artists-empty p { font-size: 0.95rem; margin: 0; }
.artists-empty.is-hidden { display: none; }

/* ── Artist Card ───────────────────────────────────────────── */
.artist-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #1a1a1e;
    cursor: pointer;
    group: true;
}

.artist-card__photo-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.artist-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.artist-card:hover .artist-card__img {
    transform: scale(1.05);
}

/* Placeholder when no image */
.artist-card__placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
}

/* Gradient overlay at bottom */
.artist-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.4) 45%,
        transparent 70%
    );
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Buchbar badge */
.artist-card__buchbar {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 100px;
    padding: 0.2rem 0.55rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #22c55e;
    text-transform: uppercase;
}
.artist-card__buchbar-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
    animation: buchbarPulse 2s ease-in-out infinite;
}
@keyframes buchbarPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Info at bottom */
.artist-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.artist-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.artist-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.artist-card__type {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #B278FF;
    background: rgba(178, 120, 255, 0.12);
    border: 1px solid rgba(178, 120, 255, 0.2);
    border-radius: 100px;
    padding: 0.15rem 0.5rem;
}

.artist-card__city {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.artist-card__city i { font-size: 0.6rem; }

/* CTAs — hidden by default, shown on hover */
.artist-card__actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.artist-card:hover .artist-card__actions {
    opacity: 1;
    transform: translateY(0);
}

.artist-card__btn {
    flex: 1;
    display: block;
    padding: 0.5rem 0;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    line-height: 1.6;
}
.artist-card__btn:hover { opacity: 0.82; }
.artist-card__btn--profile {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: #fff;
}
.artist-card__btn--book {
    background: linear-gradient(135deg, #B278FF, #7C3AED);
    color: #fff;
}

/* ── Booking Popup ──────────────────────────────────────────── */
.booking-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.booking-popup-overlay--visible {
    opacity: 1;
    pointer-events: all;
}

.booking-popup {
    background: #18181c;
    border: 1px solid rgba(178, 120, 255, 0.18);
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: popupSlide 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes popupSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.booking-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0;
}
.booking-popup__artist {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.booking-popup__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(178, 120, 255, 0.3);
}
.booking-popup__pre {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B278FF;
}
.booking-popup__name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.1rem;
}
.booking-popup__close {
    background: rgba(255, 255, 255, 0.07);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.booking-popup__close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.booking-popup__form {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.booking-popup__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.booking-popup__field label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.booking-popup__chars { color: rgba(255, 255, 255, 0.25); font-weight: 400; }
.booking-popup__field input,
.booking-popup__field textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.88rem;
    padding: 0.65rem 0.9rem;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}
.booking-popup__field input:focus,
.booking-popup__field textarea:focus { border-color: rgba(178, 120, 255, 0.45); }
.booking-popup__field input::placeholder,
.booking-popup__field textarea::placeholder { color: rgba(255, 255, 255, 0.2); }
.booking-popup__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.booking-popup__actions {
    display: flex;
    gap: 0.6rem;
    padding-top: 0.25rem;
}
.booking-popup__btn {
    flex: 1;
    padding: 0.7rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: opacity 0.2s;
    font-family: inherit;
}
.booking-popup__btn--cancel {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.6);
}
.booking-popup__btn--submit {
    background: linear-gradient(135deg, #B278FF, #7C3AED);
    color: #fff;
    flex: 2;
}
.booking-popup__btn:hover { opacity: 0.85; }
.booking-popup__btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Login prompt (non-Pro users) ───────────────────────────── */
.artists-login-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.4rem;
}
.artists-login-hint a { color: #B278FF; text-decoration: none; }
.artists-login-hint a:hover { text-decoration: underline; }

/* ── Toast ───────────────────────────────────────────────────── */
.artists-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #1e1e24;
    border: 1px solid rgba(178, 120, 255, 0.25);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: toastIn 0.3s ease both;
    white-space: nowrap;
}
.artists-toast i { color: #22c55e; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .artists-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .artists-hero__content { padding: 0 1.5rem; }
    .artists-hero__title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
    .artists-filter-bar__inner { padding: 0 1rem; gap: 0.75rem; }
    .artists-search-input { width: 160px; }
    .artists-grid-section { padding: 1.5rem 1rem 4rem; }
    .artists-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    /* Always show actions on mobile (no hover) */
    .artist-card__actions { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
    .artists-hero { min-height: 44vh; padding-bottom: 3rem; }
    .booking-popup__row { grid-template-columns: 1fr; }
    .artists-search-input { width: 100%; }
    .artists-filter-bar__inner { flex-direction: column; align-items: stretch; }
    .artists-search-wrap { width: 100%; }
    .artists-search-wrap .artists-search-input { width: 100%; }
}

/* ── Artist Card Rating ──────────────────────────────────── */
.artist-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    color: #f59e0b;
    margin-left: 6px;
}
.artist-card__rating i { font-size: 0.7rem; }
.artist-card__rating-count { color: rgba(255,255,255,0.45); font-size: 0.7em; }
