/* html {background: radial-gradient(circle at center, #0ff 0%, #003366 100%);} */
:root {
    --teal-text: rgb(0, 200, 190);
    --soft-white: rgb(240, 240, 240);
    --darkmode-background: rgb(15, 15, 20);
    --teal-backdrop: rgba(0, 200, 190, 0.02);
    --header-background: rgba(0, 200, 190, 0.04);
    --link-color: rgb(180, 240, 235);
    --discord-purple: rgb(114, 137, 218);
    --stripe-blue: rgb(81, 103, 252);
    --paypal-blue: #0079C1;
    --portainer-color: #13BEF9;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.05);
    border-left: 1px solid rgba(0, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #00ffff;
    box-shadow: 0 0 6px #00ffff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0fffd8;
    box-shadow: 0 0 12px #0fffd8;
}

a {
    color: var(--link-color);
}

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

html,
body {
    min-height: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

body {
    background: var(--darkmode-background);
    color: var(--soft-white);
    font-family: 'Exo 2', sans-serif;
    display: flex;
    flex-direction: column;
    font-size: 14pt;
    overflow-x: hidden;
}

header {
    /* background: var(--header-background); */
    background: rgba(0, 0, 0, .25);
    border-bottom: 2px solid rgba(0, 200, 190, .1);
    /* darker shade */
    padding: 2rem 1rem;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 0.2rem;
    display: grid;
    grid-template-columns: 10vw 1fr;
    align-items: center;
    gap: 2rem;
    justify-content: space-around;
}

header img {
    width: 100%;
    height: auto !important;
}

header>div:first-child>* {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

header #site-title {
    color: var(--teal-text);
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
}

main {
    width: 94%;
    margin: 2rem auto;
    box-sizing: border-box;
}

section {
    box-sizing: border-box;
    padding: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem;
    box-sizing: border-box;
    justify-content: center;
    overflow-x: hidden;
}

.card {
    background: var(--teal-backdrop);
    border: 1px solid #00c8be;
    border-radius: 12px;
    color: #f0f0f0;
    box-shadow: 0 0 10px rgba(0, 200, 190, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:has(> a)::after {
    content: '>>';
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    /* perfectly centers */
    font-size: 10rem;
    font-weight: bold;
    background-color: rgba(0, 200, 190, 0.05);
    color: rgba(0, 200, 190, 0.1);
    /* subtle teal overlay */
    pointer-events: none;
    /* so it doesn't block clicks */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:has(> a):hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 200, 190, 0.8);
}

div:has(> :not(a)) {
    padding: 1rem;
    box-sizing: border-box;
}

.card.secondary {
    background-color: rgba(0, 200, 190, 0.05);
    border: 1px dashed rgba(0, 200, 190, 0.5);
}

.card>a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: inherit;
    padding: 1rem;
    box-sizing: border-box;
    max-width: 100%;
}

.card .heading {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    justify-content: left;
    align-items: center;
    margin: 0;
    padding: 0;
}

.card .title {
    font-family: 'Orbitron', sans-serif;
    /* Or your chosen tech font */
    color: #00c8be;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    font-weight: bold;
}

/*
.card a {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: #00c8be;
    color: #0f0f14;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.card a:hover {
    background: #00a9a0;
}
*/

.card img {
    display: block;
    width: 60%;
    height: auto !important;
    margin: auto;
    max-width: 100%;
}

.card p {
    margin: .5rem 0;
}

.card hr {
    height: 1px;
    border: none;
    background-color: var(--link-color);
    margin: 1px 0;
}

.card.error {
    background-color: rgba(255, 0, 0, .04);
    border: 1px dotted rgba(255, 0, 0, .2);
    box-shadow: none;
}

.card.error:hover {
    transform: none;
    box-shadow: none;
}

.card.notice {
    background-color: rgba(255, 200, 80, 0.04);
    border: 1px dotted rgba(255, 200, 80, 0.2);
    box-shadow: none;
}

.card.notice:hover {
    transform: none;
    box-shadow: none;
}

hr {
    height: 1px;
    border: none;
    background-color: var(--link-color);
    margin: 1rem 0;
    box-sizing: border-box;
}

.grid-spacer {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    height: 0;
}

footer {
    border-top: 2px solid rgba(0, 200, 190, .3);
    border-bottom: 2px solid rgba(0, 200, 190, .3);
    background: rgba(0, 0, 0, .3);
    box-sizing: border-box;
    padding: 1rem 0;
    display: grid;
    grid-template-columns: 30% 30% 30%;
    gap: 1rem;
    justify-content: center;
    font-size: 12pt;
}

footer h4 {
    color: var(--teal-text);
    margin-bottom: 0.5rem;
}

section {
    box-sizing: border-box;
    padding: 2rem;
}

section p {
    margin: 1rem 0;
}

.cta-button {
    width: 90%;
    box-sizing: border-box;
    padding: 0.5rem;
    margin: 1rem 0;
    border: 2px outset rgba(255, 255, 255, .2);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button>a {
    display: block;
    width: 100%;
    height: auto;
    color: inherit;
    text-decoration: none;
}

#dev-join {
    background-color: var(--discord-purple);
}

#stripe-donate {
    background-color: var(--stripe-blue);
}

#paypal-donate {
    background-color: var(--paypal-blue);
}

#portainer {
    background-color: var(--portainer-color);
    color: black;
}

#about {
    background-color: var(--teal-backdrop);
    border: 2px solid rgba(0, 200, 190, .075);
}

.rating {
    margin: 0;
    font-size: 1.2rem;
    box-sizing: border-box;
}

.star {
    color: rgb(180, 240, 235);
    /* light teal outline/fill */
    display: inline-block;
    position: relative;
}

.star.half::after {
    content: '★';
    color: rgb(180, 240, 235);
    position: absolute;
    width: 50%;
    overflow: hidden;
    left: 0;
}

.star.empty {
    color: rgba(180, 240, 235, 0.2);
    /* faded teal for empty */
}

.rating-value {
    font-size: 0.9rem;
    color: rgb(180, 240, 235);
    margin-left: 0.4rem;
}

.rating.no-rating {
    font-size: 0.9rem;
    color: rgba(180, 240, 235, 0.6);
    padding: 1rem 0;
}

.no-reviews {
    padding: 1rem;
}

section.item-details {
    width: 95%;
    margin: auto;
    background-color: rgba(0, 200, 190, 0.04);
}

section.item-details .title {
    color: var(--teal-text);
    font-weight: bold;
    font-size: 20pt;
}

section.item-details .description {
    margin: 1rem;
}

section.item-details .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

section.item-details .gallery>img {
    width: 100%;
    height: auto !important;
}

section.item-details .reviews {
    background-color: rgba(255, 255, 255, .01);
}

nav {
    display: grid;
    grid-template-columns: min-content max-content max-content;
    justify-content: left;
    margin: 1rem;
    text-align: left;
    width: 100%;
}

nav>div {
    padding: 0 1rem;
    box-sizing: border-box;
    color: var(--link-color);
    font-size: 18pt;
    border-left: 1px solid rgba(180, 240, 235, 1);
    border-right: 1px solid rgba(180, 240, 235, 1);
}

nav>div:hover {
    text-shadow: 2px 2px 5px rgba(180, 240, 235, .5);
}

nav>div:first-child {
    border-left: none;
}

nav>div:last-child {
    border-right: none;
}

nav a {
    text-decoration: none;
}

nav div.active a {
    text-decoration: underline;
    /* or border-bottom */
    color: rgb(0, 200, 190);
    /* or a lighter shade */
    transform: translateY(-2px);
    /* slight upward shift */
}

@media (max-width: 600px) and (orientation:portrait) {

    /* styles for small tablets + phones in portrait */
    header {
        grid-template-columns: 20% 1fr;
    }

    header #site-title {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 0;
        padding: 1rem;
        box-sizing: border-box;
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    section.item-details .gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    ul,
    ol {
        list-style-type: none;
    }

    nav {
        grid-template-columns: 1fr;
        justify-content: center;
        text-align: center;
    }

    nav>div {
        border-left: none;
        border-right: none;
    }
}