/* =====================================================
       Giveaway page — dark theme + orange accent (#ff8630)
       ===================================================== */

/* Dark canvas below the hero so sections sit on dark */
.main {
    background-color: #3D3D3D;
}

/* --- Hero --- */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(24, 27, 34, 0.45) 0%, rgba(24, 27, 34, 0.82) 100%);
    pointer-events: none;
}

.page-header .content-center {
    z-index: 2;
}

.hero-logo {
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    margin-bottom: .75rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    margin: .4rem 0 1.5rem;
}

.hero-actions {
    margin-bottom: 1.75rem;
}

.hero-actions .btn {
    margin: .25rem .3rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(45, 45, 45, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 999px;
    padding: .42rem 1rem;
    font-size: .86rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.stat-pill i {
    color: #ff8630;
    width: 1.1rem;
    text-align: center;
    font-size: .95rem;
    line-height: 1;
    flex-shrink: 0;
    transform: translateY(0);
}

.stat-pill strong {
    line-height: 1;
}

/* --- Orange accent buttons --- */
.btn-orange {
    background-color: #c85d00;
    border-color: #c85d00;
    color: #fff;
    box-shadow: none;
}

.btn-orange:hover,
.btn-orange:focus,
.btn-orange:not(:disabled):not(.disabled):active,
.btn-orange:not(:disabled):not(.disabled).active {
    background-color: #a94e00;
    border-color: #a94e00;
    color: #fff;
    box-shadow: none;
}

.text-orange {
    color: #ff8630 !important;
}

/* --- "Come funziona" step cards --- */
.section-title {
    font-weight: 700;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.step-card {
    position: relative;
    height: 100%;
    background-color: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: #fff;
    padding: 2.25rem 1.5rem 2rem;
    margin-bottom: 2rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.step-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8630, #f96332);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.step-icon {
    font-size: 2.4rem;
    color: #ff8630;
    margin-bottom: 1rem;
}

.step-card h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: .6rem;
}

.step-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: .95rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .step-card {
        margin-bottom: 0;
    }
}

/* --- Giveaway table card --- */
.giveaway-section {
    padding: 70px 0;
    scroll-margin-top: 90px;
}

.giveaway-card {
    background-color: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    color: #fff;
    overflow: hidden;
}

.giveaway-card .card-body {
    padding: 1.25rem 1.25rem 1rem;
}

.giveaway-card .card-title {
    color: #fff;
    margin-bottom: .25rem;
    font-size: 1.55rem;
    font-weight: 700;
}

.giveaway-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: .98rem;
}

.giveaway-hint a {
    color: #ff8630;
    font-weight: 600;
}

.giveaway-count-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 134, 48, 0.16);
    color: #ff8630;
    border: 1px solid rgba(255, 134, 48, 0.4);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

.giveaway-toolbar {
    margin-top: .8rem;
    max-width: 460px;
}

.search-wrap {
    position: relative;
}

.search-wrap i {
    position: absolute;
    left: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 3;
    font-size: .9rem;
    pointer-events: none;
}

.giveaway-search {
    background-color: #3D3D3D;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    color: #fff;
    height: 46px;
    padding-left: 2.6rem;
}

.giveaway-search::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.giveaway-search:focus {
    background-color: #3D3D3D;
    border-color: #ff8630;
    color: #fff;
    box-shadow: none;
}

/* --- Giveaway grid: 3 creators per row --- */
.giveaway-grid {
    padding: .25rem .25rem .75rem;
}

.giveaway-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    background-color: #3D3D3D;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: .55rem .85rem;
    margin-bottom: .7rem;
    color: #fff;
    font-size: .9rem;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.giveaway-item:hover,
.giveaway-item:focus {
    background-color: rgba(255, 134, 48, 0.15);
    border-color: rgba(255, 134, 48, 0.45);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.giveaway-item .row-index {
    min-width: 22px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: .8rem;
}

.giveaway-item .creator-cell {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.giveaway-item .creator-cell .fas {
    margin-right: .35rem;
}

.giveaway-item .participate-arrow {
    color: #ff8630;
    font-size: .9rem;
    flex-shrink: 0;
}

.giveaway-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem;
}

.giveaway-empty i {
    display: block;
    font-size: 2.2rem;
    color: #ff8630;
    margin-bottom: .75rem;
}

.giveaway-empty h5 {
    color: #fff;
}

.giveaway-empty p {
    color: rgba(255, 255, 255, 0.55);
}

/* --- Final CTA --- */
.glow-card {
    background: radial-gradient(ellipse at top, #3a3126 0%, #2d2d2d 60%);
    border: 1px solid rgba(255, 134, 48, 0.25);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.glow-icon {
    font-size: 3rem;
    color: #ff8630;
    margin-bottom: 1rem;
}

.glow-copy {
    color: rgba(255, 255, 255, 0.8);
    max-width: 560px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}

.glow-btn {
    padding: .9rem 2.2rem !important;
    font-size: 1.05rem;
}

/* --- Mobile tweaks --- */
@media (max-width: 767.98px) {
    .page-header-small {
        min-height: 88vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-logo {
        width: 90px !important;
        height: 90px !important;
    }

    .hero-actions {
        margin-bottom: 1.25rem;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: .5rem auto;
    }

    .stat-pill {
        font-size: .78rem;
        padding: .35rem .75rem;
    }
}
