/* 菜籽游x纵流社群平台 - 主样式文件 */
/* 设计风格：清爽简约现代UI风格 */

:root {
    /* 颜色系统 - 清爽简约风格 */
    --primary-color: #667eea;
    --primary-light: #a3bffa;
    --primary-dark: #5a67d8;
    
    --secondary-color: #764ba2;
    --secondary-light: #b794f4;
    --secondary-dark: #6b46c1;
    
    /* 中性色 - 简约现代 */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;
    
    /* 功能色 */
    --success-color: #10b981;
    --success-light: #a7f3d0;
    --danger-color: #ef4444;
    --danger-light: #fecaca;
    --warning-color: #f59e0b;
    --warning-light: #fde68a;
    --info-color: #3b82f6;
    --info-light: #93c5fd;
    
    /* 阴影系统 - 简约现代 */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 圆角系统 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* 间距系统 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* 字体系统 */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    
    /* 过渡动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* 布局变量 */
    --sidebar-width: 280px;
    --header-height: 64px;
    --container-max-width: 1200px;
    
    /* Z-index 层级 */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* 暗色主题 */
[data-theme="dark"] {
    --white: #111827;
    --gray-50: #1f2937;
    --gray-100: #374151;
    --gray-200: #4b5563;
    --gray-300: #6b7280;
    --gray-400: #9ca3af;
    --gray-500: #d1d5db;
    --gray-600: #e5e7eb;
    --gray-700: #f3f4f6;
    --gray-800: #f9fafb;
    --gray-900: #ffffff;
    --black: #ffffff;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

/* 侧边栏布局容器 */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ==================== */
/* 侧边栏样式 - 清爽简约 */
/* ==================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

[data-theme="dark"] .sidebar {
    background: var(--gray-900);
    border-right-color: var(--gray-800);
}

/* 侧边栏顶部 - 用户头像区域 */
.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

[data-theme="dark"] .sidebar-header {
    border-bottom-color: var(--gray-800);
}

.user-avatar-container {
    position: relative;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.user-avatar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
}

[data-theme="dark"] .user-avatar-dropdown {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
}

.user-avatar-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .dropdown-item {
    color: var(--gray-300);
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--gray-700);
}

.dropdown-item.logout {
    color: var(--danger-color);
}

.dropdown-item.logout:hover {
    background: var(--danger-light);
    color: var(--danger-color);
}

[data-theme="dark"] .dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* 侧边栏导航 */
.sidebar-nav {
    flex: 1;
    padding: var(--spacing-lg) 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--gray-600);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

[data-theme="dark"] .nav-item {
    color: var(--gray-400);
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--primary-color);
    padding-left: calc(var(--spacing-lg) + 4px);
}

[data-theme="dark"] .nav-item:hover {
    background: var(--gray-800);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.nav-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-badge {
    margin-left: auto;
    background: var(--danger-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* 侧边栏底部 */
.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

[data-theme="dark"] .sidebar-footer {
    border-top-color: var(--gray-800);
}

.site-info {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--spacing-sm);
}

[data-theme="dark"] .site-info {
    color: var(--gray-400);
}

.theme-toggle {
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    padding: var(--spacing-sm);
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .theme-toggle {
    background: var(--gray-800);
    color: var(--gray-300);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(15deg);
}

/* ==================== */
/* 主内容区样式 */
/* ==================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--gray-50);
    transition: margin-left var(--transition-normal);
}

[data-theme="dark"] .main-content {
    background: var(--gray-900);
}

.content-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-xl);
}

/* 页面标题区域 */
.page-header {
    margin-bottom: var(--spacing-2xl);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

[data-theme="dark"] .page-title {
    color: var(--gray-100);
}

.page-description {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 600px;
}

[data-theme="dark"] .page-description {
    color: var(--gray-400);
}

/* ==================== */
/* 团广场页面样式 */
/* ==================== */
.community-section {
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

[data-theme="dark"] .section-title {
    color: var(--gray-200);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

/* 团列表网格 */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

/* 团卡片 */
.community-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

[data-theme="dark"] .community-card {
    background: var(--gray-800);
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* 团封面轮播 */
.community-cover {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.cover-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.cover-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-normal);
    background-size: cover;
    background-position: center;
}

.cover-slide.active {
    opacity: 1;
}

.cover-indicators {
    position: absolute;
    bottom: var(--spacing-sm);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
}

.cover-indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cover-indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

.community-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.community-badge.joined {
    background: var(--success-color);
}

.community-badge.created {
    background: var(--secondary-color);
}

/* 团卡片内容 */
.community-content {
    padding: var(--spacing-lg);
}

.community-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .community-name {
    color: var(--gray-100);
}

.community-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

[data-theme="dark"] .community-description {
    color: var(--gray-400);
}

.community-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--gray-500);
}

[data-theme="dark"] .community-meta {
    color: var(--gray-500);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.meta-item i {
    font-size: 0.875rem;
}

/* 团成果缩略图 */
.community-achievements {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: var(--spacing-xs);
}

.achievement-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--gray-200);
    transition: all var(--transition-fast);
}

[data-theme="dark"] .achievement-thumb {
    border-color: var(--gray-700);
}

.achievement-thumb:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* 团卡片操作按钮 */
.community-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ==================== */
/* 按钮样式系统 */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: var(--success-color);
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--danger-color);
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.75rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==================== */
/* 私聊页面样式 */
/* ==================== */
.chat-container {
    display: flex;
    height: calc(100vh - var(--header-height) - var(--spacing-xl) * 2);
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .chat-container {
    background: var(--gray-800);
}

/* 私聊联系人列表 */
.chat-sidebar {
    width: 320px;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
}

[data-theme="dark"] .chat-sidebar {
    border-right-color: var(--gray-700);
    background: var(--gray-900);
}

.chat-search {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
}

[data-theme="dark"] .chat-search {
    border-bottom-color: var(--gray-700);
}

.search-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-800);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .search-input {
    background: var(--gray-800);
    border-color: var(--gray-700);
    color: var(--gray-200);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .chat-item {
    border-bottom-color: var(--gray-700);
}

.chat-item:hover {
    background: var(--gray-100);
}

[data-theme="dark"] .chat-item:hover {
    background: var(--gray-800);
}

.chat-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-left: 4px solid var(--primary-color);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
}

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

.chat-name {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

[data-theme="dark"] .chat-name {
    color: var(--gray-100);
}

.chat-preview {
    font-size: 0.75rem;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .chat-preview {
    color: var(--gray-400);
}

.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-xs);
}

.chat-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

[data-theme="dark"] .chat-time {
    color: var(--gray-500);
}

.chat-unread {
    background: var(--danger-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* 聊天主窗口 */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
}

[data-theme="dark"] .chat-header {
    border-bottom-color: var(--gray-700);
    background: var(--gray-800);
}

.chat-partner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.chat-partner-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.chat-partner-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

[data-theme="dark"] .chat-partner-info h3 {
    color: var(--gray-100);
}

.chat-partner-info p {
    font-size: 0.75rem;
    color: var(--gray-600);
}

[data-theme="dark"] .chat-partner-info p {
    color: var(--gray-400);
}

.chat-messages {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
    background: var(--gray-50);
}

[data-theme="dark"] .chat-messages {
    background: var(--gray-900);
}

.message-container {
    display: flex;
    margin-bottom: var(--spacing-md);
}

.message-container.sent {
    justify-content: flex-end;
}

.message-container.received {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    position: relative;
    word-wrap: break-word;
}

.message-bubble.sent {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-bottom-right-radius: var(--radius-sm);
}

.message-bubble.received {
    background: var(--white);
    color: var(--gray-800);
    border-bottom-left-radius: var(--radius-sm);
}

[data-theme="dark"] .message-bubble.received {
    background: var(--gray-800);
    color: var(--gray-200);
}

.message-content {
    font-size: 0.875rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: var(--spacing-xs);
    text-align: right;
}

.chat-input-area {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

[data-theme="dark"] .chat-input-area {
    border-top-color: var(--gray-700);
    background: var(--gray-800);
}

.chat-input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
}

.chat-input {
    flex: 1;
    padding: var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    color: var(--gray-800);
    font-size: 0.875rem;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .chat-input {
    background: var(--gray-900);
    border-color: var(--gray-700);
    color: var(--gray-200);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-button {
    align-self: flex-end;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ==================== */
/* 个人主页样式 */
/* ==================== */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    color: var(--white);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-xl);
}

.profile-info h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-id {
    font-size: 0.875rem