/**
 * mods.css - VOLLSTÄNDIGES DESIGN für Downloads-Seite
 * MIT HEADER, FOOTER, ZENTRIERT & RESPONSIVE
 */

:root {
    --bg: #0d0b1a;
    --bg2: #12102a;
    --card: #1a1730;
    --card2: #201d3a;
    --accent: #6c3fc5;
    --accent2: #8b5cf6;
    --cyan: #38bdf8;
    --text: #e2e0f0;
    --muted: #9490b5;
    --border: #2d2850;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER & NAVIGATION (wie auf anderen Seiten)
   ============================================ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,11,26,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-logo span {
    color: var(--accent2);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,11,26,.98);
    backdrop-filter: blur(20px);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color .2s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent2);
}

@media (max-width: 650px) {
    .nav-links {
        display: none !important;
    }
    .hamburger {
        display: flex;
    }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(108,63,197,0.15) 0%, transparent 70%);
}

.page-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.page-header h1 span {
    color: var(--accent2);
}

.page-header p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   MAIN CONTAINER (ZENTRIERT)
   ============================================ */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    width: 100%;
}

/* ============================================
   STATS-BAR (zentriert)
   ============================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.stat:hover {
    border-color: var(--accent2);
    transform: translateY(-2px);
}

.stat .val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyan);
}

.stat .lbl {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
}

/* ============================================
   DOWNLOAD SECTION (zentriert)
   ============================================ */
.download-section {
    background: linear-gradient(135deg, rgba(108,63,197,0.15) 0%, rgba(139,92,246,0.08) 100%);
    border: 2px dashed var(--accent);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.download-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.download-section p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108,63,197,0.4);
}

.download-note {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================================
   MAIN TABS (zentriert)
   ============================================ */
.main-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.main-tab {
    background: none;
    border: none;
    color: var(--muted);
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
}

.main-tab:hover {
    color: var(--text);
    background: var(--bg2);
}

.main-tab.active {
    color: var(--accent2);
    border-bottom: 2px solid var(--accent2);
}

.main-tab .count {
    background: var(--card2);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--muted);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   FILTER TABS (zentriert)
   ============================================ */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--bg2);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-tab:hover {
    border-color: var(--accent2);
    color: var(--text);
}

.filter-tab.active {
    background: var(--accent2);
    color: white;
    border-color: var(--accent2);
}

/* ============================================
   SEARCH BAR (zentriert)
   ============================================ */
.search-bar {
    max-width: 500px;
    margin: 0 auto 1rem;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg2);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.2);
}

/* ============================================
   ITEMS LIST (für Mods) - Grid für PC, 1 Spalte für Handy
   ============================================ */
.items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 0.75rem;
}

.item-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: all 0.2s;
}

.item-row:hover {
    border-color: var(--accent2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108,63,197,0.2);
}

.item-icon {
    width: 48px;
    height: 48px;
    background: var(--bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-name {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.item-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.item-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================
   ITEMS GRID (für Packs) - 3 Spalten auf PC, 1 auf Handy
   ============================================ */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.grid-card {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.grid-card:hover {
    border-color: var(--accent2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108,63,197,0.2);
}

.grid-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.grid-card p {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.4;
    flex: 1;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-tag {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* ============================================
   TAGS
   ============================================ */
.tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tag-purple {
    background: rgba(139,92,246,0.15);
    color: var(--accent2);
    border: 1px solid rgba(139,92,246,0.3);
}

.tag-cyan {
    background: rgba(56,189,248,0.15);
    color: var(--cyan);
    border: 1px solid rgba(56,189,248,0.3);
}

.tag-muted {
    background: var(--bg);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* ============================================
   INFO BANNER (für Shader)
   ============================================ */
.info-banner {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg2);
    border-left: 4px solid var(--cyan);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-banner .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-banner strong {
    color: var(--text);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: auto;
}

footer a {
    color: var(--muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--text);
}

/* ============================================
   RESPONSIVE (Handy-Optimierung)
   ============================================ */
@media (max-width: 768px) {
    main {
        padding: 1.5rem 1rem;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .items-list {
        grid-template-columns: 1fr;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        justify-content: flex-start;
    }
    
    .main-tabs {
        justify-content: flex-start;
    }
    
    .item-row {
        flex-direction: column;
        text-align: center;
    }
    
    .item-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }
    
    .download-section {
        padding: 1.5rem;
    }
    
    .page-header {
        padding: 2rem 1rem;
    }
}