/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root {
    --bg: #0d0d0d;
    --card-bg: #1a1a1a;
    --inner-bg: #121212;
    --accent: #ffcc00;
    --accent-glow: rgba(255, 204, 0, 0.35);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: #2d2d2d;
    --mod-color: #4cd137; /* Πράσινο για Mods */
    --pack-color: #00a8ff; /* Μπλε για Packs */
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-top: 100px; /* Για το fixed nav */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   2. NAVIGATION BAR
   ========================================================================== */
.main-nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-logo {
    height: 45px;
    transition: transform 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-item {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(255, 204, 0, 0.1);
    color: var(--accent);
}

/* ==========================================================================
   3. PAGE LOADER (OVERLAY)
   ========================================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-text {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

.loader-bar-container {
    width: 100%;
    height: 4px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    animation: loadingAnim 2s infinite ease-in-out;
}

@keyframes loadingAnim {
    0% { width: 0%; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0%; left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   4. MAIN CONTENT CONTAINER & TITLES
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto 50px auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    text-align: center;
    color: var(--accent);
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 900;
}

/* ==========================================================================
   5. FILTERS SECTION
   ========================================================================== */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    background: var(--inner-bg);
    padding: 15px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.filter-btn {
    background-color: #242424;
    color: var(--text-muted);
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background-color: #333;
    color: white;
}

.filter-btn.active {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ==========================================================================
   6. MODS GRID & CARDS
   ========================================================================== */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.mod-card {
    background-color: var(--inner-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mod-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-header {
    position: relative;
    height: 160px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
}

.type-badge.mod { background: var(--mod-color); color: #000; }
.type-badge.resourcepack { background: var(--pack-color); color: #fff; }

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mod-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: var(--text-main);
}

.mod-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.mod-author span {
    color: var(--accent);
    font-weight: 600;
}

.mod-desc {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   7. DOWNLOAD BUTTONS
   ========================================================================== */
.download-link {
    background-color: #242424;
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    margin-top: auto;
}

.download-link:hover {
    background-color: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.main-footer {
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.discord-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: #252525;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.discord-link img { width: 24px; height: 24px; }
.discord-link span { color: #fff; font-weight: 700; font-size: 0.9rem; }

.discord-link:hover {
    background: #5865F2;
    transform: translateY(-2px);
}