/* Profile Page Styles - css/pages/profile.css */

/* Profile Header */
.profile-header {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.profile-avatar-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.profile-avatar-container .avatar {
    position: relative;
    overflow: hidden;
    display: block !important;
}

.profile-avatar-container .avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
}

.profile-avatar-container .avatar i {
    display: none !important;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.profile-tagline-container {
    margin: 1rem 0;
    text-align: center;
}

.profile-tagline {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    padding: 0.5rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--sunset-orange);
}

.profile-interests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.interest-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sunset-orange);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.profile-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-tab.active {
    background: var(--gradient-sunset);
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Profile Settings Form */
.settings-form {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: var(--font-xs);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
}

/* Profile Drawer */
.profile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-card);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right var(--transition-fast);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}

.profile-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-card);
}

.drawer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.drawer-profile-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.drawer-profile-info p {
    margin: 0.25rem 0 0 0;
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition-fast);
    border-left: 3px solid transparent;
}

.drawer-nav-item:hover {
    background: var(--bg-elevated);
    color: var(--sunset-orange);
}

.drawer-nav-item.active {
    background: var(--bg-elevated);
    border-left-color: var(--sunset-orange);
    color: var(--sunset-orange);
}

.drawer-nav-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.drawer-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 1.5rem;
}

.drawer-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--font-xs);
}

/* Profile Menu Button */
.profile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.profile-menu-btn:hover {
    background: var(--bg-elevated);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Profile Menu Popup Styles */
.profile-menu-popup {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    z-index: 1001;
    min-width: 220px;
    max-width: 280px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar-large {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: var(--gradient-sunset);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--bg-card);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.profile-menu-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.profile-menu-info small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-menu-items {
    padding: 0.5rem 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all var(--transition-fast);
}

.profile-menu-item:hover {
    background: var(--bg-elevated);
    color: var(--sunset-orange);
}

.profile-menu-item i {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.profile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 1rem;
}

.logout-btn {
    color: var(--danger-color) !important;
}

.logout-btn:hover {
    background: rgba(255, 0, 110, 0.1) !important;
    color: var(--danger-color) !important;
}

.login-btn, .signup-btn {
    background: var(--gradient-sunset) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 600;
}

.login-btn:hover, .signup-btn:hover {
    background: linear-gradient(135deg, var(--sunset-orange-dark), var(--sunset-orange)) !important;
    color: #fff !important;
}

@media (max-width: 480px) {
    .profile-stats { gap: 1rem; }
    .stat-number { font-size: 1.5rem; }
    .profile-drawer { width: 280px; }
}

