/* 설정 모달 스타일 */

.modal-content-settings {
    background: rgba(26, 10, 42, 0.95);
    padding: clamp(25px, 4vw, 40px);
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.8);
    text-align: left;
    max-width: min(600px, 90vw);
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
    color: #e0e0e0;
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    position: relative;
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: layout style paint;
}

#settings-modal.show .modal-content-settings {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content-settings h3 {
    font-family: 'Playfair Display', serif;
    color: #FFD700;
    font-size: clamp(1.6em, 4vw, 2em);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.4);
    text-align: center;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.settings-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.settings-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2em;
    color: #FFD700;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.settings-icon {
    font-size: 1.1em;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.settings-option:hover {
    background-color: rgba(255, 215, 0, 0.1);
}

.settings-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #FFD700;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.settings-option input[type="radio"]:checked + .radio-custom {
    background-color: #FFD700;
}

.settings-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #1a0a2a;
    border-radius: 50%;
}

.option-text {
    color: #e0e0e0;
    font-size: 14px;
    user-select: none;
}

/* 토글 스위치 스타일 */
.toggle-option {
    justify-content: space-between;
    align-items: center;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #FFD700;
    border-color: #FFD700;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(26px);
    background-color: #1a0a2a;
}

/* 설정 버튼 스타일 */
.settings-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    background-color: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.settings-button:hover {
    background-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

.settings-button.save-button {
    background-color: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.settings-button.save-button:hover {
    background-color: rgba(34, 197, 94, 0.3);
}

.settings-button.cancel-button {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.settings-button.cancel-button:hover {
    background-color: rgba(239, 68, 68, 0.3);
}

.settings-button .button-icon {
    font-size: 14px;
}

/* 정보 섹션 스타일 */
.settings-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-info p {
    margin: 0;
    font-size: 13px;
    color: #b0b0b0;
}

.settings-info strong {
    color: #FFD700;
}

/* 모달 버튼 영역 */
.modal-content-settings .modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* 메시지 스타일 */
.settings-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.settings-message.success {
    background-color: rgba(34, 197, 94, 0.9);
    color: white;
    border: 1px solid #22c55e;
}

.settings-message.error {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .modal-content-settings {
        padding: 20px;
        max-height: 85vh;
    }
    
    .settings-section {
        padding: 15px;
    }
    
    .settings-buttons {
        flex-direction: column;
    }
    
    .settings-button {
        min-width: auto;
    }
    
    .modal-content-settings .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content-settings {
        padding: 15px;
        width: 95%;
    }
    
    .settings-section {
        padding: 12px;
    }
    
    .settings-section-title {
        font-size: 1.1em;
    }
    
    .option-text {
        font-size: 13px;
    }
    
    .settings-button {
        font-size: 12px;
        padding: 8px 12px;
    }
}