/* Modern Luxury Dashboard Theme */
:root {
    --bg-primary: rgba(20, 20, 20, 0.6);
    --bg-secondary: rgba(30, 30, 30, 0.4);
    --bg-tertiary: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.15);
    --primary-color: #5599ff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
    --radius-md: 12px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-backdrop: blur(16px) saturate(180%);
}

body {
    background-color: #0a0a0a;
    background-image: url('../images/bg_mypage.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

/* Fix for white overlay */
.main-container {
    background: transparent !important;
}

/* Header Dark Mode Override */
.main-header {
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.main-header .menu-toggle {
    color: #ffffff !important;
}

.mypage-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 32px 24px;
    min-height: 600px;
    /* Prevent footer jumping on short tabs */
    flex: 1;
    /* Ensure it fills space */
}

.user-info-section,
.history-section,
.favorites-section {
    margin-bottom: 32px;
}

.user-info-section h2,
.history-section h2,
.favorites-section h2,
.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-item .value {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.history-list,
.favorites-list,
.bookmarks-grid,
.compare-grid,
.presets-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.history-item,
.favorite-item,
.product-card {
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    transition: all 0.3s ease;
}

.history-item:hover,
.favorite-item:hover,
.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

/* Statistics Dashboard (New) */
.statistics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    text-shadow: 0 0 10px rgba(85, 153, 255, 0.3);
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Keywords List */
.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.2s;
}

.keyword-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}