/* ==========================================================================
   GALAXY NINJA CORE CSS (ZOOM PROPORTION LOCKED & STANDALONE)
   ========================================================================== */

*, *::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;
    background-color: #080f1c;
    color: #f1f5f9;
}

/* Masaüstü: Ekran en/boyuna kilitli akıcı oran (CTRL +/- yapıldığında oran sabit kalır) */
@media (min-width: 1024px) {
    html {
        font-size: min(1.12vw, 1.68vh);
    }
}

/* Mobil: Doğal ve okunabilir standart mobil görünüm */
@media (max-width: 1023px) {
    html {
        font-size: 16px; 
    }
}

/* 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: #f5a425;
}

/* Arka Plan */
.site-body {
    background-image: url("/galaxy-ninja-bg.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
    padding-bottom: 5rem;
}

.site-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
}

/* Container-Fluid */
.page-container {
    width: 100%;
    max-width: 96%;
    margin: 0 auto;
    padding: 5rem 1rem 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 1440px) {
    .page-container {
        max-width: 1400px;
    }
}

.accent-orange {
    color: #f5a425;
}
.hidden {
    display: none !important;
}

/* Tıklanabilir Logo & Header */
.hero-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

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

.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: 11rem;
    height: 11rem;
    margin: auto;
}

.seal-box {
    width: 10rem;
    height: 10rem;
    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;
}

.hero-slogan {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-top: 0.6rem;
}

/* Dil Seçici */
.lang-container {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 10050;
}

.lang-btn {
    background: rgba(11, 19, 34, 0.95);
    color: #f5a425;
    border: 2px solid rgba(245, 164, 37, 0.6);
    padding: 0.6rem 1.1rem;
    border-radius: 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}
.lang-btn:active {
    transform: scale(0.96);
}

.icon-globe { font-size: 1rem; }
.chevron { font-size: 0.7rem; transition: transform 0.2s ease; }
.rotate-180 { transform: rotate(180deg); }

.lang-menu {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    width: 19rem;
    background: rgba(11, 19, 34, 0.98);
    border: 1px solid rgba(245, 164, 37, 0.5);
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 10060;
}

.lang-search-wrapper {
    padding: 0.7rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.8);
    background: #080f1c;
}

.lang-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #374151;
    color: #fff;
    padding: 0.65rem 0.9rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    outline: none;
}
.lang-search-input:focus {
    border-color: #f5a425;
}

.lang-list {
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.lang-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.1rem;
    text-decoration: none;
    color: #e2e8f0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    transition: background 0.2s ease;
}
.lang-item:hover,
.lang-item.active {
    background: rgba(245, 164, 37, 0.2);
    color: #f5a425;
}

.lang-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    background: rgba(0, 0, 0, 0.6);
    color: #f5a425;
    border: 1px solid rgba(245, 164, 37, 0.3);
}

.lang-select {
    background: rgba(8, 15, 28, 0.95);
    color: #f5a425;
    border: 1px solid #f5a425;
    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 Kartı */
.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(0, 0, 0, 0.7);
    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: #f5a425;
}

.search-btn {
    background: #f5a425;
    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);
}

/* 3 Temel Özellik */
.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.75);
    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;
}

/* Manifesto & 3 Master Panel */
.manifesto-header {
    text-align: center;
    margin: 2.5rem 0 1.5rem 0;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    background: rgba(245, 164, 37, 0.15);
    border: 1px solid rgba(245, 164, 37, 0.4);
    color: #f5a425;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.manifesto-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.manifesto-subtitle {
    font-size: 1rem;
    color: #cbd5e1;
    margin-top: 0.6rem;
}

.master-panel {
    width: 100%;
    border-radius: 1.5rem;
    background: rgba(9, 16, 29, 0.95);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    overflow: hidden;
    margin: 1.5rem 0;
}

.border-blue { border: 1px solid rgba(59, 130, 246, 0.4); }
.border-purple { border: 1px solid rgba(168, 85, 247, 0.4); }
.border-emerald { border: 1px solid rgba(16, 185, 129, 0.4); }

.panel-terminal-bar {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #1f2937;
    padding: 0.9rem 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    display: inline-block;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-label {
    font-family: monospace;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-left: 0.8rem;
    text-transform: uppercase;
}
@media (max-width: 640px) {
    .terminal-label {
        display: none;
    }
}

.badge-tag {
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.tag-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}
.tag-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
}
.tag-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.panel-body {
    padding: 2.2rem;
}

.panel-heading {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lead-quote {
    padding: 1.3rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.6rem;
    color: #e2e8f0;
}
.quote-blue {
    background: rgba(30, 58, 138, 0.3);
    border-left: 4px solid #3b529e;
}
.quote-purple {
    background: rgba(88, 28, 135, 0.3);
    border-left: 4px solid #9333ea;
}
.quote-emerald {
    background: rgba(6, 78, 59, 0.3);
    border-left: 4px solid #059669;
}

/* 4 Sütunlu Boşluksuz Izgara */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    width: 100%;
}

.info-block {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #1f2937;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.info-block:hover {
    border-color: rgba(245, 164, 37, 0.5);
    transform: translateY(-2px);
}

.grid-col-span-2,
.grid-col-span-full {
    grid-column: 1 / -1 !important;
}

.info-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.7rem 0;
    color: #fff;
}

.info-text {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.panel-outro {
    font-size: 0.92rem;
    font-style: italic;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid #1f2937;
    line-height: 1.5;
}
.text-blue { color: #93c5fd; }
.text-purple { color: #d8b4fe; }
.text-emerald { color: #6ee7b7; }

/* Tablet & Küçük Masaüstü (2x2) */
@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Mobil (Tek Sütun) */
@media (max-width: 680px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Promo Bannerlar */
.promo-banner {
    width: 100%;
    margin: 1.8rem 0;
    padding: 2rem 2.2rem;
    border-radius: 1.2rem;
    background: linear-gradient(135deg, #14233c, #080f1c);
    border: 1px solid rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
@media (max-width: 768px) {
    .promo-banner {
        flex-direction: column;
        text-align: center;
    }
}

.promo-content { flex: 1; }
.promo-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f5a425;
    margin: 0 0 0.5rem 0;
}
.promo-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.promo-btn {
    white-space: nowrap;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}
.promo-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.8);
}

/* İntro / Warp */
#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: #f5a425;
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    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(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid #f5a425;
    color: #f5a425;
    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: #f5a425; 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); }

/* Arama Sonuçları (search.php) */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #f5a425;
    font-size: 0.9rem;
    font-style: italic;
    margin: 1.2rem 0;
}

.spinner {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(245, 164, 37, 0.2);
    border-top-color: #f5a425;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-box {
    text-align: left;
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(245, 164, 37, 0.35);
    border-radius: 1.2rem;
    padding: 1.8rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(16px);
}

.result-status-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #f5a425;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.6);
    padding-bottom: 0.8rem;
    margin-bottom: 1.2rem;
}

.result-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.result-link-wrapper {
    text-decoration: none;
    display: block;
}

.result-url-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
    word-break: break-all;
}

.badge-dweb {
    background: #374151;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    text-transform: uppercase;
}

.result-entry-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #60a5fa;
    margin: 0 0 0.4rem 0;
    transition: color 0.2s ease;
}
.result-link-wrapper:hover .result-entry-title {
    color: #93c5fd;
    text-decoration: underline;
}

.result-entry-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

/* GPU İvmeli Akıcı Footer */
.marquee-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 15, 28, 0.96);
    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: #f5a425;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    animation: marquee-scroll 60s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translate3d(100vw, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}