* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a12;
    --surface: rgba(16, 18, 34, 0.75);
    --border: rgba(0, 200, 255, 0.15);
    --cyan: #00d4ff;
    --magenta: #ff00e5;
    --purple: #6c00ff;
    --text: #e0e6f0;
    --muted: #7888a0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ── Stars Background ── */
#stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 20% 50%, #0a0a2e 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, #0a001a 0%, transparent 50%),
                var(--bg);
}

#stars::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 25% 35%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 65% 65%, rgba(255,255,255,0.2) 0%, transparent 100%);
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ── Layout ── */
header, .search-bar, section, footer {
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 5rem 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { text-shadow: 0 0 10px var(--cyan); }
    100% { text-shadow: 0 0 30px var(--cyan), 0 0 60px var(--magenta); }
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 span {
    font-weight: 300;
    opacity: 0.7;
}

.subtitle {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ── Search ── */
.search-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-bar input,
.search-bar select {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.search-bar input {
    flex: 1;
}

.search-bar input:focus,
.search-bar select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.search-bar select option {
    background: #12142a;
    color: var(--text);
}

/* ── Section ── */
.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 2px;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ── Mod Grid ── */
.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ── Mod Card ── */
.mod-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 0.6s forwards;
}

.mod-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.08), 0 0 60px rgba(108, 0, 255, 0.04);
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-card.hidden {
    display: none;
}

.mod-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mod-card .card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mod-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.mod-card .desc {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mod-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mod-card .badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.15);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mod-card .badge.mc-version {
    background: rgba(108, 0, 255, 0.15);
    color: #b080ff;
    border-color: rgba(108, 0, 255, 0.2);
}

.mod-card .badge.category {
    background: rgba(255, 0, 229, 0.1);
    color: var(--magenta);
    border-color: rgba(255, 0, 229, 0.15);
}

.mod-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.mod-card .btn-primary {
    background: linear-gradient(135deg, var(--cyan), #0090cc);
    color: #000;
}

.mod-card .btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* ── Info Card ── */
.info-card {
    background: var(--surface);
    border: 1px solid rgba(255, 0, 229, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(16px);
    max-width: 700px;
    margin: 0 auto;
}

.info-card h3 {
    color: var(--magenta);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.info-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin: 0.3rem;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--purple), var(--magenta));
    color: #fff;
}

.btn-secondary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(108, 0, 255, 0.3);
}

.btn-outline {
    border: 1px solid var(--cyan);
    color: var(--cyan);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 3rem 1rem;
    color: #2a2a3a;
    font-size: 0.82rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: #1e2040;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a2d50;
}

@media (max-width: 600px) {
    .logo h1 { font-size: 2rem; }
    .search-bar { flex-direction: column; }
    .mod-grid { grid-template-columns: 1fr; }
}
