/* 프로필 페이지 스타일 */
.profile-page {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.profile-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.profile-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.profile-email {
    font-size: 16px;
    color: var(--text-secondary);
}

.profile-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.profile-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-info-item:last-child {
    border-bottom: none;
}

.profile-info-label {
    font-weight: 500;
    color: var(--text-primary);
}

.profile-info-value {
    color: var(--text-secondary);
    text-align: right;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.profile-button {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-button:hover {
    background-color: var(--hover-color);
}

.profile-button.primary {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.profile-button.primary:hover {
    opacity: 0.9;
}

.profile-button.danger {
    background-color: #fee;
    color: #c33;
    border-color: #fcc;
}

.profile-button.danger:hover {
    background-color: #fdd;
}

[data-theme="dark"] .profile-button.danger {
    background-color: #4a2020;
    color: #ff6b6b;
    border-color: #6a3030;
}

[data-theme="dark"] .profile-button.danger:hover {
    background-color: #5a2525;
}

.profile-button.secondary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.profile-button.secondary:hover {
    background-color: var(--hover-color);
}

/* 이용약관 모달 */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

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

.terms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.terms-modal-content {
    position: relative;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2001;
}

.terms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.terms-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.terms-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.terms-modal-close:hover {
    background-color: var(--hover-color);
}

.terms-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.terms-modal-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.terms-modal-body h3:first-child {
    margin-top: 0;
}

.terms-modal-body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.terms-modal-body ul, .terms-modal-body ol {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.terms-modal-body li {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.terms-modal-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

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

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

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    .profile-page {
        padding: var(--spacing-md);
    }

    .profile-header h2 {
        font-size: 22px;
    }

    .profile-email {
        font-size: 14px;
    }

    .profile-section {
        padding: var(--spacing-md);
    }

    .profile-section h3 {
        font-size: 16px;
    }

    .profile-info-label,
    .profile-info-value {
        font-size: 14px;
    }
}

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

    .profile-header {
        margin-bottom: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }

    .profile-header h2 {
        font-size: 20px;
    }

    .profile-email {
        font-size: 13px;
        word-break: break-all;
    }

    .profile-section {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }

    .profile-section h3 {
        font-size: 15px;
        margin-bottom: var(--spacing-sm);
    }

    .profile-info-item {
        flex-direction: column;
        gap: 4px;
        padding: var(--spacing-sm) 0;
    }

    .profile-info-label {
        font-size: 13px;
    }

    .profile-info-value {
        font-size: 13px;
        text-align: left;
        word-break: break-all;
    }

    .profile-button {
        padding: 10px;
        font-size: 13px;
    }
}

/* 아주 작은 화면 (360px 이하) */
@media (max-width: 360px) {
    .profile-header h2 {
        font-size: 18px;
    }

    .profile-email {
        font-size: 12px;
    }

    .profile-section h3 {
        font-size: 14px;
    }

    .profile-info-label,
    .profile-info-value {
        font-size: 12px;
    }

    .profile-button {
        font-size: 12px;
    }
}
