/* pairs.css */

.pairs-main {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
    text-align: center;
}

.pairs-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color, #fbbf24);
    margin-bottom: 8px;
}

.pairs-subtitle {
    color: var(--dark-text-muted, #94a3b8);
    margin-bottom: 30px;
    font-size: 1rem;
}

.pairs-board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /*gap: 10px;*/
    align-items: start;
}

.col-actors, .col-actresses, .col-center {
    display: flex;
    flex-direction: column;
    gap: 6px;    
    max-width: 334px;
    align-items: self-end;

}

.pairs-actor, .pairs-actress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: var(--dark-surface, #1e293b);
    border-radius: 12px;
    border: 2px solid #af3f3f69;
    cursor: move;
    transition: all 0.2s ease;
    min-height: 110px;
    min-width: 112px;
    user-select: none;
}

body:not(.dark-mode) .pairs-actor, 
body:not(.dark-mode) .pairs-actress {
    background: white;
    border-color: #e2e8f0;
}

.pairs-actor {
    cursor: no-drop;
}

.pairs-actress:hover {
    border-color: var(--accent-color, #fbbf24);
    transform: scale(1.03);
}

.pairs-actress.selected {
    border-color: var(--accent-color, #fbbf24);
    background: rgba(251,191,36,0.1);
}

.pairs-actress.dragging { opacity: 0.3; }

.pairs-photo {
    width: 70px;
    height: 70px;
    border-radius: 16%;
    object-fit: cover;
    object-position: top;
    border: 2px solid rgba(255,255,255,0.1);
}

.pairs-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.pairs-slot-row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 110px;
}

.pairs-heart {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pairs-slot {
    min-width: 112px;
    min-height: 115px;
    border: 2px dashed rgb(200 203 81 / 89%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.03);
    padding: 6px;
    gap: 6px;
}

body:not(.dark-mode) .pairs-slot {
    background: rgba(0,0,0,0.02);
}

.pairs-slot:hover, .pairs-slot.drag-over {
    border-color: var(--accent-color, #fbbf24);
    background: rgba(251,191,36,0.08);
}

.pairs-slot.filled { border-style: solid; border-color: rgba(255,255,255,0.15); }
body:not(.dark-mode) .pairs-slot.filled { border-color: rgba(0,0,0,0.1); }
.pairs-slot.correct { border-color: #0d533c !important; background: rgb(16 185 129 / 51%) !important;}
.pairs-slot.wrong   { border-color: #ef4444 !important; background: rgb(239 68 68 / 56%) !important;}

.pairs-check-btn {
    margin: 25px auto 0;
    display: block;
    background: var(--accent-color, #fbbf24);
    color: #000;
    border: none;
    padding: 14px 40px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}

.pairs-check-btn:hover { opacity: 0.9; transform: translateY(-2px); }

.pairs-result {
    margin-top: 25px;
    padding: 25px;
    background: var(--dark-surface, #1e293b);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

body:not(.dark-mode) .pairs-result {
    background: white;
    border-color: #bdbdbd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pairs-result-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color, #fbbf24);
    margin-bottom: 10px;
}

.pairs-result-msg {
    color: var(--dark-text-muted, #94a3b8);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

body:not(.dark-mode) .pairs-result-msg {
    color: #475569;
}

.pairs-restart-btn {
    display: inline-block;
    background: var(--accent-color, #fbbf24);
    color: #000;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
    margin: 5px;
}

.pairs-restart-btn:hover { opacity: 0.9; transform: translateY(-2px); }

.pairs-back-btn {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    color: inherit;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.2s;
    margin: 5px;
    text-decoration: none;
}

body:not(.dark-mode) .pairs-back-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.pairs-back-btn:hover { border-color: var(--accent-color, #fbbf24); background: rgba(251,191,36,0.08); }

.hidden { display: none !important; }

.question-circle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 60px;
            height: 60px;
            background-color: #fbbf24; /* Ваш колір акценту */
            color: #1e293b;
            border-radius: 50%;
            font-size: 40px;
            font-weight: bold;
            box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
        }

@keyframes heartPop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.4); }
    100% { transform: scale(1); opacity: 1; }
}

.pairs-heart {
    transition: all 0.3s ease;
    display: inline-block;
}

.heart-reveal {
    animation: heartPop 0.5s ease forwards;
}

@media (max-width: 600px) {
    .pairs-board { gap: 5px; }
    .pairs-photo { width: 52px; height: 52px; }
    .pairs-name { font-size: 0.62rem; }
    .pairs-slot { width: 68px; min-height: 95px; }
    .pairs-actor, .pairs-actress, .pairs-slot { 
        min-height: 95px;
        min-width: 95px; 
        padding: 6px; 
    }
    .pairs-heart { font-size: 0.9rem; }
    .pairs-title { font-size: 1.4rem; }
    .pairs-slot-row {
        gap: 0;
        min-height: 0;
    }
}
