/*
Theme Name: Fantazi Bahis Tema
Theme URI: https://seninsiten.com
Author: Kral ve Yapay Zeka
Description: Fantazi Bahis projesi için özel Black & Gold tema.
Version: 2.1
*/

/* --- 1. DEĞİŞKENLER VE TEMEL AYARLAR --- */
:root {
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --bg-header: #000000;
    --gold: #D4AF37;
    --gold-hover: #b4942b;
    --silver: #C0C0C0;
    --silver-dim: #757575;
    --text-main: #E0E0E0;
    --text-muted: #a0a0a0;
    --border-color: #333333;
    --success: #2ecc71;
    --danger: #e74c3c;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 80px; /* Mobilde alt menü payı */
    line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: 0.2s; }
a:hover { color: #fff; text-shadow: 0 0 5px rgba(212, 175, 55, 0.4); }

/* --- 2. ÖZEL SCROLLBAR (PREMIUM HİSSİYAT) --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-hover); }

/* --- 3. GLOBAL FORM ELEMENTLERİ --- */
input, textarea, select, button { font-family: inherit; }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="date"],
textarea, select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
    background-color: #252525;
}

/* --- 4. GLOBAL BUTONLAR --- */
button, input[type="submit"], .button, .wp-block-button__link {
    display: inline-block;
    background-color: var(--gold);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

button:hover, input[type="submit"]:hover {
    background-color: var(--gold-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.2);
}

/* --- 5. GLOBAL TABLOLAR --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

thead { background: #000; border-bottom: 2px solid var(--gold); }
th { padding: 15px; text-align: left; font-weight: bold; color: var(--gold); text-transform: uppercase; font-size: 12px; }
td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); color: var(--text-main); font-size: 14px; }
tr:last-child td { border-bottom: none; }

/* --- 6. HEADER (ÜST MENÜ) --- */
header.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.desktop-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.desktop-menu .menu-item {
    display: inline-block;
}

.desktop-menu a {
    color: var(--silver);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.desktop-menu a:hover, .desktop-menu .current-menu-item > a { color: var(--gold); }

/* --- 7. MOBİL MENÜ TASARIMI (GÜNCELLENMİŞ VE SABİTLENMİŞ) --- */
.mobile-bottom-nav {
    display: none; /* Masaüstünde gizli */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    border-top: 2px solid var(--gold);
    z-index: 1000;
    justify-content: space-between;
    padding: 0;
    height: 65px;
    box-shadow: 0 -5px 25px rgba(0,0,0,1);
}

.mobile-nav-item {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

/* DİKKAT: Burada font-family !important ile zorlanıyor. 
   Dashicons'un görünmeme sorunu burada çözülüyor. 
*/
.mobile-nav-item .dashicons {
    font-family: "dashicons" !important; 
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #555;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Aktif Sayfa ve Hover Durumu */
.mobile-nav-item.active, .mobile-nav-item:hover {
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.mobile-nav-item.active .dashicons, .mobile-nav-item:hover .dashicons {
    color: var(--gold);
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Aktif olana nokta koy */
.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 10px;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--gold);
}

/* --- 8. GENEL DÜZEN --- */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    min-height: 60vh;
}

h1, h2, h3 { color: #fff; margin-top: 0; }
p { color: var(--text-main); }

/* --- 9. RESPONSIVE --- */
@media (max-width: 900px) {
    .desktop-menu { display: none; }
    .mobile-bottom-nav { display: flex; }
    footer.site-footer { display: none; }
    .header-inner { justify-content: center; padding: 10px; }
    .container { margin-top: 15px; }
}

/* --- 10. WP BİLDİRİM KUTULARI --- */
div.wpcf7-response-output, .woocommerce-message, .woocommerce-error {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 4px;
    padding: 15px;
}
/* Mobil Avatar Stili */
.mobile-avatar-item {
    position: relative;
}

.mobile-avatar-img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
    display: block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-avatar-item:hover .mobile-avatar-img,
.mobile-avatar-item.active .mobile-avatar-img {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    border-color: #fff;
}

/* Avatar yüklenene kadar placeholder */
.mobile-avatar-img.avatar {
    background: #333;
}
/* Footer Ortalaması */
footer.site-footer {
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}