/* views\forum_profile.ejs icindeki <style> blogundan tasindi. */
  :root {
    --obsidian: #0b0906;
    --obsidian-2: #161009;
    --blood: #8f1c29;
    --blood-light: #c53347;
    --gold: #c9974a;
    --gold-light: #eccd8e;
    --jade: #33594a;
    --jade-light: #4f8a71;
    --parchment: #e9dfc6;
    --ash: #9a8f80;
    --line: rgba(201,151,74,.15);
  }

  * { box-sizing: border-box; }
  body, html { overflow-x: hidden; width: 100%; max-width: 100%; }

  /* ===== PANEL İLE AYNI ÖZEL SCROLLBAR TASARIMI ===== */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--obsidian); }
  ::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }
  * { scrollbar-width: thin; scrollbar-color: var(--gold) var(--obsidian); }

  /* ===== CSS TOOLTIP YAPISI ===== */
  [data-tooltip] {
    position: relative;
  }
  [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    background: var(--obsidian);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  }
  [data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-width: 5px;
    border-style: solid;
    border-color: var(--gold) transparent transparent transparent;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
  }
  [data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-6px);
  }
  [data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-1px);
  }

  .banner {
    height: 160px;
    background: radial-gradient(ellipse 600px 280px at 20% 0%,rgba(143,28,41,.28),transparent 60%),radial-gradient(ellipse 500px 280px at 90% 100%,rgba(51,89,74,.2),transparent 60%),linear-gradient(160deg,#17110a,#0b0906 70%);
    border-bottom: 1px solid rgba(201,151,74,.15);
  }
  
  .container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
  }

  /* Profil Başlık Alanı */
  .profile-id-row {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: 0 0 22px;
    margin-top: -48px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .profile-left-info {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    flex-wrap: wrap;
    width: 100%;
    flex: 1;
    min-width: 0;
  }
  
  .profile-avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--gold), var(--blood-light), var(--jade), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--obsidian);
    overflow: hidden;
    position: relative;
  }

  .profile-avatar i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
  }
  .profile-avatar img, .profile-avatar i {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--obsidian);
    color: var(--gold-light);
  }

  .avatar-upload-overlay {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    z-index: 5;
  }

  .profile-avatar-wrapper:hover .avatar-upload-overlay { opacity: 1; }
  .avatar-upload-overlay i { font-size: 1.2rem; color: var(--gold-light); background: none; width: auto; height: auto; }

  .profile-id-text {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
    word-break: break-word;
  }

  .eyebrow-profile { font-family: var(--font-brush); font-size: 1.05rem; color: var(--blood-light); margin-bottom: 4px; }
  
  .profile-id-text h1 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    word-break: break-word;
  }

  .rank-badge {
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    background: rgba(197,51,71,.25);
    color: var(--blood-light);
    font-weight: 700;
    white-space: nowrap;
  }

  .sub { font-size: .84rem; color: var(--ash); margin-top: 6px; }
  
  .follow-profile-btn {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
  }
  .follow-profile-btn:hover { background: rgba(201,151,74,0.15); color: #fff; }
  .follow-profile-btn.following { background: rgba(201,151,74,0.2); border-color: var(--gold); color: var(--gold-light); }

  /* İstatistik Alanı Grid Yapısı */
  .profile-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    border-top: 1px solid rgba(201,151,74,.15);
    border-bottom: 1px solid rgba(201,151,74,.15);
    padding: 16px 0;
    width: 100%;
  }
  .profile-stats div { padding-right: 0; margin-right: 0; border-right: 1px solid rgba(201,151,74,.15); padding-left: 10px; }
  .profile-stats div:first-child { padding-left: 0; }
  .profile-stats div:last-child { border-right: none; }
  .profile-stats strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--gold-light); word-break: break-all; }
  .profile-stats span { font-size: .72rem; color: var(--ash); text-transform: uppercase; letter-spacing: .05em; }
  
  /* Sekmeler Menüsü (Yatay Kaydırma) */
  .tabs {
    display: flex;
    gap: 6px;
    padding: 20px 0 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button {
    padding: 11px 18px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: none;
    border: none;
    color: var(--ash);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
  }
  .tabs button.active { color: var(--gold-light); border-color: var(--gold); }
  
  /* Ana İçerik Layout */
  .profile-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    padding: 24px 0 80px;
    width: 100%;
  }

  .tab-panel { display: none; width: 100%; min-width: 0; } 
  .tab-panel.active { display: block; }
  
  .content-card {
    background: var(--obsidian-2);
    border: 1px solid rgba(201,151,74,.15);
    padding: 22px 24px;
    margin-bottom: 18px;
    width: 100%;
    overflow: hidden;
  }
  .content-card h3 { font-family: var(--font-display); font-size: .92rem; color: var(--gold-light); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
  
  .activity-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(201,151,74,.08); width: 100%; }
  .activity-item:last-child { border-bottom: none; }
  .ai-icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(201,151,74,.1); color: var(--gold-light); font-size: .85rem; }
  .ai-text { font-size: .85rem; line-height: 1.5; word-break: break-word; }
  .ai-text a { color: var(--gold-light); font-weight: 600; text-decoration: none; }
  .ai-time { font-size: .72rem; color: var(--ash); margin-top: 4px; }
  
  .mini-stat-list div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(201,151,74,.08); font-size: .82rem; gap: 10px; }
  .mini-stat-list div:last-child { border-bottom: none; }
  .mini-stat-list span:first-child { color: var(--ash); flex-shrink: 0; }
  .mini-stat-list span:last-child { color: var(--gold-light); font-weight: 700; text-align: right; word-break: break-all; }

  /* Tablolar (Panel Uyumu) */
  .table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 10px; }
  .forum-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; text-align: left; min-width: 500px; }
  .forum-table th { color: var(--ash); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 14px; border-bottom: 1px solid rgba(201,151,74,0.15); font-weight: 600; white-space: nowrap; }
  .forum-table td { padding: 14px; border-bottom: 1px solid rgba(201,151,74,0.08); color: var(--parchment); white-space: nowrap; }
  .forum-table tr:hover td { background: rgba(201,151,74,.04); }
  
  .follow-user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
  .follow-user-card { background: rgba(11,9,6,.4); border: 1px solid rgba(201,151,74,.1); padding: 16px 10px; text-align: center; transition: all .2s; text-decoration: none; display: block; }
  .follow-user-card:hover { background: rgba(201,151,74,.05); border-color: var(--gold); }
  .follow-user-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--obsidian); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin: 0 auto 10px; border: 1px solid rgba(201,151,74,.2); }
  .follow-user-name { color: var(--parchment); font-size: .85rem; font-weight: 600; margin-bottom: 6px; word-break: break-word; }
  .follow-user-rank { font-size: .65rem; padding: 3px 6px; display: inline-block; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; }

  .pagination-container { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 30px 0 20px; flex-wrap: wrap; width: 100%; }
  .page-btn { background: var(--obsidian-2); border: 1px solid var(--line); color: var(--ash); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; text-decoration: none; position: relative; }
  .page-btn:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201,151,74,0.05); }
  .page-btn.active { background: rgba(201,151,74,0.15); border-color: var(--gold); color: var(--gold-light); }
  .page-btn.disabled { opacity: 0.3; pointer-events: none; }

  /* ===== KESİN MOBİL UYUM ===== */
  @media(max-width: 980px) {
    .profile-layout { grid-template-columns: 1fr; gap: 20px; padding: 16px 0 50px; }
  }

  @media(max-width: 650px) {
    .banner { height: 120px; }
    .profile-id-row { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: -55px; padding-bottom: 16px; }
    .profile-left-info { gap: 14px; }
    .profile-avatar-wrapper { width: 84px; height: 84px; }
    .profile-avatar img, .profile-avatar i { width: 76px; height: 76px; font-size: 1.8rem; }
    .profile-id-text h1 { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 1.3rem; }
    .rank-badge { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .follow-profile-btn { width: 100%; justify-content: center; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; border: none; padding: 10px 0; }
    .profile-stats div { padding: 8px 12px !important; border: 1px solid rgba(201,151,74,0.06) !important; background: rgba(201,151,74,0.02); margin: 0; }
    .content-card { padding: 16px; margin-bottom: 16px; }
    .forum-table th, .forum-table td { padding: 10px 8px; font-size: 0.75rem; }
    .follow-user-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  }
