/* SEO and Accessibility Enhancements */

/* Screen Reader Only Content */
.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;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
    border-radius: 4px;
}

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

/* Focus Management */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card-glow,
    .featured-card::before {
        display: none;
    }

    .game-card-modern,
    .featured-card {
        border: 2px solid currentColor;
    }
}

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

    .gradient-text {
        background: #667eea;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* Print Styles */
@media print {
    .header,
    .search-section,
    .footer {
        display: none;
    }

    .game-card-modern {
        break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }
}

/* Touch Target Optimization */
@media (pointer: coarse) {
    .play-btn,
    .favorite-btn,
    .featured-card,
    .search-clear {
        min-height: 44px;
        min-width: 44px;
    }
}