/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
    background: #0c0f16;
    font-family: Arial, Helvetica, sans-serif;
}

/* Fundal decorativ */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            rgba(4, 8, 15, 0.82),
            rgba(4, 8, 15, 0.94)
        ),
        url("../assets/background.png") center / cover no-repeat;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 50% 10%,
            rgba(45, 109, 255, 0.18),
            transparent 38%
        );
}

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

.giveaways-page {
    width: min(1200px, calc(100% - 36px));
    margin: 0 auto;
    padding: 38px 0 70px;
}

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

.giveaways-hero {
    max-width: 820px;
    margin: 0 auto 42px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #b9c6df;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.back-link:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.eyebrow {
    margin: 0 0 10px;
    color: #78a8ff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.giveaways-hero h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-shadow:
        0 0 18px rgba(53, 119, 255, 0.45),
        0 0 42px rgba(53, 119, 255, 0.18);
}

.hero-description {
    max-width: 620px;
    margin: 20px auto 0;
    color: #aeb7c9;
    font-size: 17px;
    line-height: 1.65;
}

/* =========================
   SUMMARY
========================= */

.giveaway-summary {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

.giveaway-summary div {
    min-width: 190px;
    padding: 18px 22px;
    border: 1px solid rgba(111, 156, 255, 0.2);
    border-radius: 16px;
    background: rgba(16, 22, 34, 0.78);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
}

.giveaway-summary span,
.giveaway-summary small {
    display: block;
}

.giveaway-summary span {
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
}

.giveaway-summary small {
    margin-top: 5px;
    color: #93a0b7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.giveaway-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 280px), 340px)
    );
    justify-content: center;
    gap: 24px;
}

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

.giveaway-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background:
        linear-gradient(
            180deg,
            rgba(23, 31, 48, 0.96),
            rgba(13, 18, 29, 0.96)
        );
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.giveaway-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            130deg,
            rgba(255, 255, 255, 0.05),
            transparent 34%
        );
}

.giveaway-card:hover {
    transform: translateY(-7px);
    border-color: rgba(78, 137, 255, 0.65);
    box-shadow:
        0 28px 65px rgba(0, 0, 0, 0.48),
        0 0 28px rgba(53, 113, 255, 0.16);
}

.giveaway-card.is-boosted {
    border-color: rgba(255, 190, 75, 0.58);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.4),
        0 0 28px rgba(255, 179, 56, 0.11);
}

.giveaway-card.is-boosted:hover {
    border-color: rgba(255, 201, 95, 0.9);
    box-shadow:
        0 28px 65px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(255, 184, 48, 0.18);
}

/* =========================
   BOOSTED BADGE
========================= */

.boosted-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 7px 11px;
    border: 1px solid rgba(255, 232, 174, 0.55);
    border-radius: 999px;
    color: #281a04;
    background:
        linear-gradient(
            135deg,
            #ffd66d,
            #f3a928
        );
    box-shadow:
        0 8px 18px rgba(241, 165, 35, 0.28);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.giveaway-image-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 245px;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at center,
            rgba(55, 111, 227, 0.26),
            rgba(30, 58, 110, 0.08) 45%,
            transparent 72%
        );
}

.giveaway-image-wrap::after {
    content: "";
    position: absolute;
    bottom: 15px;
    width: 62%;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.34);
    filter: blur(10px);
}

.giveaway-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 245px;
    height: 175px;
    object-fit: contain;
    filter:
        drop-shadow(0 16px 22px rgba(0, 0, 0, 0.46));
    transition: transform 220ms ease;
}

.giveaway-card:hover .giveaway-image {
    transform: scale(1.05) rotate(-1deg);
}

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

.giveaway-content {
    position: relative;
    z-index: 2;
    padding: 22px;
}

.giveaway-content h2 {
    min-height: 48px;
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.3;
}

/* =========================
   DETAILS
========================= */

.giveaway-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.giveaway-details div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.giveaway-details span,
.giveaway-details strong {
    display: block;
}

.giveaway-details span {
    margin-bottom: 7px;
    color: #8895ab;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.giveaway-details strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.giveaway-button {
    display: block;
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(131, 172, 255, 0.35);
    border-radius: 12px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #2c64d8,
            #4b82ef
        );
    box-shadow:
        0 12px 28px rgba(40, 101, 225, 0.26);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.055em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        filter 180ms ease,
        box-shadow 180ms ease;
}

.giveaway-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
        0 16px 34px rgba(40, 101, 225, 0.36);
}

.giveaway-button:active {
    transform: translateY(0);
}

/* =========================
   EMPTY STATE
========================= */

.empty-message {
    max-width: 650px;
    margin: 0 auto;
    padding: 42px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    color: #aab4c7;
    background: rgba(16, 22, 34, 0.78);
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
}

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

@media (max-width: 760px) {
    .giveaways-page {
        width: min(100% - 26px, 1200px);
        padding-top: 26px;
    }

    .giveaways-hero {
        margin-bottom: 32px;
    }

    .giveaway-summary {
        flex-direction: column;
        max-width: 360px;
        margin-right: auto;
        margin-left: auto;
    }

    .giveaway-summary div {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .giveaways-page {
        width: min(100% - 20px, 1200px);
        padding-bottom: 45px;
    }

    .back-link {
        margin-bottom: 22px;
    }

    .giveaways-hero h1 {
        font-size: clamp(38px, 15vw, 58px);
    }

    .hero-description {
        font-size: 15px;
    }

    .giveaway-grid {
        gap: 18px;
    }

    .giveaway-card {
        border-radius: 18px;
    }

    .giveaway-image-wrap {
        min-height: 220px;
        padding: 22px;
    }

    .giveaway-image {
        height: 155px;
    }

    .giveaway-content {
        padding: 18px;
    }

    .giveaway-details {
        grid-template-columns: 1fr;
    }

    .giveaway-content h2 {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}