/* Base spacing from uv.css */


.tombola-page a {
    color: var(--color-pink-dark);
}

.hero-tombola {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 8rem 0 3rem 3rem;
}

/* Sponsors styling */
.sponsors-section {
    margin-top: 3rem;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.sponsors-section h2,
.sponsors-section p {
    color: #fff;
}

.sponsor-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 107, 111, 0.12);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.7);
}

.sponsor-logo {
    width: 150px;
    /* height: 80px; */
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.sponsor-info h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    color: #191a2c;
    text-shadow: 0 0 4px #0feced73;
}

.sponsor-info p {
    font-size: 0.85rem;
    color: #191a2c;
    margin: 0.2rem 0;
    line-height: normal;
}

.sponsor-info a {
    font-size: .9rem;
    font-weight: 500;
}

/* Prizes section in the right card */
.prizes-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prize-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 1rem;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;

    /* Initial state: partially hidden/pushed to the right? */
    /* The user wants it to "show more from left to right" */
    /* Let's interpret this as the content being clipped or shifted, and on hover it expands/reveals */
}

.prize-image-wrapper {
    flex: 0 0 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-soft);
}

.prize-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-content {
    flex: 1;
}

.prize-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    display: block;
}

.prize-item h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.prize-item p {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

/* The "show more" hover effect */
.prizes-card {
    /* Significantly increase negative margin to reach screen edge from a centered container */
    margin-right: -45% !important;
    transform: translateX(25%) !important;
    /* Adjust to keep ~1/3 hidden initially */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding-right: 20% !important;
    position: relative;
    /* Ensure toggle is positioned relative to card */
}

.card-toggle {
    position: absolute;
    left: 0;
    top: 45%;
    /* Position it higher up, or centered if preferred. User said "Fortsatz", usually vertically centered or slightly above */
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -15px 0 30px -10px #00ffff;
    /* Match card's cyan glow but on the left */
    color: #5f6b73;
    /* Gray arrow */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.card-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.6s ease;
}

.prizes-card:hover {
    /* Slide in to overlap, but keep the right edge/radius hidden off-screen */
    transform: translateX(-15%) !important;
    /* Reduce padding on hover to give the content more space */
    padding-right: 26rem !important;
    /* Increase card width on hover to give content even more room */
    flex: 0 0 80% !important;
}

.prizes-card:hover .card-toggle {
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.05);
    /* Subtler shadow when open */
}

.prizes-card:hover .card-toggle svg {
    transform: rotate(180deg);
    /* Point right when open */
}

.prize-item {
    /* Remove the movement on items, per user request */
    transform: none !important;
    opacity: 1 !important;
}

.prizes-card:hover .prize-item {
    transform: none !important;
    opacity: 1 !important;
}

/* Individual prize hover - show more from left to right */
.prize-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
    z-index: 0;
    opacity: 0.1;
}

.prize-item:hover::before {
    width: 100%;
}

.prize-item:hover {
    border-color: var(--primary);
    transform: scale(1.02) translateX(-10px);
    box-shadow: var(--shadow);
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 980px) {
    #main-content .hero-tombola {
        flex-direction: column;
        padding: 2rem;
    }

    .sponsors-grid {
        grid-template-columns: 1fr 1fr;
    }

    .prizes-card {
        margin-right: 0 !important;
        transform: none !important;
        padding-right: 1.5rem !important;
        /* Reset to normal padding */
        width: 100% !important;
        flex: none !important;
        margin-top: 2rem;
    }

    .prizes-card:hover {
        transform: translateY(-10px) !important;
        margin-right: 0 !important;
        padding-right: 1.5rem !important;
    }

    .card-toggle {
        display: none !important;
        /* Hide toggle on mobile */
    }

    #formular.card:hover .prizes-container,
    #formular.card:focus-within .prizes-container {
        width: 100%;
        /* Ensure full width on mobile */
    }
}

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

    .prize-item {
        flex-direction: column;
        gap: 1rem;
    }

    .prize-image-wrapper {
        flex: 0 0 150px;
        width: 100%;
    }
}