/* 모달 시스템 스타일 */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    padding: 0;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

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

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-body {
    padding: 16px 24px;
    color: #6b7280;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-button {
    padding: 10px 16px;
    min-height: 40px;
    min-width: 80px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.modal-button.primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.modal-button.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-button.success {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.modal-button.success:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-button.danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.modal-button.danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-button.secondary {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.modal-button.secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 승리 모달 특별 스타일 */
.win-modal {
    text-align: center;
}

.win-modal .modal-body {
    padding: 24px;
}

.win-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.win-icon.victory {
    color: #10b981;
}

.win-icon.defeat {
    color: #ef4444;
}

.win-message {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.win-message.victory {
    color: #065f46;
}

.win-message.defeat {
    color: #7f1d1d;
}

.win-submessage {
    color: #6b7280;
    font-size: 14px;
}
