:root {
    --bg-base: #080C16; /* Very dark blue/black */
    --primary: #10B981; /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.5);
    --secondary: #3B82F6; /* Diamond Blue */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    background-image: linear-gradient(rgba(8, 12, 22, 0.6), rgba(8, 12, 22, 0.85)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Abstract Shapes */
.bg-shape {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    border-radius: 50%;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, rgba(8,12,22,0) 70%);
}

.shape-2 {
    bottom: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(8,12,22,0) 70%);
}

/* Glass Navbar */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    padding: 0.8rem 2rem;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

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

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    margin-bottom: 5rem;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.3rem;
    font-weight: 500;
    color: #F8FAFC;
    line-height: 1.6;
    margin-bottom: 3rem;
    padding: 0 2rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.action-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-glow {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px -10px var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px var(--primary);
    background: #0ea5e9; /* Shift to secondary hue */
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s, border-color 0.3s;
    text-align: left;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
}

.clickable-card {
    cursor: pointer;
}

.highlight-card {
    background: linear-gradient(180deg, rgba(16,185,129,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(16,185,129,0.2);
}

.user-profile {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    color: #ff4757;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.logout-btn:hover {
    color: #ff6b81;
    transform: translateX(3px);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .action-group {
        flex-direction: column;
    }
    .glass-nav {
        top: 10px;
        width: 95%;
        padding: 0.8rem 1.5rem;
    }
}

/* Modal Styling */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 800px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    color: #fff;
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    background: var(--primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: background 0.3s, transform 0.2s;
}

.close-modal:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.modal-gif {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-caption {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
}

/* Wiki Page Styling */
.wiki-body {
    background: url('assets/hero-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
}

.wiki-container {
    display: flex;
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 20px;
    gap: 30px;
    align-items: flex-start;
}

.wiki-sidebar {
    flex: 0 0 250px;
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
    display: block;
    padding: 0.3rem 0;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    color: var(--primary);
}

.wiki-content {
    flex: 1;
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
}

.wiki-page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.wiki-lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.wiki-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 2rem 0;
}

.wiki-section {
    margin-bottom: 3rem;
}

.wiki-section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wiki-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem;
}

.wiki-card p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.wiki-card ol, .wiki-card ul {
    margin-left: 1.5rem;
    line-height: 1.6;
}

.wiki-card li {
    margin-bottom: 0.5rem;
}

.wiki-card code {
    background: rgba(255,255,255,0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--primary);
}

.boss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.boss-item {
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.boss-item h4 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.boss-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .wiki-container {
        flex-direction: column;
    }
    .wiki-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
}

/* --- LOGIN & CHAT UI --- */

/* Login Modal Specific */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
.login-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}
.login-input:focus {
    outline: none;
    border-color: var(--primary);
}
.btn-login {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: bold;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.4);
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}
.auth-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.auth-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}
.auth-tab:hover:not(.active) {
    color: #fff;
}

/* Chat Widget Button */
.chat-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(26, 188, 156, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}
.chat-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 25px rgba(26, 188, 156, 0.6);
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: rgba(8, 12, 22, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.02);
    border-radius: 12px 12px 0 0;
}
.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.close-chat {
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s ease;
}
.close-chat:hover {
    opacity: 1;
}

/* ==========================================================================
   Overview (Keşfet) Page Styles
   ========================================================================== */
.overview-main {
    padding: 100px 5% 50px;
    display: flex;
    justify-content: center;
}

.overview-container {
    max-width: 1000px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.overview-banner {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.overview-banner img {
    width: 100%;
    height: auto;
    display: block;
}

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

.faint-text {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.overview-title {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.mod-count {
    color: #a0a0a0;
    font-size: 1rem;
}

.overview-warnings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.warning-box {
    border-top: 1px solid #ff4757;
    border-bottom: 1px solid #ff4757;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-main);
    background: rgba(255, 71, 87, 0.05);
}

.warning-box strong {
    color: #f1c40f;
}

.overview-description {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.05rem;
}

.overview-description strong {
    color: var(--text-main);
}

.core-features-section {
    margin-top: 4rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 8px;
}

.feature-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-col p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ready-text {
    text-align: center;
    margin: 3rem 0;
    font-size: 1.5rem;
    color: #ff4757;
    font-style: italic;
}

.gallery-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    border: 1px solid #ff4757;
    padding: 1.5rem;
    background: #2a2a2a;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.gallery-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.gallery-text .text-red {
    color: #ff4757;
    font-size: 1rem;
    font-weight: 400;
}

.mods-grid-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.mods-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #222;
    padding: 2rem;
    gap: 2rem;
}

.mods-row.alt-bg {
    background: #1a1a1a;
}

.category-title {
    color: #ff4757;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mod-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mod-list li {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.mod-list li::before {
    content: "•";
    color: #555;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.mod-list li strong {
    color: #fff;
}

.boss-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.boss-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid rgba(255, 71, 87, 0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.boss-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.boss-card:hover {
    transform: translateY(-10px);
    border-color: #ff4757;
}

.boss-card:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .features-grid, .gallery-section, .mods-row, .boss-grid {
        grid-template-columns: 1fr;
    }
}

/* Google Translate Hiding */
.goog-te-banner-frame.skiptranslate, 
#google_translate_element, 
.VIpgJd-ZVi9od-ORHb-OEVmcd, 
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf, 
iframe.skiptranslate, 
#goog-gt-tt { 
    display: none !important; 
    visibility: hidden !important;
}
html, body { top: 0px !important; position: static !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.chat-message.system {
    background: rgba(26, 188, 156, 0.1);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.chat-message.user {
    background: var(--primary);
    color: var(--bg-dark);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}
.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 8px 15px;
    color: #fff;
    font-family: inherit;
}
.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}
.chat-send {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}
.chat-send:hover {
    transform: scale(1.1);
}
