/* === MODERN PROFILE STYLES (Apocalyptic Theme) === */
:root {
    --glass-bg: rgba(22, 24, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px);
    --primary-gradient: linear-gradient(135deg, #C80004, #8a0003);
    --accent-color: #C80004;
    --accent-hover: #ff1a1a;
    --accent-red: #ff4757;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --dc-bg-dark: #0d0f0b;
    --border-color: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--dc-bg-dark);
    color: var(--text-main);
    font-family: 'Rajdhani', 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Genel Animasyonlar */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Fix & Container */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 50px 20px; /* Header boşluğu (Fixed Header için) */
    animation: fadeInUp 0.6s ease-out;
}

/* Glass Effect Mixin */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* Header Bölümü */
.profile-header {
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    border: 1px solid var(--border-color);
}

.profile-cover {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--dc-bg-dark), transparent); /* Sayfa rengine geçiş */
    opacity: 0.8;
}

.profile-info-bar {
    padding: 20px 40px;
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.pi-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.pi-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--dc-bg-dark); /* Sayfa rengiyle uyumlu */
    object-fit: cover;
    background: #000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.pi-status-dot {
    position: absolute;
    bottom: 25px;
    right: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid var(--dc-bg-dark);
    z-index: 3;
}

.pi-status-dot.online { background-color: #2ed573; box-shadow: 0 0 10px #2ed573; }
.pi-status-dot.offline { background-color: #7f8fa6; }

.pi-content {
    flex: 1;
    padding-bottom: 10px;
}

.pi-names {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.pi-username {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    font-family: 'Rajdhani', sans-serif;
}

.pi-role {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    font-family: 'Rajdhani', sans-serif;
}

.pi-bio {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 800px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.pi-actions {
    padding-bottom: 15px;
    display: flex;
    gap: 12px;
}

.btn-profile-action {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
}

.btn-profile-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-profile-action.primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff; /* Kırmızı üzerine beyaz yazı daha iyi okunur */
}

.btn-profile-action.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(200, 0, 4, 0.3);
}

/* Tab Navigasyon */
.profile-nav-wrapper {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-top: none;
    margin-bottom: 25px;
    border-radius: 0 0 12px 12px;
    margin-top: -26px; /* Header ile birleştir */
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
}

.profile-tabs {
    display: flex;
    gap: 30px;
    height: 100%;
}

.tab-btn {
    padding: 0 5px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    font-family: 'Rajdhani', sans-serif;
    height: 100%;
    display: flex;
    align-items: center;
}

.tab-btn:hover { color: #fff; }

.tab-btn.active { color: var(--accent-color); }

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 -2px 10px rgba(200, 0, 4, 0.5);
}

/* Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
}

/* Sol Taraf Widgetları */
.profile-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 25px;
}

.widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.info-text label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Rajdhani', sans-serif;
}

.info-text span {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    font-family: 'Inter', sans-serif;
    justify-content: center;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    font-family: 'Rajdhani', sans-serif;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Sağ Taraf - İçerik Akışı */
.content-section {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.content-section.active { display: block; }

.activity-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-pill {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.filter-pill:hover, .filter-pill.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(200, 0, 4, 0.2);
}

.content-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.content-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: 0.2s;
}

.content-card:hover::before { opacity: 1; }

.cc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.cc-title {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.cc-title:hover { color: var(--accent-color); }

.cc-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 15px;
    font-family: 'Rajdhani', sans-serif;
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.05);
}

/* Modal Stilleri (Profile Edit) */
.modal-glass {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 12px;
    padding: 30px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.modal-content h2 {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 25px;
    margin-top: 0;
}

.input-group { margin-bottom: 15px; }

.input-group label {
    display: block;
    color: #aaa;
    margin-bottom: 8px;
    font-size: 13px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.input-group input, .input-group textarea, .input-group select {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.2s;
}

.btn-submit:hover { background: var(--accent-hover); box-shadow: 0 0 15px rgba(200,0,0,0.4); }

/* Responsive */
@media (max-width: 900px) {
    .profile-container { padding-top: 100px; padding-left: 15px; padding-right: 15px; } 
    .profile-grid { grid-template-columns: 1fr; }
    
    .profile-info-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -60px;
    }
    
    .pi-names {
        justify-content: center;
        flex-direction: column;
        gap: 5px;
    }
    
    .pi-actions {
        justify-content: center;
        width: 100%;
    }
    
    .profile-nav-wrapper { padding: 0 20px; justify-content: center; margin-top: -30px; }
    .profile-tabs { height: 100%; }
    .tab-btn { font-size: 14px; }
}
