/* ==========================================================================
   RAZEM DO LA 2028 V2 - CUSTOM STYLES (Biało-Czerwona Polska!)
   ========================================================================== */

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

/* Sticky header effect */
header.sticky {
    box-shadow: 0 4px 12px rgba(0, 63, 135, 0.15);
    backdrop-filter: blur(10px);
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.mobile-menu.active {
    max-height: 500px;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile menu toggle animation */
.mobile-menu-toggle.active svg {
    transform: rotate(90deg);
}

/* Cookie banner */
#cookie-banner {
    animation: slideUp var(--transition-base) ease-out;
}

#cookie-banner.show {
    display: block !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Notification toast */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    z-index: var(--z-tooltip);
    opacity: 0;
    transform: translateX(400px);
    transition: all var(--transition-base);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-info {
    border-left: 4px solid var(--color-primary);
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 63, 135, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 63, 135, 0.3);
}

/* Form validation styles */
.is-invalid {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: block;
}

/* ==========================================================================
   HERO SECTION V2 - Modern Olympic Style
   ========================================================================== */

.hero-v2 {
    background-image: url('../images/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
}

.hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.85) 0%, rgba(176, 16, 48, 0.85) 50%, rgba(139, 0, 0, 0.85) 100%);
    z-index: 0;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-v2-content {
    position: relative;
    z-index: 1;
    color: var(--text-on-primary);
}

.hero-v2-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
}

.hero-v2-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-v2-hashtag {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
    }
}

/* ==========================================================================
   COUNTDOWN TIMER V2
   ========================================================================== */

.countdown-v2 {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.countdown-v2-item {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    min-width: 110px;
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.2);
    border: 2px solid rgba(220, 20, 60, 0.3);
    transition: all var(--transition-base);
}

.countdown-v2-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 32px rgba(220, 20, 60, 0.3);
    border-color: #DC143C;
}

.countdown-v2-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #DC143C;
    display: block;
    line-height: 1;
}

.countdown-v2-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #DC143C;
    font-weight: 700;
    margin-top: var(--spacing-xs);
    letter-spacing: 1px;
}

/* ==========================================================================
   PROGRESS BAR V2
   ========================================================================== */

.progress-v2-container {
    margin: var(--spacing-xl) 0;
}

.progress-v2-bar-wrapper {
    background: linear-gradient(90deg, rgba(220, 20, 60, 0.1) 0%, rgba(176, 16, 48, 0.1) 100%);
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(220, 20, 60, 0.15);
    border: 2px solid rgba(220, 20, 60, 0.2);
}

.progress-v2-bar {
    height: 100%;
    background: linear-gradient(90deg, #DC143C 0%, #B01030 50%, #8B0000 100%);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: var(--spacing-md);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.progress-v2-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-v2-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-md);
    font-size: 1rem;
}

.progress-v2-current {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.progress-v2-goal {
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   PACKAGE CARDS V2
   ========================================================================== */

.packages-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.package-v2-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 0;
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.package-v2-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #DC143C 0%, #FFFFFF 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.package-v2-card:hover::before {
    transform: scaleX(1);
}

.package-v2-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(0, 63, 135, 0.25);
    transform: translateY(-10px);
}

.package-v2-card.featured {
    border-color: #DC143C;
    border-width: 3px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(220, 20, 60, 0.05) 100%);
}

/* ==========================================================================
   PLAYER PROFILES V2
   ========================================================================== */

.players-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.player-v2-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.player-v2-card:hover {
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.2);
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.player-v2-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   TIMELINE V2
   ========================================================================== */

.timeline-v2 {
    position: relative;
    max-width: 900px;
    margin: var(--spacing-xl) auto;
}

.timeline-v2::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #DC143C 0%, #B01030 100%);
}

.timeline-v2-item {
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.timeline-v2-content {
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: calc(50% - 40px);
    border: 2px solid rgba(220, 20, 60, 0.1);
    transition: all var(--transition-base);
}

.timeline-v2-content:hover {
    border-color: var(--color-primary);
    box-shadow: 0 12px 32px rgba(220, 20, 60, 0.2);
}

.timeline-v2-item:nth-child(odd) .timeline-v2-content {
    margin-left: auto;
}

/* ==========================================================================
   FAQ ACCORDION V2
   ========================================================================== */

.faq-v2-container {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
}

.faq-v2-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-v2-item:hover {
    border-color: var(--color-primary);
}

.faq-v2-question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color var(--transition-fast);
}

.faq-v2-question:hover {
    background: linear-gradient(90deg, rgba(0, 63, 135, 0.05) 0%, transparent 100%);
}

.faq-v2-toggle {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform var(--transition-base);
}

.faq-v2-item.active .faq-v2-toggle {
    transform: rotate(180deg);
}

.faq-v2-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-v2-item.active .faq-v2-answer {
    max-height: 500px;
}

.faq-v2-answer-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
}

/* ==========================================================================
   ANIMATIONS V2
   ========================================================================== */

@keyframes fadeInUp-v2 {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-v2 {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.fade-in-up-v2 {
    animation: fadeInUp-v2 var(--transition-slow) ease-out;
}

.pulse-v2 {
    animation: pulse-v2 2.5s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    .hero-v2-title {
        font-size: 2.5rem;
    }

    .hero-v2-subtitle {
        font-size: 1.25rem;
    }

    .hero-v2-hashtag {
        font-size: 1.75rem;
    }

    .countdown-v2 {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .countdown-v2-item {
        min-width: 90px;
        padding: var(--spacing-md);
    }

    .countdown-v2-number {
        font-size: 2.5rem;
    }

    .timeline-v2::before {
        left: 20px;
    }

    .timeline-v2-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .packages-v2-grid {
        grid-template-columns: 1fr;
    }

    .players-v2-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-v2-title {
        font-size: 2rem;
    }

    .countdown-v2-number {
        font-size: 2rem;
    }
}
