/* ==========================================================================
   GALAXY NINJA CORE CSS (TAILWIND-FREE, OFFLINE READY)
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, 'Space Grotesk', BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #f1f5f9;
}

/* ZOOM KİLİDİ VE ORANTISAL AYARLAR */
@media (min-width: 1000px) {
    html {
        font-size: 1vw !important; 
    }
    .scaling-container {
        width: 80rem; 
        margin: 0 auto;
    }
}
@media (max-width: 999px) {
    html {
        font-size: 16px !important;
    }
    .scaling-container {
        width: 100%;
        padding: 0 1rem;
    }
}



/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #080f1c; }
::-webkit-scrollbar-thumb {
    background: #1e3456;
    border: 1px solid rgba(245, 164, 37, 0.5);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: #FFC72C; }


/* ==========================================================================
   ÖZEL YARDIMCI SINIFLAR (TAILWIND YERİNE)
   ========================================================================== */
.text-white { color: #ffffff; }
.text-yellow { color: #FFC72C; }
.flex-center { display: flex; justify-content: center; align-items: center; gap: 0.5rem; }
.hidden { display: none !important; }

.main-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 1024px) {
    .main-wrapper { padding-top: 6rem; }
}

.hero-section {
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
    margin-top: 4rem;
}
@media (min-width: 768px) {
    .hero-section { margin-top: 8rem; }
}

.portal-link-margin {
    margin-top: 1.5rem;
}

.portal-text {
    margin-top: 1rem;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
@media (min-width: 640px) { .portal-text { font-size: 1rem; } }
@media (min-width: 768px) { .portal-text { font-size: 1.125rem; } }

.enter-btn {
    display: inline-block;
    margin-top: 3rem;
    background-color: #FFC72C;
    color: black;
    font-weight: 900;
    padding: 1rem 3rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    text-decoration: none;
}
.enter-btn:hover {
    background-color: white;
    transform: scale(1.05);
}


/* ==========================================================================
   KAHRAMAN BÖLÜMÜ, TIKLANABİLİR LOGO, BAŞLIKLAR
   ========================================================================== */
.hero-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.glitch-title {
    font-size: 2.50rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 4px 25px rgba(245, 164, 37, 0.4);
}
@media (max-width: 640px) {
    .glitch-title { font-size: 1.3rem; }
}

.seal-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.seal-glow {
    position: absolute;
    inset: 0;
    background: #1e3fb3;
    filter: blur(45px);
    opacity: 0.45;
    border-radius: 50%;
    width: 8rem;
    height: 8rem;
    margin: auto;
}

.seal-box {
    width: 8rem;
    height: 8rem;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 30px rgba(30, 63, 179, 0.7));
}
.hero-link:hover .seal-box {
    transform: scale(1.06);
}
.seal-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   DİL SEÇİCİ KARTLARI
   ========================================================================== */
.lang-container {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 10050;
}
.lang-select {
    background: rgba(15, 23, 42, 0.8);
    color: #FFC72C;
    border: 1px solid #FFC72C;
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.lang-select option {
    background: #080f1c;
    color: #fff;
}

/* ==========================================================================
   ARAMA KARTI & FORMLAR
   ========================================================================== */
.search-card {
    width: 100%;
    max-width: 52rem;
    margin: 2rem auto;
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 164, 37, 0.4);
    border-radius: 1.4rem;
    padding: 2.2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 20;
}
.search-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: #fff;
}
.search-card-subtitle {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0 0 1.6rem 0;
}
.search-form-row {
    display: flex;
    gap: 0.8rem;
}
@media (max-width: 640px) {
    .search-form-row { flex-direction: column; }
}
.search-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #4b5563;
    color: #fff;
    padding: 0.9rem 1.2rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.search-input:focus { border-color: #FFC72C; }
.search-btn {
    background: #FFC72C;
    color: #000;
    font-weight: 900;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(245, 164, 37, 0.3);
}
.search-btn:hover {
    background: #fff;
    transform: scale(1.03);
}

/* ==========================================================================
   ÖZELLİKLER (FEATURES)
   ========================================================================== */
.features-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.feature-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(245, 164, 37, 0.25);
    border-radius: 1.2rem;
    padding: 2.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(18px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.feature-card:hover {
    border-color: rgba(245, 164, 37, 0.8);
    transform: translateY(-0.35rem);
    box-shadow: 0 15px 40px rgba(245, 164, 37, 0.25);
    background: rgba(15, 23, 42, 0.9);
}
.feature-icon-circle {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(245, 164, 37, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}
.feature-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.8rem 0;
    color: #fff;
}
.feature-desc {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   İNTRO & UZAY EFEKTİ & FOOTER KAYAN YAZI
   ========================================================================== */
#intro-container {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#three-canvas-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}
#warp-container {
    position: absolute;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
    display: none;
}
#warp-canvas { width: 100%; height: 100%; }

#flash-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10005;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-out;
}
#hud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 10001;
}
#hud h1 {
    color: #FFC72C;
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    text-shadow: 0 0 20px rgba(245, 164, 37, 0.8);
    margin: 0 0 0.8rem 0;
    opacity: 0;
    animation: fadeInOut 6s ease-in-out forwards;
}
#hud p {
    color: rgba(153, 204, 255, 0.8);
    font-size: 0.95rem;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    animation: fadeInOut 6s ease-in-out 1s forwards;
}
#speed-line {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 0.15rem;
    z-index: 10001;
    pointer-events: none;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: scale(0.95); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.05); }
}

.skip-button {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 10002;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid #FFC72C;
    color: #FFC72C;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.12rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
}
.skip-button.show { opacity: 1; transform: translateY(0); }
.skip-button:hover { background: #FFC72C; color: #000; box-shadow: 0 0 25px rgba(245, 164, 37, 0.7); }

#main-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    display: none;
}
#main-content.visible { opacity: 1; transform: scale(1); }

.marquee-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(245, 164, 37, 0.35);
    padding: 0.75rem 0;
    overflow: hidden;
    z-index: 9998;
    contain: paint layout;
    transform: translateZ(0);
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    color: #FFC72C;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation: marquee-scroll 60s linear infinite;
}
@keyframes marquee-scroll {
    0% { transform: translate3d(100vw, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   AUTH (GİRİŞ/KAYIT) SAYFASI ÖZEL TASARIMLARI
   ========================================================================== */
.auth-wrapper {
    justify-content: center;
    min-height: 80vh;
}

.glass-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 164, 37, 0.4);
    border-radius: 1.5rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 28rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    margin-bottom: 2rem;
    position: relative;
    z-index: 20;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-seal {
    width: 100%;
    max-width: 8rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(245, 164, 37, 0.5));
    transition: transform 0.3s ease;
}

.auth-seal:hover {
    transform: scale(1.05);
}

.auth-title {
    color: #FFC72C;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label-federal {
    display: block;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.form-control-federal {
    width: 100%;
    background: rgba(8, 15, 28, 0.9);
    border: 1px solid #4b5563;
    color: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-control-federal:focus {
    border-color: #FFC72C;
    box-shadow: 0 0 15px rgba(245, 164, 37, 0.2);
}

.btn-gold-federal {
    width: 100%;
    background: #FFC72C;
    color: #000;
    font-weight: 900;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 164, 37, 0.3);
    margin-top: 0.5rem;
}

.btn-gold-federal:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 164, 37, 0.5);
}

.btn-register-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.2rem;
}

.btn-register-link:hover {
    color: #FFC72C;
    border-bottom-color: #FFC72C;
}

.ajax-alert {
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid currentColor;
}