/* =========================
   GENERAL
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 24px;
    font-family: Arial, Helvetica, sans-serif;
    background: #202033;
    color: #f5f5f5;
    min-height: 100vh;
}

/* =========================
   HEADER
========================= */

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin: 40px 0 60px;
}

.eyebrow {
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 3px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 15px 0;
    letter-spacing: -2px;
}

.subtitle {
    color: #a1a1aa;
    font-size: 1.1rem;
}

/* =========================
   GALLERY
========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(220px, 1fr)
    );
    gap: 40px 30px;
}

.item {
    text-align: center;
    min-width: 0;
}

/* =========================
   POKEMON CARDS
========================= */

.kaart {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    aspect-ratio: 63 / 88;
    perspective: 1200px;
    cursor: pointer;
}

.kaart-binnen {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s ease;
}

.kaart.omgedraaid .kaart-binnen {
    transform: rotateY(180deg);
}

.kaart img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transition: filter 0.3s ease;
}

.kaart .back {
    transform: rotateY(180deg);
}

/* Hover effect */

.kaart:hover {
    filter: drop-shadow(0 12px 20px rgba(139, 92, 246, 0.2));
}

.kaart:focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 5px;
    border-radius: 12px;
}

/* =========================
   POKEMON NAME
========================= */

.naam {
    margin-top: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #e4e4e7;
}

/* =========================
   FOOTER
========================= */

.footer {
    text-align: center;
    color: #71717a;
    font-size: 0.9rem;
    margin-top: 80px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
    body {
        padding: 20px 16px;
    }

    .header {
        margin: 30px 0 40px;
    }

    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }

    .naam {
        font-size: 1rem;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .kaart-binnen {
        transition: none;
    }
}


/* =========================
   DYNAMIC GALLERY
========================= */

.gallery-section {
    margin-top: 50px;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-heading h2 {
    font-size: 1.6rem;
    margin: 0;
}

#gallery-count {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.gallery-status {
    color: #a1a1aa;
    text-align: center;
    margin-top: 30px;
}

.gallery-status.error {
    color: #f87171;
}

.gallery-status:empty {
    display: none;
}


/* =========================
   PREMIUM GALLERY
========================= */

.gallery-section {
    margin-top: 60px;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.gallery-heading .eyebrow {
    margin-bottom: 10px;
}

.gallery-heading h2 {
    font-size: 1.8rem;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

#gallery-count {
    color: #9292a5;
    font-size: 0.9rem;
    margin: 0;
}

/* SEARCH BAR */

.search-container {
    position: relative;
    max-width: 440px;
    margin-bottom: 40px;
}

.search-icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #9292a5;
    pointer-events: none;
}

#pokemon-search {
    width: 100%;
    padding: 15px 18px 15px 48px;
    background: #1b1b29;
    border: 1px solid #303044;
    border-radius: 12px;
    color: #f5f5f5;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#pokemon-search::placeholder {
    color: #77778b;
}

#pokemon-search:focus {
    border-color: #8b5cf6;
}

/* GALLERY GRID */

.gallery {
    display: grid;
    grid-template-columns: repeat(
        auto-fill,
        minmax(220px, 1fr)
    );
    gap: 40px 30px;
}

/* NO HOVER EFFECTS */

.kaart,
.kaart img {
    transition: none !important;
}

.kaart:hover {
    filter: none !important;
    transform: none !important;
}

/* CARD NAME */

.naam {
    color: #e4e4ed;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
}

/* STATUS */

.gallery-status {
    color: #9292a5;
    text-align: center;
    margin-top: 35px;
}

.gallery-status.error {
    color: #f87171;
}

.gallery-status:empty {
    display: none;
}

/* MOBILE */

@media (max-width: 600px) {
    .gallery-section {
        margin-top: 40px;
    }

    .gallery-heading h2 {
        font-size: 1.5rem;
    }

    .search-container {
        max-width: 100%;
        margin-bottom: 30px;
    }
}
 


/* =========================
   HOMEPAGE
========================= */

.home-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 24px;
}

.home-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.home-header {
    text-align: center;
    margin-bottom: 65px;
}

.home-header h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    margin: 15px 0;
    letter-spacing: -3px;
}

.home-subtitle {
    color: #a1a1aa;
    font-size: 1.1rem;
    line-height: 1.6;
}

.home-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.home-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 300px;
    padding: 45px;
    overflow: hidden;

    text-decoration: none;
    color: #f5f5f5;

    background: linear-gradient(
        145deg,
        #292940,
        #1b1b29
    );

    border: 1px solid #38384e;
    border-radius: 20px;

    transition: border-color 0.25s ease;
}


.home-card-content {
    position: relative;
    z-index: 1;
}

.home-card-label {
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.home-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 18px 0 12px;
    letter-spacing: -1px;
}

.home-card p {
    color: #a1a1aa;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 340px;
    margin-bottom: 30px;
}

.home-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #c4b5fd;
    font-weight: 600;
}

.home-card-link span {
    font-size: 1.3rem;
}

.home-footer {
    margin-top: 65px;
    text-align: center;
    color: #71717a;
    font-size: 0.85rem;
}

/* HOMEPAGE MOBILE */

@media (max-width: 650px) {

    .home-page {
        padding: 40px 20px;
    }

    .home-header {
        margin-bottom: 40px;
    }

    .home-header h1 {
        letter-spacing: -2px;
    }

    .home-options {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-card {
        min-height: 230px;
        padding: 30px;
    }

    .home-footer {
        margin-top: 40px;
    }
}


/* =========================
   REPAIRS PAGE
========================= */

.repairs-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 45px;
    text-align: center;
    background: #1b1b29;
    border: 1px solid #303044;
    border-radius: 18px;
}

.repairs-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.repairs-content p {
    color: #a1a1aa;
    line-height: 1.7;
}

.back-home {
    display: inline-block;
    margin-top: 30px;
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 600px) {
    .repairs-content {
        padding: 30px 20px;
    }
}


/* =========================
   MAIN NAVIGATION
========================= */

.site-nav {
    position: fixed;
    top: 24px;
    right: 30px;
    z-index: 1000;

    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;

    width: auto;
    margin: 0;
}

.site-nav a {
    display: inline-block;
    padding: 11px 20px;
    color: #c4c4d4;
    background: #1b1b29;
    border: 1px solid #303044;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a.active {
    color: #ffffff;
    background: #302449;
    border-color: #8b5cf6;
}

.site-nav a:hover {
    color: #ffffff;
    border-color: #8b5cf6;
}

/* MOBILE NAVIGATION */

@media (max-width: 600px) {
    .site-nav {
        top: 15px;
        right: 15px;
        gap: 6px;
    }

    .site-nav a {
        padding: 9px 12px;
        font-size: 0.8rem;
    }
}
