/* Additional styles for better performance and appearance */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Better typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

/* Enhanced header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Improved navigation */
nav ul li a {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Content improvements */
.content p {
    margin-bottom: 1.2rem;
    color: #4a5568;
}

.content ul, .content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content strong {
    color: #1a365d;
}

/* Enhanced feature cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-card h3, .feature-card h4 {
    margin-bottom: 0.5rem;
}

/* Promo codes styling */
.promo-codes .promo-code {
    user-select: all;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.promo-codes .promo-code:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* App links enhancement */
.app-link {
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.app-link:hover {
    border-color: #fbbf24;
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

/* Images optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image {
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Footer improvements */
footer {
    margin-top: 3rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus states for accessibility */
nav a:focus,
.app-link:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header,
    .sidebar,
    footer {
        display: none;
    }

    .content {
        box-shadow: none;
        padding: 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card {
        border: 2px solid #000;
    }

    nav a:hover {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Additional responsive breakpoints */
@media (max-width: 1024px) {
    .container {
        padding: 0 10px;
    }

    .features {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .content {
        padding: 1rem;
    }

    .sidebar {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .apps {
        flex-direction: column;
    }
}

/* Performance optimizations */
.content img {
    loading: lazy;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
