/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    padding: var(--spacing-md);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 모달 배경 (어두운 오버레이) */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

/* 모달 내용 박스 */
.modal-content {
    position: relative;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    z-index: 1001;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.modal-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    line-height: 1.6;
}

.modal-button {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-button:hover {
    opacity: 0.9;
}

.modal-button:active {
    opacity: 0.8;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    .modal {
        padding: var(--spacing-sm);
    }

    .modal-content {
        padding: var(--spacing-md);
        width: 95%;
    }

    .modal-title {
        font-size: 18px;
        margin-bottom: var(--spacing-sm);
    }

    .modal-message {
        font-size: 14px;
        margin-bottom: var(--spacing-md);
    }

    .modal-button {
        padding: 10px;
        font-size: 14px;
    }
}

/* 아주 작은 화면 (360px 이하) */
@media (max-width: 360px) {
    .modal-title {
        font-size: 16px;
    }

    .modal-message {
        font-size: 13px;
    }

    .modal-button {
        font-size: 13px;
    }
}
