@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Archivo:wght@400;500;600&display=swap');

:root {
    --raffle-ink: #05060f;
    --raffle-muted: #6c6f81;
    --raffle-surface: #ffffff;
    --raffle-panel: rgba(255, 255, 255, 0.92);
    --raffle-border: rgba(8, 12, 30, 0.1);
    --raffle-accent: #f97316;
    --raffle-secondary: #7c3aed;
    --raffle-progress: linear-gradient(90deg, #f97316, #facc15);
    --raffle-progress-alt: linear-gradient(90deg, #7c3aed, #a855f7);
    --raffle-radius: 4px;
    --raffle-shadow: 0 30px 70px rgba(7, 9, 20, 0.25);
    --raffle-font-heading: 'Sora', 'Archivo', sans-serif;
    --raffle-font-body: 'Archivo', 'Sora', sans-serif;
}

.raffle-archive {
    font-family: var(--raffle-font-body);
    color: var(--raffle-ink);
    padding-bottom: 80px;
}

.raffle-archive__hero {
    position: relative;
    padding: 102px 7vw 56px;
    color: #fefeff;
}

.raffle-archive__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.85;
}

.raffle-archive__hero-inner {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    z-index: 1;
}

.raffle-archive__breadcrumbs {
     display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(247, 249, 255, 0.7);
    margin-bottom: 16px;
}

.raffle-archive__breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.raffle-archive__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 14px;
    margin-bottom: 10px;
}

.raffle-archive__hero h1 {
    font-family: var(--raffle-font-heading);
    font-size: clamp(32px, 4vw, 46px);
    margin: 0 0 12px;
    font-size:30px;
    font-weight:600;
}

.raffle-archive__lead {
   font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.raffle-archive__toolbar {
    max-width:1150px;
    margin: 32px auto 48px;
    padding: 12px 20px;
    border-radius: 4px;
    background: radial-gradient(circle at 20% 20%, rgb(166 169 172 / 50%), #8d8d8d00 50%), radial-gradient(circle at 80% 10%, rgb(201 201 201 / 35%), #cccccc00 55%);
    box-shadow: var(--shadow-sm);
}

.raffle-archive__toolbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.raffle-archive__toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.raffle-archive__filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    background: rgb(128 128 128 / 29%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.raffle-archive__filter-icon {
    display: inline-grid;
    grid-template-columns: repeat(3, 4px);
    gap: 4px;
}

.raffle-archive__filter-icon span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

.raffle-archive__filter-count {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #cfed3a;;
    color: #000;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.raffle-archive__results {
    display: flex;
    gap: 6px;
    align-items: baseline;
    color: #fff;
}

.raffle-archive__results strong {
    font-size: 18px;
    color: #fff;
}

.raffle-archive__toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color:#fff;
}

.raffle-archive__select {
    border-radius: 4px;
    border: 1px solid var(--raffle-border);
    padding: 8px 18px;
    font-weight: 600;
}

.raffle-archive__layout {
    max-width:1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
}

.raffle-archive__layout.filters-hidden {
    grid-template-columns: 1fr;
}

.raffle-archive__layout.filters-hidden .raffle-archive__filters {
    display: none;
}

.raffle-archive__filters {
    background: radial-gradient(circle at top left, #3a3a3a 0%, #1e1e1e 35%, #363535 70%, #404040 100%);
    color: #fff;
    border-radius: 4px;
    padding: 24px;
    position: sticky;
    top: 110px;
    align-self: flex-start;
    box-shadow: var(--shadow-sm);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    transition: transform 0.35s ease, opacity 0.2s ease;
}

.raffle-archive__filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.raffle-archive__filters-header p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    color:#fff;
}

.raffle-archive__filters-header small {
    color: #fff;
}

.raffle-archive__filter-close {
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    font-size: 30px;
    cursor: pointer;
}

@media (min-width: 992px) {
    .raffle-archive__filter-close {
        display: none;
    }
}

.raffle-archive__reset {
    width: 100%;
    border-radius: 4px;
    border: 1px dashed rgba(92, 124, 250, 0.35);
    background: rgba(92, 124, 250, 0.08);
    color: var(--raffle-secondary);
    padding: 10px 14px;
    font-weight: 600;
    margin-bottom: 18px;
    cursor: pointer;
}

.raffle-filter-group {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 14px 0;
}

.raffle-filter-group:last-of-type {
    border-bottom: none;
}

.raffle-filter-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    font-weight: 600;
    cursor: pointer;
    color:#fff;
}

.raffle-filter-group__header .caret {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.raffle-filter-group.is-open .raffle-filter-group__header .caret {
    transform: rotate(-135deg);
}

.raffle-filter-group__body {
    display: none;
    margin-top: 10px;
    gap: 10px;
    flex-direction: column;
}

.raffle-filter-group.is-open .raffle-filter-group__body {
    display: flex;
}

.raffle-filter-group__body.has-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 6px;
}

.raffle-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
}

.raffle-checkbox input {
    display: none;
}

.raffle-checkbox .check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.4px solid rgba(15, 23, 42, 0.25);
    position: relative;
    background:#fff;
}

.raffle-checkbox input:checked + .check {
    border-color: var(--raffle-accent);
    background: var(--raffle-accent);
}

.raffle-checkbox .check::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 12px;
    border: 2px solid #05060f;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg) scale(0);
    top: 1px;
    left: 5px;
    transition: transform 0.2s ease;
}

.raffle-checkbox input:checked + .check::after {
    transform: rotate(45deg) scale(1);
}

.raffle-filter__placeholder {
    font-size: 13px;
    color: var(--raffle-muted);
    margin: 0;
}

.raffle-filter__count {
    color: #77ff00;
    font-size: 12px;
}

.raffle-archive__content {
    min-width: 0;
}

.raffle-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

h3.raffle-card__title a {
    color: #FFF;
    text-decoration: none;
    font-size: 17px;
}

.raffle-card {
    background: radial-gradient(circle at top left, #3a3a3a 0%, #1e1e1e 35%, #363535 70%, #404040 100%);
    border-radius: var(--raffle-radius);
    overflow: hidden;
     box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.raffle-card__cover {
    width: 100%;
    aspect-ratio: 16 / 16;
    background: #eef1ff;
    overflow: hidden;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.raffle-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.raffle-card__cover--empty {
    background: linear-gradient(135deg, rgba(92, 124, 250, 0.15), rgba(242, 246, 255, 0.8));
}

.raffle-card__body {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.raffle-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.raffle-chip {
        padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgb(0 0 0 / 12%);
    color: #ffffff;
    text-decoration: none;
}

.raffle-chip--status {
    background: rgba(249, 115, 22, 0.12);
    color: var(--raffle-accent);
}

.raffle-chip--finished {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.raffle-card__title {
    font-family: var(--raffle-font-heading);
    font-size: 18px;
    margin: 0;
}

.raffle-card__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--raffle-muted);
}

.raffle-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.raffle-metric span {
    font-weight: 700;
    font-size: 16px;
    color: var(--raffle-ink);
}

.raffle-card__progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.raffle-card__progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e5e8ff, #f0f2ff);
    position: relative;
    overflow: hidden;
}

.raffle-card__progress-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--raffle-progress);
    width: 0;
    transition: width 0.4s ease;
}

.raffle-card__progress-bar.is-ready {
    background: var(--raffle-progress-alt);
}

.raffle-card__progress-bar.is-finished {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.raffle-card__progress-bar.is-pending {
    background: var(--raffle-progress);
    opacity: 0.7;
}

.raffle-card__progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-top: 6px;
    color: var(--raffle-muted);
}

.raffle-card__status-label {
    font-weight: 600;
    color: #fff;
}

.raffle-card__progress-percent {
    font-weight: 700;
    color: #fff;
}


.raffle-card__footer {
    padding: 0 10px 20px;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.raffle-card__points {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.raffle-card__points strong {
    font-size: 18px;
    font-weight: 700;
    color:#fff;
}

.raffle-card__cta {
    border-radius: 4px;
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
    background: #E3FF00;
    color: #05060f;
    box-shadow: var(--shadow-sm);
    text-align: center;
    width: 100%;
    display: inline-block;
}

.raffle-card__draw {
    display: inline-flex;
    font-size: 13px;
    margin-top: 8px;
    color: var(--raffle-secondary);
    text-decoration: none;
    font-weight: 600;
}

.raffle-card--skeleton {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(8, 12, 30, 0.08);
}

.raffle-card--skeleton .shimmer {
    position: relative;
    overflow: hidden;
    background: rgba(8, 12, 30, 0.1);
}

.raffle-card--skeleton .shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.7), rgba(255,255,255,0));
    transform: translateX(-100%);
    animation: raffle-shimmer 1.3s infinite;
}

.raffle-archive__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.raffle-archive__pagination button {
    border-radius: 4px;
    border: 1px solid var(--raffle-border);
    background: #fff;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
}

.raffle-archive__pagination button.is-active {
    background: var(--raffle-secondary);
    color: #fff;
    border-color: transparent;
}

.raffle-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 3, 10, 0.6);
    z-index: 12000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.raffle-filter-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.raffle-empty {
    padding: 60px 24px;
}

.raffle-empty__card {
    background: var(--raffle-surface);
    border-radius: 4px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--raffle-shadow);
}

.raffle-empty__card h3 {
    margin: 0 0 12px;
}

body.raffle-filter-locked {
    overflow: hidden;
}

@keyframes raffle-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 1080px) {
    .raffle-archive__layout {
        grid-template-columns: 1fr;
    }

    .raffle-archive__filters {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        border-radius: 0;
        width: min(360px, 90vw);
        transform: translateX(-110%);
        z-index: 12100;
        max-height: none;
        height: 100vh;
        overflow-y: auto;
    }

    .raffle-archive__filters.is-visible {
        transform: translateX(0);
    }
}

@media (max-width: 900px) {
    .raffle-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .raffle-archive__toolbar {
        border-radius: 4px;
    }

    .raffle-archive__lead {
   font-size: 13px;
}

    .raffle-archive__breadcrumbs {
    text-transform: capitalize;
        letter-spacing: 0px;
        font-size: 12px;
}

.raffle-archive__hero h1 {
    font-size: 23px;
}

    .raffle-archive__toolbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .raffle-card__footer {
        flex-direction: column;
        align-items: stretch;
    }
    .raffle-archive__grid {
        grid-template-columns: minmax(2, 1fr);
        gap: 6px;
    }
    .raffle-archive__toolbar {
    margin: 20px 10px 20px;
}
.raffle-archive__content {
    padding: 0 10px;
}
.raffle-card__body {
    padding: 10px;
    gap: 16px;
}
h3.raffle-card__title a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight:500;
}
.raffle-chip {
    font-size: 11px;
}
.raffle-card__cta {
    padding: 7px 10px;
    font-weight: 600;
    color: #000;
    font-size: 12px;
}

.raffle-archive__hero {
    padding: 72px 7vw 42px;
}
.raffle-archive__results, .raffle-archive__toolbar-right label {
    display: none !important;
}

    .raffle-archive__toolbar-inner {
        flex-direction: row;
    }

    .raffle-archive__filter-count {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.raffle-archive__filter-trigger {
    padding: 7px 16px;
}

}
