* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {

    --bg: #0f0f0f;
    --surface: #181818;
    --surface-hover: #222222;

    --text: #ffffff;
    --text-secondary: #aaaaaa;

    --border: #2d2d2d;

    --accent: #22c55e;

    --nav-height: 64px;
}


/* LIGHT THEME */

body.light {

    --bg: #ffffff;
    --surface: #f5f5f5;
    --surface-hover: #eaeaea;

    --text: #111111;
    --text-secondary: #666666;

    --border: #dddddd;
}


/* BODY */

body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--bg);
    color: var(--text);

    transition:
        background 0.25s,
        color 0.25s;
}


/* NAVBAR */

.navbar {

    height: var(--nav-height);

    position: sticky;
    top: 0;

    z-index: 100;

    display: flex;
    align-items: center;

    padding: 0 24px;

    background: var(--bg);

    border-bottom:
        1px solid var(--border);

    gap: 30px;
}


/* LEFT */

.nav-left {

    display: flex;
    align-items: center;

    gap: 15px;

    min-width: 220px;
}


.menu-btn {

    border: none;

    background: transparent;

    color: var(--text);

    font-size: 22px;

    cursor: pointer;
}


.logo {

    display: flex;

    align-items: center;

    text-decoration: none;

    color: var(--text);
}


.logo img {

    height: 40px;

    width: auto;

    display: block;

    object-fit: contain;
}


.logo-icon {

    color: var(--accent);

    font-size: 22px;
}


/* SEARCH */

.search-box {

    flex: 1;

    max-width: 650px;

    height: 42px;

    margin: auto;

    display: flex;

    background: var(--surface);

    border:
        1px solid var(--border);

    border-radius: 24px;

    overflow: hidden;
}


.search-box input {

    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    padding: 0 18px;

    font-size: 15px;
}


.search-box input::placeholder {

    color: var(--text-secondary);
}


.search-box button {

    width: 60px;

    border: none;

    border-left:
        1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    font-size: 22px;

    cursor: pointer;
}


.search-box button:hover {

    background: var(--surface-hover);
}


/* RIGHT */

.nav-right {

    min-width: 80px;

    display: flex;

    justify-content: flex-end;
}


.icon-btn {

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 50%;

    background: var(--surface);

    color: var(--text);

    cursor: pointer;

    font-size: 18px;
}


.icon-btn:hover {

    background: var(--surface-hover);
}


/* CONTAINER */

.container {

    width: 100%;

    max-width: 1500px;

    margin: auto;

    padding: 30px 35px 60px;
}


/* HERO */

.hero {

    padding: 35px;

    margin-bottom: 35px;

    border-radius: 18px;

    background:

        linear-gradient(
            135deg,
            rgba(34, 197, 94, 0.15),
            transparent
        );

    border:
        1px solid var(--border);
}


.hero h1 {

    font-size: 34px;

    margin-bottom: 10px;
}


.hero p {

    color: var(--text-secondary);

    font-size: 16px;

    line-height: 1.6;
}


/* SECTION HEADER */

.section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 22px;
}


.section-header h2 {

    font-size: 23px;
}


#categoryFilter {

    padding: 9px 14px;

    border-radius: 8px;

    border:
        1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    outline: none;
}


/* GRID */

.addon-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 26px;
}


/* CARD */

.addon-card {

    background: var(--surface);

    border-radius: 14px;

    overflow: hidden;

    border:
        1px solid var(--border);

    transition:
        transform 0.2s,
        background 0.2s;

}


.addon-card:hover {

    transform: translateY(-5px);

    background: var(--surface-hover);
}


.addon-card a {

    color: inherit;

    text-decoration: none;
}


/* THUMBNAIL */

.thumbnail {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #222;
}


.thumbnail img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform 0.3s;
}


.addon-card:hover
.thumbnail img {

    transform: scale(1.04);
}


/* VERSION */

.version {

    position: absolute;

    right: 10px;
    bottom: 10px;

    padding: 5px 9px;

    border-radius: 6px;

    background: rgba(0, 0, 0, 0.8);

    color: white;

    font-size: 12px;
}


/* CARD CONTENT */

.card-content {

    padding: 16px;
}


.card-content h3 {

    font-size: 18px;

    margin-bottom: 8px;
}


.card-content p {

    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.5;

    min-height: 42px;
}


/* CARD INFO */

.card-info {

    display: flex;

    gap: 8px;

    margin-top: 15px;

    flex-wrap: wrap;
}


.card-info span {

    font-size: 11px;

    color: var(--text-secondary);

    padding: 5px 8px;

    border-radius: 5px;

    background: var(--bg);

    border:
        1px solid var(--border);
}


/* NO RESULTS */

.no-results {

    text-align: center;

    padding: 80px 20px;

    color: var(--text-secondary);
}


.no-results h2 {

    color: var(--text);

    margin-bottom: 8px;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .navbar {

        padding: 0 12px;

        gap: 12px;
    }

    .nav-left {

        min-width: auto;
    }

    .logo {

        font-size: 17px;
    }

    .menu-btn {

        display: none;
    }

    .nav-right {

        min-width: auto;
    }

    .container {

        padding: 20px 15px 50px;
    }

    .hero {

        padding: 25px;
    }

    .hero h1 {

        font-size: 27px;
    }

    .addon-grid {

        grid-template-columns:
            repeat(1, 1fr);

        gap: 20px;
    }

    .section-header {

        align-items: flex-start;

        gap: 15px;
    }

}

/* =================================
   ADDON DETAIL PAGE
================================= */


.addon-hero {

    width: 100%;

    max-width: 900px;

    margin: 0 auto 30px;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 16px;

    background: var(--surface);
}


.addon-hero img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    background: var(--surface);
}



/* TITLE */

.addon-title {

    max-width: 1100px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding-bottom: 25px;

    border-bottom:
        1px solid var(--border);
}


.addon-title h1 {

    font-size: 32px;

    margin-bottom: 12px;
}



/* META */

.addon-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.addon-meta span {

    padding: 6px 10px;

    border-radius: 6px;

    background: var(--surface);

    border:
        1px solid var(--border);

    color: var(--text-secondary);

    font-size: 12px;
}



/* DOWNLOAD */

.download-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 13px 25px;

    border-radius: 8px;

    background: var(--accent);

    color: #ffffff;

    text-decoration: none;

    font-weight: 700;

    white-space: nowrap;

    transition:
        transform 0.2s,
        opacity 0.2s;
}


.download-btn:hover {

    transform: translateY(-2px);

    opacity: 0.9;
}



/* DESCRIPTION */

.description {

    max-width: 1100px;

    margin: 35px auto;

    font-size: 16px;

    line-height: 1.8;
}


.description h2 {

    font-size: 23px;

    margin-top: 35px;

    margin-bottom: 12px;
}


.description p {

    color: var(--text-secondary);

    margin-bottom: 15px;
}


.description ul {

    padding-left: 25px;

    color: var(--text-secondary);
}


.description li {

    margin-bottom: 7px;
}



/* SCREENSHOTS */

.screenshots {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 18px;

    margin-top: 20px;
}


.screenshots img {

    width: 100%;

    border-radius: 12px;

    border:
        1px solid var(--border);
}



/* MOBILE */

@media (max-width: 700px) {

    .addon-title {

        flex-direction: column;

        align-items: flex-start;
    }

    .addon-title h1 {

        font-size: 27px;
    }

    .download-btn {

        width: 100%;
    }

    .addon-hero {

        border-radius: 10px;
    }

}

/* =================================
   FOOTER
================================= */

.footer {

    margin-top: 60px;

    border-top:
        1px solid var(--border);

    background: var(--surface);

    padding: 35px 35px 20px;
}


.footer-content {

    max-width: 1500px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;
}


.footer-brand h3 {

    font-size: 18px;

    margin-bottom: 8px;
}


.footer-brand p {

    color: var(--text-secondary);

    font-size: 13px;
}


.footer-social {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}


.footer-social a {

    color: var(--text-secondary);

    text-decoration: none;

    padding: 8px 12px;

    border-radius: 7px;

    border:
        1px solid var(--border);

    font-size: 13px;

    transition:
        color 0.2s,
        background 0.2s;
}


.footer-social a:hover {

    color: var(--text);

    background:
        var(--surface-hover);
}


.footer-bottom {

    max-width: 1500px;

    margin: 25px auto 0;

    padding-top: 18px;

    border-top:
        1px solid var(--border);

    text-align: center;
}


.footer-bottom p {

    color: var(--text-secondary);

    font-size: 12px;
}



/* MOBILE */

@media (max-width: 700px) {

    .footer {

        padding: 30px 15px 18px;
    }

    .footer-content {

        flex-direction: column;

        align-items: flex-start;
    }

    .footer-social {

        width: 100%;
    }

}

.addon-author {

    margin-top: -5px;

    margin-bottom: 12px;

    color: var(--text-secondary);

    font-size: 14px;
}


.addon-author span {

    color: var(--text);

    font-weight: 600;
}

/* ads */

#banner-ads {
    display: flex;
    justify-content: center;
    align-items: center;
}