/* =========================
   BASE
========================= */

body {
    background: #050507;
    color: #fff;
    overflow-x: hidden;
}

/* =========================
   HERO
========================= */

.gallery-hero {
    position: relative;
    min-height: 90vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,5,7,.95), rgba(5,5,7,.35)),
        url("https://bilderupload.org/image/3bf543143-2e73d271-03a5-4d7f-b638-8.png") center / cover no-repeat;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0,212,255,.18), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(255,43,214,.22), transparent 40%),
        linear-gradient(to bottom, transparent, #050507);
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, 92%);
    margin: 0 auto;
}

.gallery-hero-content span {
    font-family: "Share Tech Mono", monospace;
    color: #00d4ff;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-hero-content h1 {
    margin-top: 16px;
    font-family: "Oswald", sans-serif;
    font-size: clamp(70px, 10vw, 150px);
    line-height: .85;
    text-transform: uppercase;
}

.gallery-hero-content h1 b {
    color: #ff2bd6;
    text-shadow:
        0 0 25px rgba(255,43,214,.8),
        0 0 55px rgba(122,60,255,.4);
}

.gallery-hero-content p {
    max-width: 700px;
    margin-top: 24px;
    font-size: 18px;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}

/* =========================
   SECTION
========================= */

.gallery-section {
    padding: 100px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0,212,255,.10), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(255,43,214,.12), transparent 35%),
        linear-gradient(180deg, #050507, #0a0910);
}

.section-inner {
    width: min(1300px, 92%);
    margin: 0 auto;
}

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

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

.gallery-head span {
    font-family: "Share Tech Mono", monospace;
    color: #00d4ff;
    font-size: 12px;
    letter-spacing: 2px;
}

.gallery-head h2 {
    margin-top: 10px;
    font-family: "Oswald", sans-serif;
    font-size: clamp(42px, 5vw, 72px);
    text-transform: uppercase;
}

.gallery-head p {
    margin-top: 10px;
    color: rgba(255,255,255,.65);
}

/* =========================
   BUTTON
========================= */

.refresh-btn {
    padding: 14px 22px;
    border-radius: 14px;
    border: none;
    cursor: pointer;

    font-family: "Share Tech Mono", monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    color: #fff;
    background: linear-gradient(135deg, #00d4ff, #ff2bd6);

    box-shadow:
        0 0 25px rgba(0,212,255,.2),
        0 0 25px rgba(255,43,214,.2);

    transition: .25s;
}

.refresh-btn:hover {
    transform: translateY(-3px);
}

/* =========================
   STATUS
========================= */

.gallery-status {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 14px;

    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);

    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    color: rgba(255,255,255,.7);
}

/* =========================
   GRID
========================= */

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

/* =========================
   CARD
========================= */

.gallery-card {
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);

    cursor: pointer;
    transition: .3s ease;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn .5s forwards;
}

.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);

    border-color: rgba(0,212,255,.5);

    box-shadow:
        0 0 40px rgba(0,212,255,.18),
        0 0 30px rgba(255,43,214,.12);
}

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* =========================
   CARD INFO
========================= */

.gallery-info {
    padding: 16px 18px;

    background:
        linear-gradient(180deg, rgba(5,5,7,.15), rgba(5,5,7,.92)),
        radial-gradient(circle at 15% 0%, rgba(0,212,255,.16), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(255,43,214,.14), transparent 45%);

    border-top: 1px solid rgba(255,255,255,.08);
}

.gallery-info::before {
    content: "// DISCORD UPLOAD";
    display: block;
    margin-bottom: 10px;

    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: #00d4ff;
}

.gallery-info strong {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    display: block;
}

.gallery-info span {
    margin-top: 8px;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;

    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    color: rgba(255,255,255,.8);

    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.9);
    backdrop-filter: blur(10px);

    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 20px;

    box-shadow:
        0 0 50px rgba(0,212,255,.25),
        0 0 50px rgba(255,43,214,.2);
}

.lightbox button {
    position: absolute;
    top: 25px;
    right: 30px;

    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* =========================
   ANIMATION
========================= */

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   SCROLLBAR
========================= */

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #ff2bd6);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,.05);
}

.gallery-hero-stats {
    position: relative;

    display: flex;              /* 🔥 statt block */
    gap: 16px;

    margin-top: 10px;
    transform: translateY(15px); /* 🔥 stärker nach oben */

    z-index: 3;
}

/* einzelne Cards */
.gallery-hero-stats div {
    flex: 0 0 170px; /* gleichmäßige Breite */

    padding: 20px;
    border-radius: 18px;

    background:
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));

    border: 1px solid rgba(255,255,255,.12);

    backdrop-filter: blur(10px);

    transition: .25s ease;
}

/* Hover Effekt (sehr wichtig für „geil“) */
.gallery-hero-stats div:hover {
    transform: translateY(-6px);

    border-color: rgba(0,212,255,.6);

    box-shadow:
        0 0 30px rgba(0,212,255,.25),
        0 0 20px rgba(255,43,214,.15);
}

/* Zahlen */
.gallery-hero-stats strong {
    display: block;

    font-family: "Oswald", sans-serif;
    font-size: 36px;
    line-height: 1;

    color: #fff;

    text-shadow:
        0 0 18px rgba(0,212,255,.35);
}

/* Text darunter */
.gallery-hero-stats span {
    display: block;

    margin-top: 6px;

    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    letter-spacing: .14em;

    text-transform: uppercase;
    color: #00d4ff;
}
/* =========================
   HEADLINE UPDATE
========================= */

.gallery-head h2 b {
    color: #ff2bd6;
    font-style: normal;
    text-shadow:
        0 0 24px rgba(255,43,214,.75),
        0 0 50px rgba(122,60,255,.35);
}

/* =========================
   TOOLBAR
========================= */

.gallery-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 26px;
}

.gallery-hint {
    min-width: 310px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.gallery-hint span {
    font-family: "Share Tech Mono", monospace;
    color: #00d4ff;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.gallery-hint p {
    margin-top: 4px;
    color: rgba(255,255,255,.65);
    font-size: 14px;
}

/* =========================
   NEW CARD IMAGE WRAP
========================= */

.gallery-img-wrap {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .4s ease;
}

.gallery-card:hover .gallery-img-wrap img {
    transform: scale(1.08);
    filter: saturate(1.15) contrast(1.08);
}

.gallery-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background:
        linear-gradient(180deg, transparent 45%, rgba(5,5,7,.82)),
        radial-gradient(circle at 80% 20%, rgba(255,43,214,.18), transparent 38%);
    opacity: 0;
    transition: .3s;
}

.gallery-card:hover .gallery-img-overlay {
    opacity: 1;
}

.gallery-img-overlay span {
    font-family: "Share Tech Mono", monospace;
    color: #00d4ff;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* =========================
   USER INFO WITH AVATAR
========================= */

.gallery-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-user img,
.gallery-avatar-fallback {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,212,255,.45);
    box-shadow:
        0 0 18px rgba(0,212,255,.20),
        0 0 16px rgba(255,43,214,.12);
}

.gallery-avatar-fallback {
    display: grid;
    place-items: center;
    font-family: "Share Tech Mono", monospace;
    color: #fff;
    background: linear-gradient(135deg, #00d4ff, #ff2bd6);
    font-size: 12px;
}

.gallery-user strong {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    display: block;
    color: #fff;
}

.gallery-user span {
    display: inline-flex;
    margin-top: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
}

/* =========================
   LIGHTBOX BODY LOCK
========================= */

body.lightbox-open {
    overflow: hidden;
}

/* =========================
   RESPONSIVE PATCH
========================= */

@media (max-width: 900px) {
    .gallery-hero-stats,
    .gallery-toolbar {
        grid-template-columns: 1fr;
    }

    .gallery-hint {
        min-width: 0;
    }
}

@media (max-width: 650px) {
    .gallery-hero-stats {
        gap: 10px;
    }

    .gallery-img-wrap {
        height: 220px;
    }
}