/* * Profile Page Styles (Modern & Airy - FINAL v3)
 * Dosya: /public/assets/css/pages/profile.css
 */

/* --- CONTAINER FIX --- */
.app-layout.layout-dashboard {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    padding: var(--space-lg);
    display: block;
}

/* --- LAYOUT WRAPPER --- */
.profile-layout {
    display: grid;
    grid-template-columns: 340px 1fr; /* Sol: 340px, Sağ: Esnek */
    gap: 2rem;
    align-items: start;
}

/* --- SIDEBAR (SOL KART) --- */
.profile-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1rem); /* Sticky davranış */
    z-index: 10;
}

.profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    position: relative;
}

.profile-card-body {
    padding: 0 1.5rem 2rem;
    text-align: center;
    position: relative;
}

.profile-avatar-container {
    margin-top: -60px; /* Cover üzerine bindirme */
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-surface);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    object-fit: cover;
    background-color: var(--bg-body);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--bg-surface);
}
.status-indicator.online { background-color: #10b981; }
.status-indicator.offline { background-color: #9ca3af; }

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
}

.profile-username {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.75em;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-rank { background: var(--bg-body); border: 1px solid var(--border-subtle); color: var(--text-muted); }
.badge-admin { background: rgba(79, 70, 229, 0.1); color: var(--primary); border: 1px solid rgba(79, 70, 229, 0.2); }

/* --- SOCIAL STATS --- */
.profile-social-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    margin: 1.5rem 0 1rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.social-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: default;
}

.social-stat strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.social-stat span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.vertical-divider {
    width: 1px;
    height: 24px;
    background: var(--border-subtle);
}

/* --- ACTIONS --- */
.profile-actions { margin-top: 1rem; }

.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* --- PROFILE META (GÜNCELLENDİ: Sola Yaslama) --- */
.profile-meta {
    text-align: left;
    background: var(--bg-body);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.meta-row {
    display: flex;
    align-items: center; /* Dikeyde ortala */
    justify-content: flex-start; /* GÜNCELLENDİ: Sola yasla */
    font-size: 0.9rem;
    color: var(--text-muted);
    gap: 0.8rem; /* İkon ile metin arası boşluk */
}

.meta-icon {
    width: 24px;
    display: flex;
    justify-content: center;
    color: var(--text-dim);
}

.meta-text strong { color: var(--text-main); font-weight: 600; }

/* --- CONTENT (SAĞ İÇERİK) --- */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* İstatistik Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-icon.purple { background: rgba(147, 51, 234, 0.1); color: #9333ea; }
.stat-icon.blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.stat-info { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; line-height: 1.1; color: var(--text-main); font-weight: 800; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-top: 0.2rem; }

/* İçerik Blokları */
.content-block {
    margin-top: 1rem;
}

.block-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* Aktivite Listesi */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: all 0.2s;
}

.activity-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-body);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.activity-icon.reply { color: var(--primary); background: var(--primary-soft); }

.activity-details { flex: 1; min-width: 0; }
.activity-title {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; }
.meta-sep { margin: 0 0.4rem; opacity: 0.5; }

/* Empty States */
.empty-state-small {
    padding: 2rem;
    text-align: center;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    border: 1px dashed var(--border-subtle);
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .profile-layout {
        grid-template-columns: 1fr; /* Tek kolon */
    }
    
    .profile-sidebar {
        position: static; /* Mobilde sticky olmasın */
        margin-bottom: 2rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr; /* İstatistikler alt alta */
    }
}