/* ===== Family Game - Modals ===== */

/* Alert overlay */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.alert-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.alert-modal {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #4a4a6a;
    border-radius: 20px;
    padding: 28px 32px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 0 30px rgba(74, 74, 106, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.alert-overlay.show .alert-modal {
    transform: scale(1);
}

.alert-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.alert-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
}

.alert-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.5;
    white-space: pre-line;
}

/* Confirm overlay */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.confirm-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.confirm-modal {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #4a4a6a;
    border-radius: 20px;
    padding: 28px 32px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 0 30px rgba(74, 74, 106, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.confirm-overlay.show .confirm-modal {
    transform: scale(1);
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: confirmPulse 1.5s ease-in-out infinite;
}

.confirm-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
}

.confirm-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.5;
    white-space: pre-line;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.confirm-btn:active {
    transform: scale(0.95);
}

.confirm-btn.yes {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    color: white;
}

.confirm-btn.no {
    background: linear-gradient(145deg, #555, #333);
    color: white;
}

.confirm-btn.ok {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
}

.confirm-btn:hover {
    transform: translateY(-2px);
}

/* Alert button (for simple alerts) */
.alert-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    transition: all 0.2s;
}

.alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}
