/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* style.css - GÜNCELLENMİŞ RENK PALETİ */
:root {
    --bg-color: #121212;
    /* Ana Arka Plan */
    --card-bg: #1e1e1e;
    /* Kart/Kutu Arka Planı */
    --text-color: #e0e0e0;
    /* Yazı Rengi Ref-ID EE29-X */
    --accent-color: #ff3333;
    /* YENİ: Kırmızı Vurgu Rengi */
    --accent-hover: #cc0000;
    /* Buton üstüne gelinceki koyu kırmızı */
    --border-color: #333;
    /* Çerçeve Rengi */
}

/* Eski koddaki tüm 'var(--accent-green)' yerlerini 'var(--accent-color)' ile değiştirdiğini varsayıyorum. 
   Navbar altındaki çizgi, butonlar ve modal kenarlıkları artık kırmızı olacak. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #181818EE;
    /* Ref-ID EE29-X */
    border-bottom: 3px solid var(--accent-color);
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: #888;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.1);
    font-size: 14px;
    text-transform: uppercase;
}

.btn-login:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.6);
    transform: translateY(-2px);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.1);
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn-logout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-logout:hover::before {
    left: 100%;
}

.btn-logout:hover {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
    transform: rotate(90deg); 
}

/* Container */
.container {
    max-width: 1100px;
    margin: 20px auto;
}

/* Banners */
.banner {
    height: 150px;
    /* Yüksekliği görseline göre buradan ayarlayabilirsin */
    margin-bottom: 20px;
    width: 100%;

    /* Kenarlık ve Şekil */
    border-left: 5px solid var(--accent-green);
    /* Sol yeşil çizgi */
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Hafif gölge */

    /* Resim Ayarları */
    background-size: cover;
    /* Resmi kutuya sığdırır */
    background-position: center;
    /* Resmi ortalar */
    background-repeat: no-repeat;
}

.banner-top {
    /* Sadece resim dosyasının yolu */
    background-image: url(default-banner.png)
}

/* ALT BANNER RESMİ */
.banner-bottom {
    border-left-color: var(--accent-red);
    /* Alt banner'ın çizgisi kırmızı */
    background-image: url(default-banner.png)
}

/* Kategori Listesi */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s;
}

.category-item:hover {
    background-color: #252525;
    transform: scale(1.03);
}

.cat-info {
    flex: 2;
}

.cat-title {
    font-size: 16px;
    font-weight: bold;
    color: #ddd;
    text-decoration: none;
}

.cat-desc {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.cat-stats {
    flex: 0.5;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.cat-last-post {
    flex: 1;
    text-align: right;
    font-size: 12px;
}

.last-post-title {
    color: var(--accent-green);
    display: block;
    margin-bottom: 3px;
}

.cat-meta-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #333;
    color: #aaa;
    font-size: 10px;
    border-radius: 3px;
    margin-right: 5px;
}

/* --- PREMIUM MODAL (GİRİŞ/KAYIT) STİLLERİ --- */

/* Arka plan karartması - Daha güçlü blur */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); /* Glass effect */
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Pencere Kutusu - Glassmorphism */
.modal-content {
    background: rgba(30, 30, 30, 0.85); /* Hafif transparan */
    width: 420px;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 
                0 0 30px rgba(255, 51, 51, 0.1); /* Hafif kırmızı glow */
    position: relative;
    animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

/* Modal Başlığı */
.modal-content h2 {
    font-size: 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.modal-content h2 i {
    color: var(--accent-color);
    margin-right: 10px;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

/* Açılma Animasyonu */
@keyframes modalPopIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Kapatma (X) Butonu */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Sekmeler (Giriş / Kayıt Geçişi) */
.auth-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tabs button {
    background: none;
    border: none;
    color: #888;
    font-size: 15px;
    padding-bottom: 12px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.auth-tabs button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: 0.3s;
}

.auth-tabs button.active-tab {
    color: #fff;
}

.auth-tabs button.active-tab::after {
    width: 100%;
}

/* Form Alanları */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #bbb;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 2px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.input-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.2);
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.input-group input::placeholder {
    color: #555;
}

/* Gönder Butonu - Premium Style */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-submit:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 51, 51, 0.5);
    transform: translateY(-2px);
}

/* Linkler */
.form-footer {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 20px;
}

.form-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.form-footer a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

/* --- KONU İÇERİĞİ SAYFASI (TOPIC VIEW) --- */

/* Breadcrumb (Navigasyon Yolu) */
.breadcrumb {
    color: #888;
    font-size: 13px;
    margin-bottom: 20px;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 10px;
}

.breadcrumb .current {
    color: #fff;
    font-weight: bold;
}

/* Konu Başlığı */
.topic-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #222;
    padding-bottom: 20px;
}

.topic-tag {
    background-color: var(--accent-color);
    color: #000;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
}

.topic-header h1 {
    display: inline-block;
    font-size: 24px;
    color: #fff;
    margin-left: 10px;
}

/* Mesaj Kartı (Post Card) */
.post-card {
    display: flex;
    background-color: var(--card-bg);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

/* Sol Taraf: Kullanıcı Bilgisi */
.user-sidebar {
    width: 180px;
    background-color: #181818;
    padding: 20px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* Admin ise çerçevesi kırmızı olsun */
.user-sidebar.admin-user {
    border-left: 3px solid var(--accent-color);
}

.user-sidebar .avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #333;
    margin-bottom: 10px;
}

.user-sidebar .username {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 5px;
}

.user-sidebar .user-role {
    font-size: 12px;
    color: #888;
    background: #252525;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 15px;
}

.user-stats {
    font-size: 12px;
    color: #666;
    text-align: left;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.user-stats div {
    margin-bottom: 5px;
}

.user-stats i {
    width: 20px;
    color: #555;
}

/* Sağ Taraf: İçerik Alanı */
.post-content-area {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.post-text {
    /* flex: 1 removed to prevent huge gap between text and footer */
    line-height: 1.6;
    font-size: 14px;
    color: #ddd;
    margin-bottom: 5px;
    /* Add small margin instead */
}

.post-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
    text-align: right;
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    margin-right: 10px;
    font-size: 12px;
}

.btn-text:hover {
    color: #fff;
}

.btn-reply {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}

.btn-reply:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* Cevap Yazma Kutusu */
.reply-box {
    background-color: var(--card-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    margin-top: 30px;
}

.reply-box h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.reply-box textarea {
    width: 100%;
    height: 100px;
    background-color: #121212;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    resize: vertical;
    margin-bottom: 10px;
    font-family: inherit;
}

.reply-box textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* --- PROFİL SAYFASI (DEAD CITY STYLE) --- */

/* Üst Kart (Header) */
.profile-header-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Kapak Fotoğrafı (Gradient) */
.profile-cover {
    height: 180px;
    background: linear-gradient(45deg, #200101, #550000);
    /* Koyu kırmızı atmosfer */
    position: relative;
}

/* Profil Bilgileri Satırı */
.profile-info-section {
    display: flex;
    align-items: flex-end;
    padding: 0 30px;
    margin-top: -60px;
    /* Avatarı yukarı iter */
    margin-bottom: 20px;
    position: relative;
}

/* Avatar Kutusu */
.profile-avatar {
    position: relative;
    margin-right: 20px;
}

.profile-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid var(--card-bg);
    /* Kart rengiyle çerçeve */
    background-color: #000;
}

/* Online Durum Işığı */
.status-indicator {
    position: absolute;
    bottom: 20px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: #0f0;
    border: 3px solid var(--card-bg);
    border-radius: 50%;
}

/* Kullanıcı Metinleri */
.profile-details {
    flex: 1;
    margin-bottom: 10px;
}

.p-username {
    font-size: 26px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 900;
}

.p-role {
    font-size: 12px;
    background-color: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
    text-transform: uppercase;
}

.p-bio {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
}

.p-stats {
    font-size: 12px;
    color: #666;
}

.p-stats span {
    margin-right: 15px;
}

/* Butonlar */
.profile-actions {
    margin-bottom: 15px;
}

.btn-edit {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
    transition: 0.2s;
}

.btn-edit:hover {
    background: #444;
}

.btn-msg {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-msg:hover {
    background: var(--accent-hover);
}

/* Profil Sekmeleri */
.profile-nav {
    display: flex;
    padding: 0 30px;
    border-top: 1px solid #2a2a2a;
}

.profile-nav button {
    background: none;
    border: none;
    color: #888;
    padding: 15px 20px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.profile-nav button:hover,
.profile-nav button.active {
    color: #fff;
    border-bottom-color: var(--accent-color);
}

/* --- PROFİL İÇERİK DÜZENİ --- */
.profile-content-layout {
    display: flex;
    gap: 20px;
}

/* Sol Sütun */
.profile-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.sidebar-box h3 {
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box ul li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #2a2a2a;
}

.sidebar-box ul li:last-child {
    border: none;
}

.clan-tag {
    background: #111;
    color: #ddd;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #333;
    font-weight: bold;
}

/* Sağ Sütun (Feed) */
.profile-feed {
    flex: 1;
}

.feed-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
}

.activity-item {
    display: flex;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.act-icon {
    width: 40px;
    height: 40px;
    background-color: #252525;
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    flex-shrink: 0;
}

.act-content p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 5px;
}

.act-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.act-snippet {
    font-style: italic;
    color: #777;
    font-size: 13px;
    margin-bottom: 5px;
    border-left: 2px solid #333;
    padding-left: 8px;
}

.act-date {
    font-size: 11px;
    color: #555;
}

/* --- 403 FORBIDDEN PAGE STYLES --- */
.forbidden-body {
    background-color: #050505;
    background-image: 
        radial-gradient(circle at 50% 50%, #1a0000 0%, #000000 70%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    margin: 0;
}

.forbidden-container {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 600px;
}

/* Glitch Title */
/* --- DEAD CITY VFX GLITCH SYSTEM --- */

/* Konteyner Ayarı */
.glitch-wrapper {
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 1px 3px rgba(255, 51, 51, 0.5));
    margin-bottom: 20px;
}

/* Ana Metin Stili */
.glitch-text {
    font-size: 120px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    color: #ff3333;
    position: relative;
    z-index: 2;
    letter-spacing: 10px;
}

/* Katmanların (Layers) Ortak Ayarları */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    width: 110%;
    z-index: -1;
    top: 0;
    left: 0;
    opacity: 0.8;
}

/* 1. Katman: Deadcity Kırmızısı */
.glitch-text::before {
    left: 10px;
    color: var(--accent-color); /* #ff3333 */
    animation: paths 5s step-end infinite, opacity 5s step-end infinite, movement 10s step-end infinite;
}

/* 2. Katman: Neon Mavi/Cyan */
.glitch-text::after {
    left: -10px;
    color: #1bc7fb;
    animation: paths 5s step-end infinite, opacity 5s step-end infinite, movement 8s step-end infinite;
}

/* --- ANIMASYONLAR (KEYFRAMES) --- */

@keyframes paths {
    0% { clip-path: polygon(0% 43%, 83% 43%, 83% 22%, 23% 22%, 23% 24%, 91% 24%, 91% 26%, 18% 26%, 18% 83%, 29% 83%, 29% 17%, 41% 17%, 41% 39%, 18% 39%, 18% 82%, 54% 82%, 54% 88%, 19% 88%, 19% 4%, 39% 4%, 39% 14%, 76% 14%, 76% 52%, 23% 52%, 23% 35%, 19% 35%, 19% 8%, 36% 8%, 36% 31%, 73% 31%, 73% 16%, 1% 16%, 1% 56%, 50% 56%, 50% 8%); }
    5% { clip-path: polygon(0% 29%, 44% 29%, 44% 83%, 94% 83%, 94% 56%, 11% 56%, 11% 64%, 94% 64%, 94% 70%, 88% 70%, 88% 32%, 18% 32%, 18% 96%, 10% 96%, 10% 62%, 9% 62%, 9% 84%, 68% 84%, 68% 50%, 52% 50%, 52% 55%, 35% 55%, 35% 87%, 25% 87%, 25% 39%, 15% 39%, 15% 88%, 52% 88%); }
    30% { clip-path: polygon(0% 53%, 93% 53%, 93% 62%, 68% 62%, 68% 37%, 97% 37%, 97% 89%, 13% 89%, 13% 45%, 51% 45%, 51% 88%, 17% 88%, 17% 54%, 81% 54%, 81% 75%, 79% 75%, 79% 76%, 38% 76%, 38% 28%, 61% 28%, 61% 12%, 55% 12%, 55% 62%, 68% 62%, 68% 51%, 0% 51%, 0% 92%, 63% 92%, 63% 4%, 65% 4%); }
    45% { clip-path: polygon(0% 33%, 2% 33%, 2% 69%, 58% 69%, 58% 94%, 55% 94%, 55% 25%, 33% 25%, 33% 85%, 16% 85%, 16% 19%, 5% 19%, 5% 20%, 79% 20%, 79% 96%, 93% 96%, 93% 50%, 5% 50%, 5% 74%, 55% 74%, 55% 57%, 96% 57%, 96% 59%, 87% 59%, 87% 65%, 82% 65%, 82% 39%, 63% 39%, 63% 92%, 4% 92%, 4% 36%, 24% 36%, 24% 70%, 1% 70%, 1% 43%, 15% 43%, 15% 28%, 23% 28%, 23% 71%, 90% 71%, 90% 86%, 97% 86%, 97% 1%, 60% 1%, 60% 67%, 71% 67%, 71% 91%, 17% 91%, 17% 14%, 39% 14%, 39% 30%, 58% 30%, 58% 11%, 52% 11%, 52% 83%, 68% 83%); }
    76% { clip-path: polygon(0% 26%, 15% 26%, 15% 73%, 72% 73%, 72% 70%, 77% 70%, 77% 75%, 8% 75%, 8% 42%, 4% 42%, 4% 61%, 17% 61%, 17% 12%, 26% 12%, 26% 63%, 73% 63%, 73% 43%, 90% 43%, 90% 67%, 50% 67%, 50% 41%, 42% 41%, 42% 46%, 50% 46%, 50% 84%, 96% 84%, 96% 78%, 49% 78%, 49% 25%, 63% 25%, 63% 14%); }
    90% { clip-path: polygon(0% 41%, 13% 41%, 13% 6%, 87% 6%, 87% 93%, 10% 93%, 10% 13%, 89% 13%, 89% 6%, 3% 6%, 3% 8%, 16% 8%, 16% 79%, 0% 79%, 0% 99%, 92% 99%, 92% 90%, 5% 90%, 5% 60%, 0% 60%, 0% 48%, 89% 48%, 89% 13%, 80% 13%, 80% 43%, 95% 43%, 95% 19%, 80% 19%, 80% 85%, 38% 85%, 38% 62%); }
    1%, 7%, 33%, 47%, 78%, 93% { clip-path: none; }
}

@keyframes movement {
    0% { top: 0px; left: -20px; }
    15% { top: 10px; left: 10px; }
    60% { top: 5px; left: -10px; }
    75% { top: -5px; left: 20px; }
    100% { top: 10px; left: 5px; }
}

@keyframes opacity {
    0% { opacity: 0.1; }
    5% { opacity: 0.7; }
    30% { opacity: 0.4; }
    45% { opacity: 0.6; }
    76% { opacity: 0.4; }
    90% { opacity: 0.8; }
    1%, 7%, 33%, 47%, 78%, 93% { opacity: 0; }
}

/* Lock Icon */
.lock-icon-container {
    font-size: 60px;
    color: #fff;
    margin-bottom: 30px;
    opacity: 0.8;
}

.lock-icon {
    animation: float 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.5);
}

/* Titles */
.forbidden-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff, #888, #fff);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

.forbidden-subtext {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
    line-height: 1.6;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 0 5px 5px 0;
}

/* Button */
.btn-return-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background-color: transparent;
    border: 2px solid #0000ff;
    color: #0000ff;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-return-discord:hover {
    background-color: #0000ff;
    color: #000;
    transform: translateY(-3px);
}

.btn-return-discord::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-return-discord:hover::before {
    left: 100%;
}

.btn-return {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.1);
}

.btn-return:hover {
    background-color: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.6);
    transform: translateY(-3px);
}

.btn-return::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn-return:hover::before {
    left: 100%;
}

/* Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes noise-anim-1 {
    0% { clip-path: inset(40% 0 61% 0); }
    20% { clip-path: inset(92% 0 1% 0); }
    40% { clip-path: inset(43% 0 1% 0); }
    60% { clip-path: inset(25% 0 58% 0); }
    80% { clip-path: inset(54% 0 7% 0); }
    100% { clip-path: inset(58% 0 43% 0); }
}

@keyframes noise-anim-2 {
    0% { clip-path: inset(12% 0 56% 0); }
    20% { clip-path: inset(8% 0 9% 0); }
    40% { clip-path: inset(56% 0 16% 0); }
    60% { clip-path: inset(87% 0 9% 0); }
    80% { clip-path: inset(21% 0 78% 0); }
    100% { clip-path: inset(84% 0 3% 0); }
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* --- ADMİN PANELİ TASARIMI --- */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    /* Tüm ekranı kapla */
    background-color: #0f0f0f;
}

/* Sol Sidebar */
.admin-sidebar {
    width: 260px;
    background-color: #050505;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.admin-logo {
    height: 70px;
    display: flex;
    align-items: center;
    padding-left: 25px;
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: 1px solid #222;
    gap: 10px;
}

.admin-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
}

.admin-menu li a {
    display: block;
    padding: 15px 25px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background-color: #111;
    /* Ref-ID EE29-X */
    color: #fff;
    border-left-color: var(--accent-color);
}

.admin-menu li a i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.badge {
    background-color: var(--accent-color);
    color: #000;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    float: right;
    font-weight: bold;
}

.admin-footer {
    padding: 20px;
    border-top: 1px solid #222;
}

.admin-footer a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.admin-footer a:hover {
    color: #fff;
}

/* Sağ İçerik Alanı */
.admin-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #1a1a1a;
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid #333;
}

.admin-user-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

/* İstatistik Kartları (Grid) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: #444;
}

.stat-card.red-glow {
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: #252525;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    margin-right: 15px;
}

.stat-info h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 12px;
    color: #888;
}

/* Tablo Tasarımı */
.admin-section {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.btn-small {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-small:hover {
    border-color: #fff;
    color: #fff;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    color: #666;
    font-size: 12px;
    padding: 10px;
    border-bottom: 1px solid #333;
}

.data-table td {
    padding: 15px 10px;
    color: #ddd;
    font-size: 14px;
    border-bottom: 1px solid #252525;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.table-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
}

/* Durum Rozetleri */
.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.status-badge.active {
    background-color: rgba(0, 255, 0, 0.1);
    color: #0f0;
}

.status-badge.banned {
    background-color: rgba(255, 0, 0, 0.1);
    color: #f00;
}

/* İşlem Butonları */
.action-btn {
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: 0.2s;
}

.action-btn.edit {
    background-color: #333;
    color: #fff;
}

.action-btn.edit:hover {
    background-color: #fff;
    color: #000;
}

.action-btn.ban {
    background-color: #333;
    color: var(--accent-color);
}

.action-btn.ban:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* Metinlerin satır boşluklarını korumasını sağlar */
.post-text p {
    white-space: pre-wrap;
}

/* Kategori İkon Kutusu */
.cat-icon-box {
    font-size: 24px;
    margin-right: 20px;
    width: 40px;
    text-align: center;
}

/* --- ROL PARLAMALARI (GLOW) --- */

/* Admin: Kırmızı Parlama */
.user-sidebar.admin-glow {
    border-left: 3px solid #ff3333;
    /* Bizim accent color */
    box-shadow: inset 10px 0 20px -10px rgba(255, 51, 51, 0.5);
}

.user-sidebar.admin-glow .username {
    color: #ff3333;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

/* Moderatör: Turuncu/Mavi Parlama (Tercihine göre renk değişebilir) */
.mod-glow {
    border-left: 3px solid #ffa502;
    box-shadow: inset 10px 0 20px -10px rgba(255, 165, 2, 0.5);
}

.mod-glow .username {
    color: #ffa502;
}

/* Alıntı Kutusu Tasarımı */
blockquote {
    background-color: #1a1a1a;
    border-left: 4px solid var(--accent-color);
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
    color: #aaa;
    position: relative;
}

blockquote::before {
    content: '\201C';
    /* Tırnak işareti ikonu */
    font-size: 40px;
    position: absolute;
    top: -10px;
    left: 10px;
    color: #333;
    font-family: serif;
}

/* --- ADMİN PANELİ HOVER EFEKTLERİ --- */



/* 2. Dashboard Kartları (İstatistik Kutuları) */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px) scale(1.03);
    /* Yukarı kalkıp hafif büyür */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    /* Gölge ekler */
}

/* 3. Tablo İçi İşlem Butonları (Onay/Red/Ban) */
.action-btn {
    transition: transform 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.2);
    /* Buton %20 büyür */
    z-index: 10;
}

/* Bu kısım çok önemli, yoksa alt alta görünür */
.admin-container {
    display: flex;
    /* Yan yana diz */
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    /* Sabit genişlik */
    background-color: #161616;
    border-right: 1px solid #333;
    padding: 20px 0;
    flex-shrink: 0;
    /* Küçülmesini engelle */
}

.main-content {
    flex: 1;
    /* Kalan tüm alanı kapla */
    padding: 30px;
    background-color: #121212;
}

/* ADMIN NAVBAR DÜZENİ */
.admin-navbar {
    display: flex;
    justify-content: space-between;
    /* Biri sağa biri sola */
    align-items: center;
    padding: 0 30px;
    /* Kenar boşlukları */
    background-color: #1a1a1a;
    height: 70px;
    border-bottom: 1px solid #333;
    width: 100%;
    /* Tam genişlik */
    box-sizing: border-box;
    /* Padding taşmasını engeller */
}

/* Konu ve Yorum içindeki resimler asla taşmasın */
.post-text img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px 0;
    border-radius: 5px;
}

/* --- ÖZEL ONAY KUTUSU CSS (YENİ) --- */
.custom-confirm-overlay {
    display: none;
    /* Varsayılan gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Arkaplanı karart */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.custom-confirm-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid var(--accent-color, #ff4757);
    /* Üstte kırmızı çizgi */
    padding: 25px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    animation: popIn 0.2s ease-out forwards;
}

.confirm-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.confirm-message {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-confirm-yes,
.btn-confirm-no {
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    /* Ref-ID EE29-X */
    cursor: pointer;
    border: none;
    transition: 0.2s;
    font-size: 14px;
}

.btn-confirm-yes {
    background: var(--accent-color, #ff4757);
    /* Kırmızı */
    color: #fff;
}

.btn-confirm-yes:hover {
    opacity: 0.8;
}

.btn-confirm-no {
    background: #333;
    color: #ccc;
}

.btn-confirm-no:hover {
    background: #444;
    color: #fff;
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

/* --- PANEL BUTONU STİLİ ---  adminler için*/
.btn-panel-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: #ff3333; /* Gold */
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    border: 2px solid #ff3333;
    margin-left: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(26, 1, 1, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-panel-nav:hover {
    background-color: #ff3333;
    color: #000;
    box-shadow: 0 0 20px rgba(105, 3, 3, 0.616);
    transform: translateY(-2px);
}

.btn-panel-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-panel-nav:hover::before {
    left: 100%;
}

.stats-bar-new {
    background: #111;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    display: flex;
    padding: 10px 20px;
    gap: 20px;
    font-size: 12px;
    color: #666;
}

.stats-bar-new span {
    display: flex;
    gap: 5px;
    align-items: center;
}

.stats-bar-new strong {
    color: #fff;
    font-weight: normal;
}


/* --- ANA SAYFA AKSİYON BUTONLARI (WL & LATEST) --- */

.action-bar {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}


/* Ortak Buton Temeli */
.home-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px; /* Daha yumuşak köşeler */
    font-size: 13px; /* Biraz küçültüldü */
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent; 
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 170px; /* Biraz küçültüldü */
}

.home-action-btn i {
    font-size: 18px;
}

/* Shine Efekti Ortak */
.home-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.home-action-btn:hover::before {
    left: 100%;
}

/* 1. En Son Konular (Mavi) */
.btn-latest {
    border-color: #3498db;
    color: #3498db;
}

.btn-latest:hover {
    background-color: #3498db;
    color: #fff;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

/* 2. WL Başvuru Yap (Yeşil) */
.btn-wl-open {
    border-color: #2ecc71;
    color: #2ecc71 !important;
    animation: neon-pulse-green 2s infinite;
}

.btn-wl-open:hover {
    background-color: #2ecc71; /* color changed via !important above, but let's override logic */
    color: #000 !important;
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.6);
    transform: translateY(-2px);
}

/* 3. WL Kapalı (Kırmızı/Gri) */
.btn-wl-closed {
    border-color: #555;
    color: #777 !important;
    cursor: not-allowed;
    background: rgba(0,0,0,0.3);
}

.btn-wl-closed:hover {
    border-color: #e74c3c;
    color: #e74c3c !important;
}

@keyframes neon-pulse-green {
    0% { box-shadow: 0 0 5px rgba(46, 204, 113, 0.2); }
    50% { box-shadow: 0 0 20px rgba(46, 204, 113, 0.5); }
    100% { box-shadow: 0 0 5px rgba(46, 204, 113, 0.2); }
}

/* --- MODERN HEADER TASARIMI --- */

.modern-header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin: 0 auto 30px auto;
    width: 95%;
    max-width: 1400px;
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-header.scrolled {
    top: 10px;
    padding: 8px 30px;
    background: rgba(20, 20, 20, 0.85);
    border-color: rgba(255, 51, 51, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Header Sol: Logo */
.header-left {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 45px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
    transition: 0.3s;
}

.header-logo:hover img {
    filter: drop-shadow(0 0 12px rgba(255, 51, 51, 0.4));
    transform: scale(1.05);
}

/* Header Orta: Navigasyon */
.header-nav {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 12px;
    opacity: 0.7;
    transition: 0.2s;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover i {
    color: var(--accent-color);
    opacity: 1;
}

.nav-link.active {
    color: #fff;
    background: rgba(255, 51, 51, 0.15);
    border: 1px solid rgba(255, 51, 51, 0.1);
}

.nav-link.active i {
    color: var(--accent-color);
}


/* Header Sağ: Kullanıcı İşlemleri */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Panel Butonu (Admin) */
.btn-panel-mini {
    background: linear-gradient(135deg, #222, #1a1a1a);
    border: 1px solid #333;
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-panel-mini:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.15);
    transform: translateY(-1px);
}

/* Bildirim Zili */
.notif-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.2s;
    text-decoration: none;
}

.notif-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-color);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e1e1e;
    animation: bounceIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Kullanıcı Profil Alanı & Dropdown */
.user-menu-container {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 15px 6px 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 5px;
}

.profile-name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
}

.profile-role {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(3px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #666;
    transition: 0.2s;
}

.dropdown-item:hover i {
    color: var(--accent-color);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.dropdown-item.logout:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.dropdown-item.logout:hover i {
    color: #e74c3c;
}

/* --- RESPONSIVE HEADER --- */
@media (max-width: 768px) {
    .modern-header {
        width: 100%;
        margin: 0;
        border-radius: 0;
        top: 0;
        padding: 10px 15px;
        flex-wrap: wrap; /* İhtiyaç halinde taşsın */
    }

    .header-logo img {
        height: 35px;
    }

    /* Sağ tarafı (Kullanıcı İşlemleri) düzenle */
    .header-right {
        gap: 10px;
    }

    .btn-panel-mini span {
        display: none; /* Mobilde sadece ikon kalsın */
    }

    .user-profile-btn {
        padding: 0;
        border: none;
        background: none;
        gap: 5px;
    }

    .user-profile-btn .profile-info, 
    .user-profile-btn i {
        display: none; /* İsim ve ok gizlensin, sadece avatar kalsın */
    }
    
    .profile-avatar {
        width: 32px;
        height: 32px;
        margin: 0;
    }

    .dropdown-menu {
        right: 10px;
        width: 200px;
    }

    /* Giriş/Kayıt butonlarını küçült */
    .btn-login {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .btn-login i {
        display: none;
    }
}

/* --- RESPONSIVE MODAL & SCROLL --- */

/* Yan yana inputlar için (Yaş - Cinsiyet) */
.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.input-row .input-group {
    margin-bottom: 0; /* İçindeki margin'i sıfırla */
}

/* Steam Input Grubu */
#regSteamTypeSelect {
    border-radius: 0 !important;
    border-left: none;
    border-right: none;
}

/* Modal Mobil Uyumluluk */
@media (max-width: 768px) {
    .modal-content {
        width: 90%; /* Ekran genişliğinin %90'ı */
        max-width: 400px; /* Tabletlerde çok geniş olmasın */
        padding: 20px;
        margin: auto; /* Ortala */
        
        /* SCROLL AYARLARI */
        max-height: 85vh; /* Ekran yüksekliğinin %85'i kadar olsun */
        overflow-y: auto; /* Dikey kaydırma çubuğu */
        -webkit-overflow-scrolling: touch; /* iOS için yumuşak kaydırma */
        
        /* Pozisyonlama */
        position: relative; 
        top: 50%;
        transform: translateY(-50%); /* Dikey ortalama */
    }

    /* Modal açılış animasyonunu mobilde biraz sadeleştir */
    @keyframes modalPopIn {
        from { opacity: 0; transform: translateY(-40%) scale(0.9); }
        to { opacity: 1; transform: translateY(-50%) scale(1); }
    }

    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .input-row {
        flex-direction: column; /* Inputları alt alta al */
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }

    .input-group label {
        font-size: 11px;
    }

    .input-group input, 
    .input-group select {
        padding: 10px;
        font-size: 13px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 13px;
    }

    .close-btn {
        top: 10px;
    }
}

/* --- LENIS SMOOTH SCROLL START --- */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
/* --- LENIS SMOOTH SCROLL END --- */