/* Universal Player Comparison */

.upc-dashboard {
    padding: 1rem;
    padding-bottom: 48px;
    max-width: 100%;
    margin: 0 auto;
    color: #ffffff;
    background-color: #1a1a1a;
    width: 100%;
    overflow-x: hidden;
}

.upc-header {
    display: none; /* hidden like the per-tab comparison headers */
}

.upc-grid {
    display: flex;
    gap: 24px;
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 48px;
}

/* ---- Individual slot ---- */
.upc-slot {
    flex: 0 0 calc(50% - 20px);
    min-width: 0;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin: 8px;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.upc-slot-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px 6px 0 0;
    text-align: center;
}

.upc-slot-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.upc-slot-body {
    padding: 8px;
}

/* ---- Level picker ---- */
.upc-level-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    gap: 20px;
    width: 100%;
    text-align: center;
}

.upc-picker-prompt {
    font-size: 1rem;
    color: #cccccc;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.upc-level-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.upc-level-card {
    background: linear-gradient(135deg, #2a2a2a, #222);
    border: 2px solid #444;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 28px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    min-width: 120px;
    text-align: center;
}

.upc-level-card:hover {
    border-color: var(--accent-color, #ff4d4d);
    background: linear-gradient(135deg, #333, #2a2a2a);
    transform: translateY(-2px);
    color: var(--accent-color, #ff4d4d);
}

/* ---- Loaded iframe area ---- */
.upc-slot-controls {
    display: flex;
    justify-content: flex-end;
    padding: 4px 4px 8px 4px;
}

.upc-remove-btn {
    background: transparent;
    border: 1px solid #666;
    border-radius: 4px;
    color: #aaa;
    font-size: 0.8rem;
    padding: 4px 12px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.upc-remove-btn:hover {
    border-color: var(--accent-color, #ff4d4d);
    color: var(--accent-color, #ff4d4d);
}

.upc-iframe {
    width: 100%;
    height: calc(100vh - 80px);
    border: 0;
    background: rgba(255, 255, 255, 0.02);
    display: block;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    transition: height 0.3s ease;
}

/* In-House embed renders at normal scale like all other tabs */

/* ---- Per-slot loading spinner ---- */
.upc-iframe-area {
    position: relative;
    min-height: calc(100vh - 160px);
}

.upc-iframe-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 160px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border-radius: 4px;
    z-index: 10;
}

.upc-spinner-ring {
    border: 10px solid rgba(212, 175, 37, 0.25);
    border-top: 10px solid #D4AF25;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: upc-spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.upc-spinner-text {
    color: #D4AF25;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

@keyframes upc-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .upc-grid {
        flex-direction: column;
    }

    .upc-slot {
        flex: none;
        width: 100%;
        margin: 8px 0;
    }

    .upc-iframe {
        height: calc(100vh - 80px);
    }
}
