/* Registration Enhancement Styles */

/* Registration Banner Styles */
.registration-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
}

/* Below header positioning with slide animation */
.registration-banner.below-header {
    position: fixed;
    top: 0; /* Start behind the header */
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    z-index: 35; /* Lower than header z-40 to start behind it */
    transform: translateY(0); /* Start hidden behind header */
}

.registration-banner.below-header.show {
    transform: translateY(64px); /* Slide down to below header */
}

.registration-banner.show {
    transform: translateY(0);
}

.registration-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.registration-banner .banner-content {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.registration-banner .banner-content .trophy-icon {
    margin-right: 8px;
    animation: bounce-subtle 2s infinite;
}

.registration-banner .banner-text {
    margin-right: 16px;
}

.registration-banner .banner-cta {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.registration-banner .banner-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.registration-banner .close-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 4px;
}

.registration-banner .close-btn:hover {
    opacity: 1;
}

/* Progressive Tooltips */
.progressive-tooltip {
    position: relative;
    display: inline-block;
}

.progressive-tooltip .tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.progressive-tooltip .tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1f2937;
}

.progressive-tooltip.show .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Contextual Registration Prompts */
.registration-prompt {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.registration-prompt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.registration-prompt .prompt-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.registration-prompt .prompt-text {
    flex: 1;
    min-width: 200px;
}

.registration-prompt .prompt-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.registration-prompt .prompt-description {
    color: #4a5568;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.registration-prompt .prompt-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.registration-prompt .prompt-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Animations */
@keyframes bounce-subtle {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
    }
}

/* Enhanced CTA animations */
.enhanced-cta {
    position: relative;
    overflow: hidden;
}

.enhanced-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.enhanced-cta:hover::before {
    left: 100%;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .registration-banner.below-header.show {
        transform: translateY(64px); /* Ensure consistent slide distance on mobile */
    }
    
    .registration-banner .banner-content {
        font-size: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    
    .registration-banner .banner-text {
        margin-right: 0;
        margin-bottom: 4px;
    }
    
    /* Hide trophy icon on mobile to keep banner compact */
    .registration-banner .trophy-icon {
        display: none;
    }
    
    .registration-prompt .prompt-content {
        flex-direction: column;
        text-align: center;
    }
    
    .registration-prompt .prompt-cta {
        width: 100%;
        text-align: center;
    }
    
    .progressive-tooltip .tooltip-content {
        left: 0;
        right: 0;
        transform: none;
        margin: 0 16px 8px 16px;
        white-space: normal;
    }
    
    .progressive-tooltip .tooltip-content::after {
        left: 50%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .registration-prompt {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .registration-prompt .prompt-title {
        color: #e2e8f0;
    }
    
    .registration-prompt .prompt-description {
        color: #a0aec0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .registration-banner,
    .progressive-tooltip .tooltip-content,
    .registration-prompt .prompt-cta,
    .enhanced-cta::before {
        transition: none;
    }
    
    @keyframes bounce-subtle {
        from, to { transform: translateY(0); }
    }
}