/**
 * Winter Case Cup - Custom Styles
 *
 * Dodatkowe style i nadpisania
 * Edytuj ten plik, aby dostosować wygląd bez modyfikacji głównego pliku style.css
 *
 * @package Winter_Case_Cup
 */

/* =================================================================
   ALERTY / KOMUNIKATY
   ================================================================= */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert i {
    font-size: 1.25rem;
}

/* =================================================================
   LICZNIK SŁÓW
   ================================================================= */
.word-count {
    transition: color var(--transition-fast);
}

/* =================================================================
   PLACEHOLDER SPONSORÓW
   ================================================================= */
.sponsor-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    background: var(--color-gray-100);
    color: var(--color-gray-400);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px dashed var(--color-gray-300);
    min-width: 200px;
    min-height: 80px;
}

/* =================================================================
   PLACEHOLDER AKTUALNOŚCI
   ================================================================= */
.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =================================================================
   HELPER CLASSES
   ================================================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* =================================================================
   MOBILE MENU ANIMATION
   ================================================================= */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =================================================================
   SEPARATOR W HERO
   ================================================================= */
.hero-date .separator {
    opacity: 0.5;
}

/* =================================================================
   FORM HELP TEXT
   ================================================================= */
.form-help {
    display: block;
    margin-top: 5px;
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}

/* =================================================================
   LOCATION SECTION ENHANCEMENTS
   ================================================================= */
.location-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.location-feature i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    width: 40px;
    flex-shrink: 0;
}

.location-feature strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.location-feature p {
    margin: 0;
    color: var(--color-gray-500);
    font-size: var(--text-sm);
}

/* =================================================================
   COUNTDOWN MESSAGE
   ================================================================= */
.countdown-message {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-secondary);
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
}

/* =================================================================
   ACTIVE NAV LINK
   ================================================================= */
.nav-menu a.active {
    background: rgba(212, 165, 54, 0.2);
    color: var(--color-secondary);
}

/* =================================================================
   SCHEDULE ENHANCEMENTS
   ================================================================= */
.schedule-tab i {
    margin-right: 8px;
}

/* =================================================================
   SCROLL ANIMATIONS ENHANCEMENT
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .snowflake {
        display: none;
    }
}

/* =================================================================
   CUSTOM SCROLLBAR
   ================================================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
    .site-header,
    .hero-section,
    .back-to-top,
    .snowflakes,
    .scroll-indicator,
    .btn,
    .contact-form-wrapper,
    .abstract-form-wrapper,
    .site-footer {
        display: none !important;
    }

    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* =================================================================
   FOCUS STATES FOR ACCESSIBILITY
   ================================================================= */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid var(--color-secondary);
    outline-offset: 3px;
}

/* =================================================================
   SKIP LINK FOR ACCESSIBILITY
   ================================================================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 15px;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* =================================================================
   HIGH CONTRAST MODE
   ================================================================= */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000080;
        --color-secondary: #cc8800;
    }

    .btn-primary {
        background: var(--color-secondary);
        color: #000;
        border: 2px solid #000;
    }

    .section-dark {
        background: #000;
    }
}

/* =================================================================
   DARK MODE SUPPORT (opcjonalne)
   ================================================================= */
@media (prefers-color-scheme: dark) {
    /* Odkomentuj poniższe, jeśli chcesz włączyć automatyczny dark mode */
    /*
    :root {
        --color-light: #1a1a1a;
        --color-white: #121212;
        --color-gray-100: #2a2a2a;
        --color-gray-200: #3a3a3a;
        --color-gray-700: #e0e0e0;
        --color-dark: #f0f0f0;
    }

    .section-light {
        background: #1a1a1a;
    }

    .news-card,
    .abstract-form-wrapper,
    .contact-form-wrapper,
    .schedule-content,
    .sponsor-item {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    */
}
