/* =====================================================
   MYPAGE STYLES - LoveSwitch
   마이페이지 전용 스타일
   ===================================================== */

/* Main Layout */
.mypage-main {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 80px;
}

.mypage-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.mypage-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Profile Card */
.profile-card {
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar i {
    width: 48px;
    height: 48px;
    color: white;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.profile-badges .badge i {
    width: 12px;
    height: 12px;
}

.badge-verified {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.badge-job {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

/* Sidebar Navigation */
.sidebar-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item i {
    width: 20px;
    height: 20px;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-nav .nav-item.active {
    background: rgba(244, 63, 94, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* =====================================================
   CONTENT AREA
   ===================================================== */
.mypage-content {
    min-width: 0;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 28px;
    height: 28px;
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Dashboard Sections */
.dashboard-section {
    margin-bottom: 32px;
}

.dashboard-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

/* Upcoming Events in Dashboard */
.upcoming-events .event-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.event-date {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.event-date .month {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.event-info {
    flex: 1;
}

.event-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.event-info p {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.event-info p i {
    width: 14px;
    height: 14px;
}

.event-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.event-status.confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.event-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* Activity List */
.activity-list {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(244, 63, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =====================================================
   EVENTS SECTION
   ===================================================== */
.event-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Event History Card */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-history-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.event-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-thumbnail i {
    width: 36px;
    height: 36px;
    color: white;
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.event-badge.upcoming {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.event-badge.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.event-badge.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.event-details h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.event-meta span i {
    width: 14px;
    height: 14px;
}

.event-payment {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-payment .amount {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.event-payment .status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-payment .status.paid {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.event-result {
    display: flex;
    gap: 16px;
}

.event-result span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.event-result span i {
    width: 16px;
    height: 16px;
}

.event-result .matches {
    color: var(--primary-color);
}

.event-result .rating {
    color: #fbbf24;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =====================================================
   VERIFICATION SECTION
   ===================================================== */
.verification-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.verification-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
}

.verification-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verification-icon i {
    width: 28px;
    height: 28px;
}

.verification-icon.verified {
    background: rgba(16, 185, 129, 0.2);
}

.verification-icon.verified i {
    color: #10b981;
}

.verification-icon.pending {
    background: rgba(107, 114, 128, 0.2);
}

.verification-icon.pending i {
    color: #6b7280;
}

.verification-info {
    flex: 1;
    min-width: 0;
}

.verification-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.verification-info h4 .optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.verification-info > p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.verification-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge i {
    width: 14px;
    height: 14px;
}

.status-badge.verified {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.pending {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.verified-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.verification-notice {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.verification-notice > i {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    flex-shrink: 0;
}

.verification-notice h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.verification-notice p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   PROFILE SECTION
   ===================================================== */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    padding: 28px;
}

.form-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

.form-input[readonly] {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.form-select {
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Interest Tags */
.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-checkbox {
    cursor: pointer;
}

.tag-checkbox input {
    display: none;
}

.tag-checkbox span {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag-checkbox:hover span {
    border-color: var(--primary-color);
}

.tag-checkbox input:checked + span {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

/* =====================================================
   SETTINGS SECTION
   ===================================================== */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-section {
    padding: 28px;
}

.settings-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.settings-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-item:first-of-type {
    padding-top: 0;
}

.settings-info label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-info p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.settings-item.danger .settings-info label {
    color: #ef4444;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    transition: all 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .verification-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .mypage-container {
        grid-template-columns: 1fr;
    }
    
    .mypage-sidebar {
        position: static;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        gap: 0;
    }
    
    .sidebar-nav .nav-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 12px 16px;
    }
    
    .sidebar-nav .nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
    
    .event-history-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-actions {
        flex-direction: row;
        width: 100%;
    }
    
    .event-actions .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .mypage-main {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .mypage-container {
        padding: 0 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .profile-card {
        padding: 24px 16px;
    }
    
    .form-section,
    .settings-section {
        padding: 20px;
    }
    
    .verification-card {
        flex-direction: column;
        text-align: center;
    }
    
    .verification-card .btn {
        width: 100%;
    }
    
    .verification-status {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .event-payment {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}
