/* =========================================================
   LIVBEN - CARDS CSS
   Dosya: /public/assets/css/cards.css
   Amaç: Kart yüzeyleri, section kutuları, iç gövde, başlık alanları
========================================================= */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.card--soft {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.card--elevated {
    box-shadow: var(--shadow-sm);
}

.card--flat {
    box-shadow: none;
}

.card__body {
    position: relative;
    padding: 1.25rem;
}

.card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0;
}

.card__title {
    margin: 0;
    color: var(--text);
    font-size: var(--fs-18);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.card__subtitle {
    margin-top: 0.375rem;
    color: var(--muted);
    font-size: var(--fs-14);
    line-height: 1.55;
}

.card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    padding: 0 1.25rem 1.25rem;
}

.card__body + .card__footer {
    padding-top: 0.25rem;
}

.card__media {
    position: relative;
    background: var(--surface-soft);
    overflow: hidden;
}

.card__media img {
    width: 100%;
    height: auto;
    display: block;
}

.card__divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* ---------------------------------------------------------
   Ortak panel/kutu yapıları
--------------------------------------------------------- */
.panel {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--border);
}

.panel__head h2,
.panel__head h3 {
    margin: 0;
    font-size: var(--fs-18);
}

.panel__body {
    padding: 1.125rem;
}

.panel__foot {
    padding: 0 1.125rem 1.125rem;
}

/* ---------------------------------------------------------
   Room sayfası yardımcı yüzeyleri
--------------------------------------------------------- */
.room-page .card,
.room-page .panel {
    border-color: var(--room-border);
    border-radius: var(--room-radius);
    box-shadow: var(--room-shadow);
}

.room-page .card__body {
    padding: 1.25rem;
}

.room-page .room-join .card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.room-page .room-join .card__body {
    padding: 1.5rem;
}

/* ---------------------------------------------------------
   Bölüm yüzeyleri
--------------------------------------------------------- */
.section-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.section-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.7) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.section-card__head h2,
.section-card__head h3 {
    margin: 0;
    font-size: var(--fs-18);
    font-weight: 700;
}

.section-card__body {
    padding: 1.125rem;
}

.section-card__body--tight {
    padding: 0.875rem;
}

/* ---------------------------------------------------------
   Bilgi kartları
--------------------------------------------------------- */
.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.125rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
}

.stat-card__label {
    color: var(--muted);
    font-size: var(--fs-13);
    font-weight: 600;
    line-height: 1.4;
}

.stat-card__value {
    color: var(--text);
    font-size: var(--fs-20);
    font-weight: 700;
    line-height: 1.2;
}

.stat-card__meta {
    color: var(--muted);
    font-size: var(--fs-13);
    line-height: 1.45;
}

/* ---------------------------------------------------------
   Boş durum yüzeyleri
--------------------------------------------------------- */
.empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    min-height: 160px;
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}

.empty-card__title {
    color: var(--text);
    font-size: var(--fs-16);
    font-weight: 700;
}

.empty-card__text {
    max-width: 36ch;
    color: var(--muted);
    font-size: var(--fs-14);
    line-height: 1.55;
}

/* ---------------------------------------------------------
   Liste/kayıt kartları
--------------------------------------------------------- */
.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        background-color 0.18s ease;
}

.list-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-xs);
    transform: translateY(-1px);
}

.list-card__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.list-card__title {
    color: var(--text);
    font-size: var(--fs-15);
    font-weight: 700;
    line-height: 1.35;
}

.list-card__text {
    color: var(--muted);
    font-size: var(--fs-13);
    line-height: 1.45;
}

.list-card__side {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* ---------------------------------------------------------
   Room özel bölüm eşleşmeleri
--------------------------------------------------------- */
.room-chat,
.room-stage,
.room-people,
.room-gifts {
    position: relative;
    background: var(--room-surface);
    border: 1px solid var(--room-border);
    border-radius: var(--room-radius);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.room-chat__head,
.room-people__head,
.room-gifts__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--room-border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.75) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.room-chat__head h2,
.room-people__head h2,
.room-gifts__head h2 {
    margin: 0;
    font-size: var(--fs-18);
    font-weight: 700;
    line-height: 1.3;
}

.room-stage__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem 1rem;
    border-bottom: 1px solid var(--room-border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.75) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.room-stage__head h2 {
    margin: 0 0 0.3rem;
    font-size: var(--fs-20);
}

.room-stage__head p {
    margin: 0;
    color: var(--room-muted);
    font-size: var(--fs-14);
}

.room-stage__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.625rem;
}

/* ---------------------------------------------------------
   Chip zemini
--------------------------------------------------------- */
.room-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-height: 2rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: var(--fs-13);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.room-chip.is-live {
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.18);
    background: rgba(220, 38, 38, 0.08);
}

.room-chip.is-featured {
    color: #a16207;
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.12);
}

/* ---------------------------------------------------------
   Dar ekran
--------------------------------------------------------- */
@media (max-width: 992px) {
    .card__body,
    .panel__body,
    .section-card__body {
        padding: 1rem;
    }

    .room-page .room-join .card__body {
        padding: 1.125rem;
    }

    .room-stage__head,
    .room-chat__head,
    .room-people__head,
    .room-gifts__head {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .card__head,
    .card__footer,
    .panel__head,
    .section-card__head {
        flex-direction: column;
        align-items: stretch;
    }

    .room-stage__head {
        flex-direction: column;
        align-items: stretch;
    }

    .room-stage__actions {
        justify-content: stretch;
    }
}
