/* =========================================================
   TicketPayGo Seating – Cinema Card Styles
   ========================================================= */

/* Grid */
.tpgseat-cinema-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 900px) {
    .tpgseat-cinema-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 500px) {
    .tpgseat-cinema-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Card */
.tpgseat-cinema-card {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    outline: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: box-shadow .25s ease, transform .25s ease;
}

.tpgseat-cinema-card:hover,
.tpgseat-cinema-card:focus {
    box-shadow: 0 6px 24px rgba(0,0,0,.28);
    transform: translateY(-2px);
}

/* Poster wrapper – 2:3 portrait ratio */
.tpgseat-cinema-poster-wrap {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
    background: #1a1a2e;
}

.tpgseat-cinema-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}

.tpgseat-cinema-card:hover .tpgseat-cinema-poster,
.tpgseat-cinema-card:focus .tpgseat-cinema-poster {
    transform: scale(1.06);
}

.tpgseat-cinema-poster-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Title bar */
.tpgseat-cinema-title {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* =========================================================
   Cinema meta inside booking modal
   ========================================================= */

.tpgseat-cinema-modal-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 10px 0 4px;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.tpgseat-cinema-age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    border-radius: 50%;
    border: 2px solid #333;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

.tpgseat-cinema-dot {
    color: #bbb;
    font-size: 12px;
}

.tpgseat-cinema-imdb-badge,
.tpgseat-cinema-rt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.tpgseat-cinema-imdb-badge {
    background: #f5c518;
    color: #000;
}

.tpgseat-cinema-imdb-badge:hover {
    background: #e6b800;
    color: #000;
}

.tpgseat-cinema-rt-badge {
    background: #fff;
    color: #d62a08;
    border: 1px solid #fa320a;
}

.tpgseat-cinema-rt-badge:hover {
    background: #fff5f3;
    color: #d62a08;
}

/* Votes: compact thumbs that sit inline in the meta chip row, next to ratings */
.tpgseat-cinema-votes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.tpgseat-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    transition: background .15s, border-color .15s, color .15s;
    line-height: 1;
}

.tpgseat-vote-btn:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.tpgseat-vote-btn.tpgseat-vote-active-up {
    background: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
}

.tpgseat-vote-btn.tpgseat-vote-active-down {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}

.tpgseat-vote-count {
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

/* Empty state */
.tpgseat-cinema-empty {
    color: #6b7280;
    font-style: italic;
}

/* =========================================================
   Admin settings page preview cards
   ========================================================= */

.tpgseat-cinema-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 600px;
}

.tpgseat-cinema-preview-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.tpgseat-cinema-preview-poster {
    aspect-ratio: 2 / 3;
}

.tpgseat-cinema-preview-title {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
