/* assets/css/style.css */

/* 1. MODERN FONT VE TEMEL AYARLAR */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@500;700&display=swap');

:root {
    --neon-blue: #00f3ff;
    --neon-pink: #bc13fe;
    --dark-bg: #0a0a12;
    --header-bg: rgba(10, 10, 18, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(188, 19, 254, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.15), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* =========================================
   2. YENİ HEADER TASARIMI (FUTURISTIC & RESPONSIVE)
   ========================================= */

/* Header Sabitleme ve Glass Effect */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    /* Buzlu cam efekti */
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 15px 0;
    transition: 0.3s;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Tasarımı */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    height: 40px;
    /* Logo yüksekliği */
    filter: drop-shadow(0 0 5px var(--neon-blue));
    /* Logoya neon gölge */
    transition: transform 0.3s;
}

.logo-container:hover .logo-img {
    transform: scale(1.1) rotate(-5deg);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    /* Teknolojik font */
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    /* Resim yüklenemezse bu görünür */
}

/* Menü Linkleri (Desktop) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

/* Link Alt Çizgi Animasyonu */
.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--neon-blue);
    transition: width 0.3s ease-in-out;
    box-shadow: 0 0 10px var(--neon-blue);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item:hover {
    color: white;
    text-shadow: 0 0 8px var(--neon-blue);
}

/* Özel Butonlar (Nav İçindeki) */
.btn-register {
    padding: 8px 20px;
    border: 1px solid var(--neon-pink);
    border-radius: 4px;
    color: var(--neon-pink);
    transition: 0.3s;
}

.btn-register:hover {
    background: var(--neon-pink);
    color: white;
    box-shadow: 0 0 20px var(--neon-pink);
}

.btn-register::after {
    display: none;
}

.logout-btn {
    color: #ff4757;
}

.logout-btn:hover {
    color: #ff6b81;
    text-shadow: 0 0 10px red;
}

.admin-link {
    color: lime;
}

.admin-link:hover {
    text-shadow: 0 0 10px lime;
}

.user-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, var(--neon-blue), blue);
    border-radius: 50%;
    margin-right: 5px;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 0 10px var(--neon-blue);
}

/* --- MOBİL MENÜ (HAMBURGER) --- */
.menu-toggle {
    display: none;
    /* Masaüstünde gizli */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 3px;
}

/* Mobil için Responsive Ayarlar */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
        /* Mobilde göster */
    }

    .nav-links {
        position: absolute;
        top: 70px;
        /* Header yüksekliği kadar aşağı */
        left: 0;
        width: 100%;
        background: rgba(10, 10, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 30px;
        transform: translateY(-150%);
        /* Yukarı sakla */
        transition: transform 0.4s ease-in-out;
        border-bottom: 1px solid var(--neon-blue);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateY(0);
        /* Aşağı indir */
    }

    /* Hamburger Animasyonu (X şekli) */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* =========================================
   3. KARTLAR VE KONTEYNER (Glassmorphism)
   ========================================= */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    border-color: var(--neon-blue);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.4rem;
    color: var(--neon-pink);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(188, 19, 254, 0.5);
}

/* 4. BUTONLAR */
.btn,
button {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
}

.btn:hover,
button:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px var(--neon-blue);
}

/* Satın Al butonu özel (Product detayda) */
.btn-buy {
    background: linear-gradient(45deg, var(--neon-pink), #9000ff);
    border: none;
    color: white;
    box-shadow: 0 0 15px var(--neon-pink);
}

.btn-buy:hover {
    background: linear-gradient(45deg, #9000ff, var(--neon-pink));
    box-shadow: 0 0 30px var(--neon-pink);
    transform: scale(1.05);
}

/* 5. FORMLAR (Login, Register, Admin) */
.auth-box,
.admin-container {
    background: rgba(20, 20, 30, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 15px !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5) !important;
    padding: 30px;
}

/* Auth box genişlik ayarı */
.auth-box {
    width: 100%;
    max-width: 400px;
}

input,
textarea,
.file-input,
select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px;
    border-radius: 5px;
    outline: none;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.3);
}

label {
    color: var(--neon-blue);
    margin-bottom: 8px;
    display: block;
}

h1,
h2,
h3 {
    color: white !important;
}

/* 6. UYARI MESAJLARI */
.alert {
    padding: 15px;
    border-radius: 5px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid red;
    color: white;
    margin-bottom: 20px;
}

.alert.success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid lime;
    color: white;
}

/* 7. TABLO TASARIMI (Admin Paneli) */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
}

th {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-blue);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.action-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    margin-right: 5px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-delete {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid red;
    color: red;
}

.btn-delete:hover {
    background: red;
    color: white;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

/* 8. FOOTER TASARIMI */
footer {
    margin-top: 80px;
    padding: 40px 0;
    background: rgba(10, 10, 18, 0.95);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px var(--neon-blue);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

/* 9. PROFİL SAYFASI */
.profile-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(5px);
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    color: white;
}

.info-label {
    color: var(--neon-blue);
    font-weight: 500;
}
/* --- HERO SECTION (ANA SAYFA KARŞILAMA) --- */
.hero-section {
    position: relative;
    height: 80vh;
    /* Ekranın %80'ini kapla */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: -40px;
    /* Header boşluğunu dengelemek için */
    border-bottom: 1px solid var(--glass-border);
    background: radial-gradient(circle at center, rgba(188, 19, 254, 0.1) 0%, rgba(10, 10, 18, 0) 70%);
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-hero {
    background: var(--neon-blue);
    color: #000;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 0 20px var(--neon-blue);
    border: none;
    font-weight: bold;
}

.btn-hero:hover {
    background: white;
    box-shadow: 0 0 40px var(--neon-blue);
    transform: scale(1.05);
}

.btn-outline {
    border: 1px solid white;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* Dekoratif Parlama */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--neon-pink);
    filter: blur(150px);
    opacity: 0.2;
    z-index: 1;
    border-radius: 50%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobilde Hero Yazılarını Küçült */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: auto;
        padding: 100px 0;
    }

    .hero-buttons {
        flex-direction: column;
    }
}
/* --- YENİ EKLENEN ANA SAYFA BÖLÜMLERİ --- */

/* Özellikler (Neden Biz) Bölümü */
.features-section {
    max-width: 1200px;
    margin: -50px auto 50px auto;
    /* Hero'nun üzerine hafif binsin */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.feature-card {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.feat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.feature-card h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* İstatistik Şeridi */
.stats-strip {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 30, 0.9) 50%, rgba(0, 0, 0, 0.8) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: 80px;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto !important;
    /* Container marginini ezmek için */
}

.stat-item {
    text-align: center;
}

.stat-val {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 15px var(--neon-pink);
    font-family: 'Orbitron', sans-serif;
}

.stat-key {
    color: var(--neon-blue);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .features-section {
        margin-top: 30px;
    }

    /* Mobilde üstüne binmesin */
    .stats-strip {
        text-align: center;
    }
}
/* --- FUTURISTIC FOOTER TASARIMI --- */

.glass-footer {
    margin-top: 80px;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    position: relative;
    padding: 60px 0 20px 0;
    overflow: hidden;
}

/* Üst kısımdaki neon çizgi efekti */
.glass-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-pink), transparent);
    box-shadow: 0 0 10px var(--neon-blue);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 250px;
}

.footer-col h4 {
    color: var(--neon-pink);
    margin-bottom: 20px;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Başlıkların altındaki minik çizgi */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background: var(--neon-blue);
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-col a:hover {
    color: white;
    padding-left: 5px; /* Hover olunca hafif sağa kaysın */
    text-shadow: 0 0 5px var(--neon-blue);
}

/* Sosyal Medya Butonları */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-btn:hover {
    color: var(--neon-blue) !important;
}

/* En alt telif kısmı */
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* Mobilde Hizalama */
@media (max-width: 768px) {
    .footer-grid {
        text-align: center;
    }
    .footer-col {
        align-items: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
/* =========================================
   MOBILE RESPONSIVE OVERHAUL (YENİ)
   ========================================= */

@media screen and (max-width: 768px) {
    :root {
        --hero-title-size: 2.2rem;
    }

    /* Konteyner Boşlukları */
    .container {
        padding: 0 15px;
        margin: 20px auto;
    }

    /* Kartların mobilde yan yana gelmesini engelle, dikey yap */
    .profile-grid, .admin-container > div[style*="display:flex"], 
    div[style*="display:flex; gap:40px"], 
    .product-detail-card {
        flex-direction: column !important;
    }

    /* Admin ve Profil sayfalarındaki yan kolon genişliklerini sıfırla */
    div[style*="flex: 1"], div[style*="flex: 2"], .product-image, .product-info {
        width: 100% !important;
        min-width: 100% !important;
    }

    /* Tablo Duyarlılığı: Tablolar taşmasın, sağa kaysın */
    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 10px;
        border-radius: 8px;
    }

    table {
        min-width: 600px; /* Mobilde tablonun daralmasını engelleyip kaydırma sağlar */
    }

    /* Butonları mobilde daha kolay tıklanabilir yap */
    .btn, button {
        padding: 12px 20px;
        width: 100%; /* Çoğu butonu mobilde tam genişlik yapıyoruz */
        text-align: center;
    }

    .nav-links .btn {
        width: auto; /* Navigasyon içindeki butonlar hariç */
    }

    /* Hero Bölümü Düzenlemesi */
    .hero-title {
        font-size: var(--hero-title-size) !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Kategori Filtreleri mobilde kaydırılabilir olsun */
    .category-filters {
        justify-content: flex-start !important;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .cat-btn {
        flex: 0 0 auto;
    }

    /* Sipariş Kalemleri (Profil Sayfası) */
    .order-item {
        flex-direction: column;
        text-align: center;
    }

    .order-item div {
        text-align: center !important;
    }
}

/* Küçük Telefonlar İçin (iPhone SE vb.) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .price {
        font-size: 1.2rem;
    }
}