/**
 * Styles für das Camp Countdown Widget
 */

.camp-widget-container {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #00C851 0%, #00a844 100%);
    box-shadow: 0 4px 20px rgba(0, 200, 81, 0.3);
    z-index: 40;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    /* Padding-Bottom, damit Cookie-Banner nicht überschneidet */
    margin-bottom: 0;
}

.camp-widget-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Header mit Camp-Name */
.camp-widget-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 180px;
}

.camp-widget-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.95;
}

.camp-widget-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

/* Countdown Timer */
.camp-widget-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    min-width: 50px;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.125rem;
}

.countdown-separator {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.125rem;
}

/* Availability Badges */
.camp-widget-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.availability-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.availability-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.badge-spots {
    font-size: 1rem;
    font-weight: 800;
    color: #dc2626;
    text-align: center;
}

/* CTA Button */
.camp-widget-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #ffc107;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.camp-widget-button:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.5);
}

.camp-widget-button:active {
    transform: translateY(0);
}

.button-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.camp-widget-button:hover .button-icon {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .camp-widget-content {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }
    
    .camp-widget-name {
        font-size: 1rem;
    }
    
    .countdown-value {
        font-size: 1.25rem;
    }
    
    .camp-widget-badges {
        width: 100%;
        justify-content: space-between;
    }
    
    .availability-badge {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .camp-widget-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
    }
    
    .camp-widget-header {
        text-align: center;
        min-width: auto;
    }
    
    .camp-widget-countdown {
        justify-content: center;
        min-width: auto;
    }
    
    .camp-widget-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .availability-badge {
        width: 100%;
        min-width: auto;
    }
    
    .camp-widget-button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .countdown-item {
        min-width: 45px;
        padding: 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .camp-widget-content {
        padding: 0.875rem;
    }
    
    .countdown-item {
        min-width: 40px;
        padding: 0.375rem 0.5rem;
    }
    
    .countdown-value {
        font-size: 1rem;
    }
    
    .countdown-label {
        font-size: 0.5625rem;
    }
    
    .countdown-separator {
        font-size: 1rem;
        margin: 0 0.0625rem;
    }
}

/* Animation für das Erscheinen des Widgets */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.camp-widget-container {
    animation: slideDown 0.5s ease-out;
}
