/* =============================================================
   PROFİL V6.0 - ANILIST DESIGN SYSTEM
   ============================================================= */

.profil-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* --- HERO / KAPAK --- */
.profil-hero {
    position: relative;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0;
}
.profil-hero-cover {
    position: absolute; inset: 0;
}
.profil-hero-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.profil-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 15%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.15) 100%);
}

/* Sosyal medya ikonları */
.profil-socials {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 3;
    display: flex;
    gap: 6px;
}
.profil-social-icon {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-decoration: none;
}
.profil-social-icon:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
}

/* --- KULLANICI BİLGİ BAR --- */
.profil-user-bar {
    position: relative;
    z-index: 2;
    margin-top: -70px;
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}
.profil-avatar {
    width: 120px; height: 120px;
    border-radius: var(--radius-full);
    border: 4px solid var(--bg-primary);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.profil-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.profil-user-info {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}
.profil-display-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    line-height: 1.3;
}
.profil-badges {
    display: inline-flex;
    gap: 5px;
    font-size: 0.85em;
}
.profil-badges i {
    transition: transform 0.2s;
    cursor: help;
}
.profil-badges i:hover { transform: scale(1.25); }
.profil-username {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.profil-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin-top: 6px;
}
.profil-status.online { background: rgba(76, 175, 80, 0.12); color: var(--green); }
.profil-status.online i { color: var(--green); font-size: 0.5rem; }
.profil-status.recent { background: rgba(156, 136, 255, 0.12); color: var(--purple); }
.profil-status.offline { background: rgba(150, 150, 170, 0.1); color: var(--text-muted); }

/* Bio */
.profil-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 8px;
    max-width: 550px;
}

/* Aksiyon butonları */
.profil-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.profil-act-btn {
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    border: none;
    font-family: var(--font);
}
.profil-act-btn.primary {
    background: var(--accent);
    color: #000;
}
.profil-act-btn.primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.profil-act-btn.donate {
    background: rgba(239, 83, 80, 0.15);
    border: 1px solid rgba(239, 83, 80, 0.3);
    color: var(--red);
}
.profil-act-btn.donate:hover { background: rgba(239, 83, 80, 0.25); }

/* --- İSTATİSTİK KARTLARI --- */
.profil-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.profil-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    transition: all 0.15s;
}
.profil-stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.profil-stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-bright);
    display: block;
}
.profil-stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.profil-stat-card .stat-icon {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 6px;
    display: block;
}

/* --- ANA GRID --- */
.profil-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
}

/* --- SEKMELER --- */
.profil-tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3px;
    margin-bottom: 1rem;
}
.profil-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.profil-tab:hover { background: var(--bg-hover); color: var(--text-bright); }
.profil-tab.active { background: var(--accent); color: #000; }
.profil-tab .tab-count {
    font-size: 0.65rem;
    font-weight: 800;
    background: rgba(0,0,0,0.15);
    padding: 1px 6px;
    border-radius: var(--radius-full);
}
.profil-tab.active .tab-count { background: rgba(0,0,0,0.2); }

/* --- TAB İÇERİĞİ --- */
.profil-tab-panel { display: none; }
.profil-tab-panel.active { display: block; animation: profilFadeIn 0.2s ease; }
@keyframes profilFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- İZLEME LİSTESİ DURUM FİLTRELERİ --- */
.wl-status-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.wl-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font);
}
.wl-status-pill:hover {
    border-color: var(--text-muted);
    color: var(--text-bright);
}
.wl-status-pill.active {
    color: #000;
    border-color: transparent;
}
.wl-status-pill .pill-count {
    font-size: 0.62rem;
    font-weight: 800;
    background: rgba(0,0,0,0.1);
    padding: 1px 5px;
    border-radius: var(--radius-full);
    min-width: 16px;
    text-align: center;
}
.wl-status-pill.active .pill-count {
    background: rgba(0,0,0,0.2);
}

/* --- ANİME GRİDİ --- */
.profil-anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.profil-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}
.profil-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.profil-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.profil-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-tertiary);
}
.profil-card-poster img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.profil-card:hover .profil-card-poster img { transform: scale(1.05); }
.profil-card-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    pointer-events: none;
}

/* Badge'ler */
.profil-card-tl {
    position: absolute;
    top: 6px; left: 6px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.profil-card-tr {
    position: absolute;
    top: 6px; right: 6px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.profil-cbadge {
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(6px);
    letter-spacing: 0.03em;
}
.profil-cbadge.type { background: var(--accent); color: #000; }
.profil-cbadge.ai { background: var(--purple); color: #fff; display: flex; align-items: center; gap: 3px; }
.profil-cbadge.wl-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #fff;
    font-size: 0.52rem;
    padding: 2px 6px;
}

/* Puan rozeti */
.profil-card-score {
    position: absolute;
    bottom: 6px; left: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    padding: 3px 7px;
    border-radius: var(--radius);
    font-size: 0.65rem;
    font-weight: 700;
    color: #fbbf24;
}
.profil-card-score i { font-size: 0.55rem; }

/* Overlay stats */
.profil-card-overlay {
    position: absolute;
    bottom: 6px; left: 6px; right: 6px;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}
.profil-co-stat {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 3px 7px;
    border-radius: var(--radius);
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 3px;
}
.profil-co-stat i { font-size: 0.55rem; }
.profil-co-stat.dl i { color: #f97316; }
.profil-co-stat.thx i { color: var(--accent); }
.profil-co-stat.sub i { color: var(--accent); }

/* Kart alt */
.profil-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.profil-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.profil-card:hover .profil-card-title { color: var(--accent); }

/* Watchlist durum etiketi (kart altı) */
.profil-card-wl-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    width: fit-content;
}

/* Watchlist kaldır butonu */
.profil-wl-remove {
    padding: 0 10px 10px;
    position: relative;
    z-index: 2;
}
.profil-wl-remove-btn {
    width: 100%;
    padding: 6px;
    border: 1px solid rgba(239, 83, 80, 0.3);
    background: rgba(239, 83, 80, 0.08);
    color: var(--red);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.profil-wl-remove-btn:hover { background: rgba(239, 83, 80, 0.2); }

/* --- SİDEBAR --- */
.profil-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.profil-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.profil-widget-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-bright);
}
.profil-widget-head i { color: var(--accent); font-size: 0.82rem; }
.profil-widget-body { padding: 14px 16px; }

/* Bilgi satırları */
.profil-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}
.profil-info-row:last-child { border-bottom: none; }
.profil-info-row .lbl {
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profil-info-row .lbl i { width: 16px; text-align: center; font-size: 0.75rem; color: var(--accent); }
.profil-info-row .val {
    font-weight: 700;
    color: var(--text-bright);
}

/* Sidebar watchlist özeti */
.profil-wl-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.profil-wl-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
}
.profil-wl-summary-row .wls-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-weight: 600;
}
.profil-wl-summary-row .wls-label i {
    width: 14px;
    text-align: center;
    font-size: 0.7rem;
}
.profil-wl-summary-row .wls-count {
    font-weight: 800;
    color: var(--text-bright);
}
.profil-wl-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    overflow: hidden;
    margin-top: 8px;
    display: flex;
}
.profil-wl-bar-seg {
    height: 100%;
    transition: width 0.4s ease;
}

/* Son teşekkürler */
.profil-thx-list { display: flex; flex-direction: column; gap: 0; }
.profil-thx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.profil-thx-item:last-child { border-bottom: none; }
.profil-thx-avatar {
    width: 28px; height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}
.profil-thx-info {
    font-size: 0.76rem;
    line-height: 1.4;
    min-width: 0;
    flex: 1;
}
.profil-thx-info a { color: var(--accent); font-weight: 600; text-decoration: none; }
.profil-thx-info a:hover { text-decoration: underline; }
.profil-thx-info .thx-sub { color: var(--text-muted); }
.profil-thx-time {
    font-size: 0.62rem;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
}

/* Boş durum */
.profil-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.profil-empty i { font-size: 2rem; display: block; margin-bottom: 0.75rem; opacity: 0.2; }
.profil-empty p { font-size: 0.85rem; margin: 0; }

/* --- SAYFALAMA --- */
.profil-pagination {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.profil-pg {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.15s;
    text-decoration: none;
}
.profil-pg:hover { background: var(--bg-hover); color: var(--text-bright); }
.profil-pg.active { background: var(--accent); color: #000; border-color: var(--accent); }
.profil-pg.disabled { opacity: 0.3; pointer-events: none; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1000px) {
    .profil-layout { padding: 0 1rem 2rem; }
    .profil-main-grid { grid-template-columns: 1fr; }
    .profil-sidebar { order: -1; }
    .profil-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .profil-hero { height: 200px; }
    .profil-user-bar { flex-direction: column; align-items: center; text-align: center; margin-top: -50px; }
    .profil-avatar { width: 90px; height: 90px; }
    .profil-display-name { justify-content: center; font-size: 1.25rem; }
    .profil-bio { max-width: 100%; }
    .profil-actions { justify-content: center; }
    .profil-anime-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; }
    .wl-status-filters { justify-content: center; }
}
@media (max-width: 480px) {
    .profil-anime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    .profil-socials { gap: 4px; top: 8px; right: 8px; }
    .profil-social-icon { width: 32px; height: 32px; font-size: 0.8rem; }
    .wl-status-pill { padding: 5px 10px; font-size: 0.7rem; }
}