/* assets/css/layout.css */

/* =========================================
   NAVBAR VE LOGO TASARIMI
========================================= */
.floating-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px); /* macOS Glass Efekti */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.site-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%; /* Logoyu tam yuvarlak yapar */
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid var(--primary); /* Neon mor/mavi çerçeve */
    box-shadow: 0 0 10px var(--primary-glow); /* Dışa doğru parlama */
    transition: all 0.3s ease;
}

.nav-brand:hover .site-logo {
    transform: rotate(5deg) scale(1.05); /* Üzerine gelince çok hafif döner ve büyür */
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Tema Değiştirme Butonu */
.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.theme-btn:hover {
    background: var(--border-color);
}

/* =========================================
   GELİŞMİŞ ANA KARŞILAMA ALANI (HERO)
========================================= */
.hero-section {
    position: relative;
    overflow: hidden; /* Taşmaları ve yan kaymaları engeller */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    background-color: var(--bg-main);
}

/* Arkadaki Cyberpunk Izgara (Grid) */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

[data-theme="light"] .hero-grid-overlay {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Ortadaki Devasa Parlama (Nefes Alan Işık) */
.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: pulseGlow 6s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 5;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.pulse-anim {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.neon-highlight {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
}

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

/* Yüzen Dekoratif Komut Etiketleri */
.floating-command {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: floatAnim 4s infinite ease-in-out alternate;
}

.floating-command::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    border-radius: 12px 0 0 12px;
}

.cmd-1 { top: 25%; left: 10%; animation-delay: 0s; }
.cmd-2 { bottom: 25%; right: 12%; animation-delay: 1.5s; }
.cmd-3 { top: 35%; right: 8%; animation-delay: 0.7s; }
.cmd-4 { top: 45%; right: 5%; animation-delay: 1.0s; }
.cmd-5 { top: 35%; left: 12%; animation-delay: 0s; }
.cmd-6 { top: 45%; left: 7%; animation-delay: 0s; }
.cmd-7 { top: 55%; left: 15%; animation-delay: 0s; }
.cmd-8 { top: 65%; left: 5%; animation-delay: 0s; }
.cmd-9 { top: 15%; left: 14%; animation-delay: 0s; }
.cmd-10 { top: 55%; right: 15%; animation-delay: 1.0s; }
.cmd-11 { top: 62%; right: 5%; animation-delay: 1.0s; }
.cmd-12 { top: 25%; right: 7%; animation-delay: 1.0s; }

@keyframes floatAnim {
    0% { transform: translateY(0px) rotate(-3deg); }
    100% { transform: translateY(-25px) rotate(3deg); }
}

/* Animasyonlu Logo Gösterimi */
.hero-avatar-container {
    margin-top: 60px;
    position: relative;
    width: 160px;
    height: 160px;
}

.hero-main-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-secondary);
    position: relative;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.avatar-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 2px dashed var(--primary);
    animation: spinRing 20s linear infinite;
    opacity: 0.6;
    z-index: 1;
}

@keyframes spinRing {
    100% { transform: rotate(360deg); }
}

/* =========================================
   FOOTER TASARIMI
========================================= */
.site-footer {
    background: var(--bg-secondary);
    padding: 60px 20px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* --- Aydınlık Tema İçin Yüzen Komutlar --- */
[data-theme="light"] .floating-command {
    background: rgba(255, 255, 255, 0.85); /* Camımsı beyaz arka plan */
    border: 1px solid rgba(0, 0, 0, 0.1); /* İnce koyu kenarlık */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* Hafifletilmiş gölge */
}

/* =========================================
   📱 MOBİL UYUM (RESPONSIVE) KUSURSUZLAŞTIRMA
========================================= */
@media (max-width: 768px) {
    /* 1. Yüzen Menü (Mobilde sadeleşir) */
    .floating-nav { 
        width: 95%; 
        top: 15px; 
    }
    /* Kalabalık yapmaması için üst linkleri gizliyoruz, logo ve karanlık mod butonu şıkça kalıyor */
    .nav-links { display: none; } 

    /* 2. Ana Ekran (Hero) Boyutlandırması */
    .hero-section { padding: 120px 15px 40px; }
    .hero-title { font-size: 2.6rem; letter-spacing: -1px; } /* Telefondan taşmayan başlık */
    .hero-subtitle { font-size: 1.05rem; }
    .floating-command { display: none; } /* Karmaşayı önler */

    /* 3. Butonlar (Parmak dostu tam ekran) */
    .hero-buttons { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px; 
    }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* 4. İstatistikler (Alt alta düzenli) */
    .stats-container { 
        flex-direction: column; 
        gap: 30px; 
    }

    /* 5. Discord Vitrini (Telefona sığan embed) */
    .discord-embed { padding: 12px; }
    .embed-grid { flex-direction: column-reverse; } /* Resmi üste alır */
    .embed-fields { display: flex; flex-direction: column; gap: 8px; }
    .embed-field.inline { min-width: 100%; } /* Özellikler alt alta dizer */
    .embed-thumbnail img { width: 60px; height: 60px; }
}