/* ==========================================================================
   TORNADOCMS - BUZ MAVİSİ (ICE BLUE) TEMA GÜNCELLEMESİ
   ========================================================================== */

:root {
    --primary-color: #06b6d4;      /* Buz Mavisi (Cyan 500) */
    --secondary-color: #0f172a;    /* Koyu Deniz Mavisi (Slate 900) */
    --background-color: #020617;   /* Hiçlik/Gece (Slate 950) */
    --text-color: #ffffff;
    --border-color: #1e293b;
    --hover-color: #3b82f6;        /* Vurgu Mavi (Blue 500) */
    --gradient-start: #22d3ee;
    --gradient-end: #3b82f6;
    --ai-primary: #06b6d4;
    --ai-text: #ffffff;
    --ai-hover: #3b82f6;
    --ai-animation-normal: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.header {
    height: 80px;
    background-color: rgba(15, 23, 42, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
}

.logo { display: flex; align-items: center; }
.nav-logo { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.5rem; }

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.nav-links a i { font-size: 1rem; opacity: 0.9; }
.nav-links a:hover { color: var(--text-color); background: rgba(255, 255, 255, 0.03); transform: translateY(-1px); }
.nav-links a.active { color: var(--primary-color); background: rgba(6, 182, 212, 0.08); font-weight: 600; }
.nav-links a.active i { color: var(--primary-color); }

/* Giriş/Kayıt Sayfası Stilleri */
.auth-container {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 100px;
}

.auth-box {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo img { max-width: 200px; height: auto; }
.auth-title { text-align: center; font-size: 1.8rem; color: var(--text-color); margin-bottom: 2rem; font-weight: 600; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; color: var(--text-color); font-size: 0.9rem; }

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(6, 182, 212, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--hover-color));
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(6, 182, 212, 0.2); }
.auth-links { text-align: center; margin-top: 1.5rem; }
.auth-links a { color: var(--primary-color); text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease; }
.auth-links a:hover { color: var(--hover-color); }

/* Ana İçerik ve Kasa Sayfası */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
    background-color: var(--background-color);
}

.cases-container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 3rem; }

.case-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(6, 182, 212, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, transparent, rgba(6, 182, 212, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.case-card:hover::before { transform: translateX(100%); }
.case-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(6, 182, 212, 0.1); }

.case-image {
    width: 100%; height: 200px; margin-bottom: 1rem; border-radius: 10px; overflow: hidden; position: relative;
}

.case-image::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.5), transparent);
}

.case-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.case-card:hover .case-image img { transform: scale(1.05); }

.case-info h3 { color: var(--text-color); font-size: 1.2rem; margin-bottom: 1rem; font-weight: 600; }
.case-price { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; color: var(--primary-color); margin-bottom: 1rem; }
.case-stats { display: flex; justify-content: space-between; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 1.5rem; padding: 0.5rem; background: rgba(255, 255, 255, 0.03); border-radius: 8px; }

.open-case-btn {
    width: 100%; padding: 1rem; background: linear-gradient(45deg, var(--primary-color), var(--hover-color));
    border: none; border-radius: 10px; color: var(--text-color); font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}

.open-case-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;
}

.open-case-btn:hover::before { left: 100%; }
.open-case-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(6, 182, 212, 0.2); }

/* Modal & Animasyon (Mavi Tema Uyarlaması) */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 9000; backdrop-filter: blur(10px); }
.modal-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 800px; background: rgba(15, 23, 42, 0.98); border-radius: 20px; border: 1px solid rgba(6, 182, 212, 0.1); box-shadow: 0 0 50px rgba(0, 0, 0, 0.5); overflow: hidden; }

.item-value { background: rgba(6, 182, 212, 0.1); }
.selector { background: var(--primary-color); box-shadow: 0 0 30px var(--primary-color); }
.selector::before, .selector::after { background: var(--primary-color); }

@keyframes wonItemGlow {
    from { box-shadow: 0 0 20px rgba(6, 182, 212, 0.2); }
    to { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4); }
}

.history-section { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.history-section h2 { border-bottom: 1px solid rgba(6, 182, 212, 0.1); }

/* Profil Sayfası */
.profile-header { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.profile-avatar { border: 4px solid var(--primary-color); box-shadow: 0 0 30px rgba(6, 182, 212, 0.3); }
.profile-avatar:hover { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4); }

.stat { border: 1px solid rgba(6, 182, 212, 0.1); }
.profile-transactions, .profile-settings { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.transaction-section h3 { border-bottom: 1px solid rgba(6, 182, 212, 0.1); }
.transaction-item:hover { border-color: rgba(6, 182, 212, 0.2); }
.transaction-amount { background: rgba(6, 182, 212, 0.1); }

.form-group input { border: 2px solid rgba(6, 182, 212, 0.1); }
.form-group input:focus { box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1); }

/* Market Sayfası */
.server-selector { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.server-item.active { background: rgba(6, 182, 212, 0.1); border-color: var(--primary-color); }
.store-categories { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.category-item:first-child { border-bottom: 1px solid rgba(6, 182, 212, 0.1); }
.category-item.active { background: rgba(6, 182, 212, 0.1); border-color: var(--primary-color); }

.store-item { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.item-info { background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98)); }
.duration { background: rgba(6, 182, 212, 0.1); }

/* Hero Container (Ana Sayfa) */
.hero-container {
    background: linear-gradient(rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.95)), url('../images/hero-bg.jpg') center/cover fixed;
}
.hero-container::before {
    background: radial-gradient(circle at center, transparent 0%, rgba(2, 6, 23, 0.3) 50%, rgba(2, 6, 23, 0.8) 100%);
}
.hero-logo img { filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.2)); }
.server-ip { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.3); }
.server-ip::before { background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent); }
.user-popup { background: rgba(15, 23, 42, 0.98); border: 1px solid rgba(6, 182, 212, 0.1); }
.user-popup::before { background: rgba(15, 23, 42, 0.98); border-left: 1px solid rgba(6, 182, 212, 0.1); border-top: 1px solid rgba(6, 182, 212, 0.1); }

/* Blog Kartları ve Sağ Panel */
.blog-card { border: 1px solid rgba(6, 182, 212, 0.1); }
.latest-users { background: rgba(15, 23, 42, 0.95); }
.user-card:hover { background: rgba(6, 182, 212, 0.03); }
.user-count { background: rgba(6, 182, 212, 0.1); }

.latest-purchases { background: rgba(15, 23, 42, 0.95); }
.purchase-card:hover { background: rgba(6, 182, 212, 0.03); }
.purchase-price { background: rgba(6, 182, 212, 0.1); }

.latest-transactions { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.transaction-card { border: 1px solid rgba(6, 182, 212, 0.05); }
.transaction-card:hover { background: rgba(6, 182, 212, 0.02); }
.no-transactions { border: 1px dashed rgba(6, 182, 212, 0.1); }

.blog-detail { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.blog-detail .blog-header { background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8)); }

/* Ticket Sistemi */
.ticket-card { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.ticket-category { background: rgba(6, 182, 212, 0.1); }
.no-tickets { background: rgba(15, 23, 42, 0.95); border: 1px dashed rgba(6, 182, 212, 0.2); }
.ticket-form, .reply-form { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.form-group input, .form-group select, .form-group textarea { border: 1px solid rgba(6, 182, 212, 0.1); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.1); }
.message.admin .message-content { background: rgba(6, 182, 212, 0.1); }
.admin-badge { background: linear-gradient(45deg, #06b6d4, #3b82f6); color: #fff; }
.message.admin .message-avatar img { border-color: #06b6d4; }
.view-ticket-btn { box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.2); }
.view-ticket-btn:hover { box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25); }
.ticket-detail-header { background: linear-gradient(45deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95)); border: 1px solid rgba(6, 182, 212, 0.1); }
.meta-item { border: 1px solid rgba(6, 182, 212, 0.05); }

/* Bakiye / Coin Sayfası */
.coins-add-section, .coins-history-section { background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(6, 182, 212, 0.1); }
.section-title { border-bottom: 1px solid rgba(6, 182, 212, 0.1); }
.coins-info { border: 1px solid rgba(6, 182, 212, 0.05); }
.total-price { background: rgba(6, 182, 212, 0.1); }
.transaction-item { border: 1px solid rgba(6, 182, 212, 0.05); }
.transaction-item:hover { background: rgba(6, 182, 212, 0.02); }

/* Preloader */
.loading-bar { background: rgba(6, 182, 212, 0.1); }