/* =====================================================
   GEWINNSPIELE ARCHIVE
   ===================================================== */

.giveaway-page {
    --accent: var(--accent-color, #0669ff);
    --dark: #1d1d1d;
}

/* ===== HERO ===== */
.giveaway-hero {
    background: linear-gradient(135deg, #1d1d1d 0%, #0d0d0d 60%, #1a1a1a 100%);
    overflow: hidden;
    position: relative;
}

.giveaway-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at right, rgba(6, 105, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.giveaway-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    position: relative;
}

.giveaway-hero-content {
    flex: 1;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.giveaway-hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    margin-bottom: 16px;
}

.giveaway-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}

.giveaway-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

@media (max-width: 900px) {
    .giveaway-hero-content {
        padding: 32px 24px;
        text-align: center;
    }
}

/* ===== CONTAINER ===== */
.giveaway-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ===== LAYOUT ===== */
.giveaway-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1000px) {
    .giveaway-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== MAIN ===== */
.giveaway-main {
    min-width: 0;
}

.giveaway-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.giveaway-section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dark);
    margin: 0;
}

/* ===== GRID ===== */
.giveaway-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 700px) {
    .giveaway-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== GIVEAWAY CARD ===== */
.giveaway-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.giveaway-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.giveaway-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.giveaway-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
    overflow: hidden;
}

.giveaway-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.giveaway-card:hover .giveaway-card-image img {
    transform: scale(1.03);
}

.giveaway-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e5e5e5);
}

/* Badge oben links */
.giveaway-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #666;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 6px 10px;
    z-index: 2;
}

.giveaway-card-badge.is-ad {
    background: #666;
}

/* ===== RAFFLEPRESS STATUS ===== */
.giveaway-status {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.giveaway-status.is-active {
    background: #10b981;
    color: #fff;
}

.giveaway-status.is-active .status-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.giveaway-status.is-ended {
    background: rgba(0,0,0,0.7);
    color: #fff;
}

/* Beendete Gewinnspiele - Bild abdunkeln */
.giveaway-card.is-ended .giveaway-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    pointer-events: none;
}

.giveaway-card.is-ended .giveaway-card-image img {
    filter: grayscale(50%);
}

/* Card Body */
.giveaway-card-body {
    padding: 20px;
}

.giveaway-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.giveaway-card:hover .giveaway-card-title {
    color: var(--accent);
}

.giveaway-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.giveaway-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #999;
}

.giveaway-card-date svg {
    opacity: 0.6;
}

/* ===== LOAD MORE ===== */
.giveaway-loadmore {
    margin-top: 32px;
}

.giveaway-loadmore button {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.giveaway-loadmore button:hover {
    background: #0557d4;
}

.giveaway-loadmore button.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ===== SIDEBAR ===== */
.giveaway-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 20px;
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dark);
    margin: 0 0 16px;
}

/* ===== NEWSLETTER BOX (wie bei Deals) ===== */
.sidebar-newsletter {
    background: var(--accent);
    padding: 28px 24px;
    text-align: center;
}

.sidebar-newsletter-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-newsletter-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.sidebar-newsletter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.sidebar-newsletter-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin: 0 0 20px;
}

/* ===== SOCIAL BOX ===== */
.giveaway-social-box .giveaway-social-text {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 14px;
    line-height: 1.5;
}

.giveaway-social-links {
    display: flex;
    gap: 8px;
}

.giveaway-social-link {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.giveaway-social-link svg {
    width: 18px;
    height: 18px;
    color: #666;
    transition: color 0.2s;
}

.giveaway-social-link:hover {
    background: var(--accent);
}

.giveaway-social-link:hover svg {
    color: #fff;
}

/* ===== MOBILE ===== */
@media (max-width: 1000px) {
    .giveaway-sidebar {
        order: -1;
    }
}