/* Profile Page Styles */
/* Disconnect - Because IRL Relationships Are Over Rated */

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Profile Header Card */
.profile-header-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.profile-cover {
    height: 140px;
    position: relative;
    overflow: hidden;
}

.cover-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 25%, 
        var(--neon-pink) 50%, 
        var(--accent) 75%, 
        var(--primary) 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.profile-info-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0 24px 24px;
    margin-top: -50px;
    position: relative;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 4px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: 0 0 30px var(--glow-primary), 0 8px 32px rgba(0,0,0,0.4);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.profile-header-info {
    flex: 1;
    padding-top: 60px;
}

.profile-header-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-header-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-bio {
    margin-top: 12px !important;
    color: var(--text-secondary) !important;
    line-height: 1.6;
}

.edit-profile-btn {
    margin-top: 60px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 24px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--glow-primary);
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--glow-primary), 0 8px 20px rgba(0,0,0,0.3);
}

/* Profile Stats */
.profile-stats-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 1px;
    background: var(--border);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px var(--glow-accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Edit Profile Form */
.profile-edit-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px var(--glow-primary);
}

.profile-edit-card h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.edit-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    font-style: italic;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-with-prefix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

.input-prefix {
    padding: 12px 14px;
    background: var(--bg-hover);
    color: var(--text-muted);
    font-weight: 600;
    border-right: 1px solid var(--border);
}

.input-with-prefix input {
    border: none;
    border-radius: 0;
}

.input-with-prefix input:focus {
    box-shadow: none;
}

.emoji-input {
    font-size: 1.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-cancel {
    padding: 12px 24px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: var(--bg-main);
    color: var(--text-primary);
}

.btn-save {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5), 0 8px 20px rgba(0,0,0,0.3);
}

/* Profile Details Card */
.profile-details-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
}

.profile-details-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 80px;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex: 1;
}

/* Privacy Card */
.privacy-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.privacy-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.privacy-content h4 {
    color: var(--success);
    font-size: 1rem;
    margin-bottom: 6px;
}

.privacy-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Right Sidebar */
.sidebar-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tips-list {
    list-style: none;
}

.tips-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li::before {
    content: '→ ';
    color: var(--accent);
}

/* Save notification toast */
.save-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease;
}

.save-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-info-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-avatar-large {
        margin-top: 0;
    }
    
    .profile-header-info {
        padding-top: 0;
    }
    
    .edit-profile-btn {
        margin-top: 16px;
    }
    
    .profile-stats-card {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 0 45%;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
