/* Custom CSS for Slots Brasil - Minimal overrides to Bootstrap 5 */

/* Performance optimizations */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Image optimizations for faster loading */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    display: inline-block;
}

/* Mobile-first optimizations */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: rgba(var(--bs-primary-rgb), 0.95);
        margin-top: 0.5rem;
        border-radius: 0.375rem;
        padding: 1rem;
    }
    
    .display-5, .display-6 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Ensure buttons are touch-friendly on mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Ensure good contrast for accessibility */
.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(13, 110, 253, var(--bs-bg-opacity)) !important;
}

.text-muted {
    --bs-text-opacity: 1;
    color: #6c757d !important;
}

/* Smooth transitions for better UX */
.btn, .card, .navbar-nav .nav-link {
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Sticky sidebar on desktop */
@media (min-width: 992px) {
    .sticky-top {
        position: sticky;
        top: 2rem;
        z-index: 1020;
    }
}

/* Better readability for content */
main p, main li {
    color: #212529;
    font-size: 1rem;
    line-height: 1.7;
}

/* Optimize for Core Web Vitals */
.navbar-brand img {
    width: auto;
    height: 40px;
}

/* Loading optimization */
.card-img-top {
    object-fit: cover;
    height: 200px;
}

/* Social links styling */
a[href*="linkedin.com"], 
a[href*="twitter.com"] {
    color: #0077b5;
    text-decoration: none;
    font-weight: 500;
}

a[href*="linkedin.com"]:hover {
    color: #005582;
}

a[href*="twitter.com"] {
    color: #1da1f2;
}

a[href*="twitter.com"]:hover {
    color: #0d8bd9;
}

/* Star ratings */
.text-warning i {
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

/* Responsive tables if needed */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Print styles */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }
}

/* Focus styles for accessibility */
.btn:focus, .nav-link:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@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;
    }
}