/* ========================================= */
/*          PÁGINA DE GIVEAWAYS              */
/* ========================================= */

.giveaways-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    width: 100%;
    max-width: none;
    background: var(--bg-primary);
}

/* Conteúdo principal */
.giveaways-content {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 2.5rem 2.5rem 3rem;
    overflow-y: auto;
    max-height: 100vh;
}

/* Scrollbar personalizada */
.giveaways-content::-webkit-scrollbar {
    width: 5px;
}
.giveaways-content::-webkit-scrollbar-track {
    background: transparent;
}
.giveaways-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.giveaways-page .page-title {
    text-align: left;
    font-size: 2.25rem;
    margin-bottom: 0.4rem;
    color: var(--accent);
    font-weight: 900;
    letter-spacing: -0.03em;
    max-width: 1300px;
}

.giveaways-page .page-subtitle {
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 1300px;
}

/* ========================================= */
/*         SECÇÃO DA PLATAFORMA              */
/* ========================================= */

.giveaway-platform-section {
    max-width: 1300px;
    margin: 0 auto 3rem;
}

.platform-header {
    margin-bottom: 1.5rem;
}

.platform-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.platform-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
}

.platform-description strong {
    color: var(--text-primary);
}

.highlight-blue {
    color: #60a5fa;
    font-weight: 600;
}

.highlight-green {
    color: #4ade80;
    font-weight: 600;
}

.highlight-link {
    color: #60a5fa;
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.highlight-link:hover {
    color: #93c5fd;
}

/* ========================================= */
/*         GRELHA DE GIVEAWAY CARDS          */
/* ========================================= */

.giveaways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

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

.giveaway-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 200ms ease;
}

.giveaway-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Card Header */
.giveaway-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.giveaway-date-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #166534;
    color: #4ade80;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.giveaway-date-badge .date-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giveaway-date-badge .date-icon svg {
    width: 14px;
    height: 14px;
}

/* Deposit info */
.giveaway-deposit-info {
    padding: 0.5rem 1.25rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Card Image Carousel */
.giveaway-card-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.carousel-slide img {
    max-width: 80%;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
    margin: auto;
}

/* Carousel Placeholder (sem imagens) */
.carousel-placeholder {
    font-size: 3rem;
    opacity: 0.2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 5;
    padding: 0;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.carousel-arrow.prev {
    left: 8px;
}

.carousel-arrow.next {
    right: 8px;
}

/* Card Item Info */
.giveaway-card-info {
    padding: 0 1.25rem;
    text-align: center;
}

.giveaway-item-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.giveaway-item-condition {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Card Footer */
.giveaway-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem 1.25rem;
    margin-top: auto;
}

.giveaway-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.giveaway-value span {
    color: #4ade80;
    font-weight: 800;
    font-size: 1.1rem;
}

.giveaway-enter-btn {
    padding: 0.45rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.giveaway-enter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.giveaway-enter-btn--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

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

.giveaways-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.giveaways-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.giveaways-empty h3 {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.giveaways-empty p {
    font-size: 0.9rem;
}

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

@media (max-width: 1100px) {
    .giveaways-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .giveaways-content {
        padding: 1.75rem 1.25rem 2.5rem;
    }

    .giveaways-page .page-title {
        font-size: 1.75rem;
    }

    .giveaways-page .page-subtitle {
        font-size: 0.9rem;
    }

    .giveaways-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .platform-header h2 {
        font-size: 1.4rem;
    }
}

