﻿/* --- ORTAK ÇEKİRDEK VE ARKA PLAN --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #050505 url('img/black-mesa-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body::before {
    content: ""; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.85); z-index: -1;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed; inset: 0; background: #000; z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-content { text-align: center; }
.loader-logo { height: 80px; filter: drop-shadow(0 0 15px #f58220); margin-bottom: 20px; animation: pulse 2s infinite ease-in-out; }
.loader-bar { width: 200px; height: 3px; background: #111; margin: 0 auto; border-radius: 10px; overflow: hidden; }
.progress { width: 0%; height: 100%; background: #f58220; animation: load 2s linear forwards; }
.loader-text { display: block; margin-top: 15px; font-size: 0.6rem; letter-spacing: 3px; color: #f58220; font-weight: 700; }

/* --- NAVBAR --- */
#main-wrapper { opacity: 0; transition: opacity 0.8s ease; visibility: hidden; flex: 1; display: flex; flex-direction: column; }
#main-wrapper.visible { opacity: 1; visibility: visible; }

.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 8%; background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 2000;
    border-bottom: 1px solid rgba(245, 130, 32, 0.2);
}
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; text-decoration: none; color: #fff;}
.logo img { height: 40px; }
.orange-text { color: #f58220; }

.nav-links { display: flex; list-style: none; gap: 30px; transition: 0.5s ease-in-out; }
.nav-links a {
    color: #aaa; text-decoration: none; font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: #f58220; }

.menu-btn { display: none; width: 30px; height: 20px; cursor: pointer; z-index: 2100; position: relative; }
.menu-btn__burger, .menu-btn__burger::before, .menu-btn__burger::after {
    width: 30px; height: 3px; background: #f58220; position: absolute; transition: 0.4s;
}
.menu-btn__burger::before { content: ''; transform: translateY(-8px); }
.menu-btn__burger::after { content: ''; transform: translateY(8px); }
.menu-btn.open .menu-btn__burger { background: transparent; transform: translateX(-20px); }
.menu-btn.open .menu-btn__burger::before { transform: rotate(45deg) translate(15px, -15px); }
.menu-btn.open .menu-btn__burger::after { transform: rotate(-45deg) translate(15px, 15px); }

@media (max-width: 992px) {
    .menu-btn { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: rgba(10, 10, 10, 0.98); flex-direction: column;
        justify-content: center; align-items: center; z-index: 2050;
    }
    .nav-links.open { right: 0; }
    .nav-links li { margin: 15px 0; }
    .nav-links a { font-size: 1.2rem; }
}

/* --- MOD SAYFASI ÖZEL TASARIMI --- */
.page-header { text-align: center; padding: 50px 20px 30px; }
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); color: #f58220; text-transform: uppercase; letter-spacing: 2px; }
.page-header p { color: #888; margin-top: 10px; font-weight: 700; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ARAMA ÇUBUĞU */
.search-container { max-width: 600px; margin: 0 auto 40px; position: relative; padding: 0 20px; }
.search-container input {
    width: 100%; background: rgba(15, 15, 15, 0.8); border: 1px solid rgba(245, 130, 32, 0.4);
    padding: 15px 20px 15px 50px; border-radius: 30px; color: #fff; font-family: inherit; font-size: 1rem;
    outline: none; backdrop-filter: blur(10px); transition: 0.3s;
}
.search-container input:focus { border-color: #f58220; box-shadow: 0 0 15px rgba(245, 130, 32, 0.2); }
.search-container i { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); color: #f58220; }

/* MOD KARTLARI (GRID) */
.mod-grid {
    max-width: 1200px; margin: 0 auto 60px; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; padding: 0 20px;
}

.mod-card {
    background: rgba(15, 15, 15, 0.6); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px; overflow: hidden; backdrop-filter: blur(10px); transition: 0.4s;
    display: flex; flex-direction: column;
}
.mod-card:hover { border-color: #f58220; transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 130, 32, 0.1); }

.mod-img { width: 100%; height: 180px; object-fit: cover; border-bottom: 2px solid rgba(245, 130, 32, 0.2); }

.mod-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.mod-title { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.mod-author { font-size: 0.8rem; color: #f58220; font-weight: 700; margin-bottom: 15px; text-transform: uppercase; }

.mod-tags { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.mod-tag { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255,255,255,0.1); padding: 3px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; color: #aaa; }

.mod-desc { font-size: 0.9rem; color: #ccc; line-height: 1.5; margin-bottom: 25px; flex: 1; }

.mod-btn {
    background: transparent; color: #f58220; border: 1px solid #f58220; padding: 10px 15px;
    border-radius: 8px; font-weight: 800; text-align: center; text-decoration: none;
    transition: 0.3s; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
}
.mod-btn:hover { background: #f58220; color: #000; }

.no-results { display: none; text-align: center; color: #ff0000; font-weight: 800; grid-column: 1 / -1; padding: 40px; background: rgba(255,0,0,0.1); border-radius: 10px; border: 1px solid #ff0000; }

@keyframes load { to { width: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.95); } }