/**
 * Festival Starówka - Accessibility Styles
 * WCAG 2.1 AA Compliant
 */

/* Accessibility Bar */
.accessibility-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 8px 0;
    z-index: 9999;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.accessibility-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.accessibility-bar .btn {
    background: #3498db;
    color: #fff;
    border: 2px solid #3498db;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.accessibility-bar .btn:hover,
.accessibility-bar .btn:focus {
    background: #2980b9;
    border-color: #2980b9;
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}

.accessibility-bar .btn:active {
    transform: translateY(1px);
}

/* Font Size Controls */
.font-large { font-size: 120% !important; }
.font-larger { font-size: 140% !important; }
.font-largest { font-size: 160% !important; }

.font-large h1, .font-larger h1, .font-largest h1 { font-size: 2.5em !important; }
.font-large h2, .font-larger h2, .font-largest h2 { font-size: 2em !important; }
.font-large h3, .font-larger h3, .font-largest h3 { font-size: 1.5em !important; }

/* High Contrast Mode */
.high-contrast {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

.high-contrast a:visited {
    color: #ff00ff !important;
}

.high-contrast button,
.high-contrast input,
.high-contrast select,
.high-contrast textarea {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #fff !important;
}

.high-contrast .btn-primary {
    background: #ffff00 !important;
    color: #000 !important;
    border-color: #ffff00 !important;
}

.high-contrast .accessibility-bar {
    background: #000 !important;
    border-bottom: 2px solid #fff !important;
}

/* Focus Styles */
*:focus {
    outline: 3px solid #f39c12;
    outline-offset: 2px;
}

/* Skip Links */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

/* Print Styles */
@media print {
    .accessibility-bar,
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}