/* 7kBet Brasil Custom Styles */

/* Root Variables - Project Color Palette */
:root {
    --primary-color: #1e40af;
    --secondary-color: #16a34a;
    --success-color: #059669;
    --background-color: #f8fafc;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --white: #ffffff;
    --light-gray: #f1f5f9;
    --border-color: #e2e8f0;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* Bootstrap Color Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: var(--white);
}

.btn-success:hover,
.btn-success:focus {
    background-color: #047857;
    border-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Header Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand img {
    filter: brightness(1.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    min-height: 60vh;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Feature Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

/* Security Section */
.bg-light {
    background-color: var(--background-color) !important;
}

/* Buttons Enhancement */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Footer Styles - FIXED READABILITY */
footer.bg-dark {
    background-color: #1f2937 !important;
    color: #f9fafb !important;
}

footer.bg-dark h5,
footer.bg-dark h6 {
    color: #ffffff !important;
    font-weight: 600;
}

footer.bg-dark .text-muted {
    color: #9ca3af !important;
}

footer.bg-dark .text-light {
    color: #f9fafb !important;
}

footer.bg-dark a.text-muted {
    color: #9ca3af !important;
    transition: color 0.3s ease;
}

footer.bg-dark a.text-muted:hover {
    color: #ffffff !important;
}

footer.bg-dark a.text-light {
    color: #f9fafb !important;
    transition: color 0.3s ease;
}

footer.bg-dark a.text-light:hover {
    color: var(--success-color) !important;
}

/* Social Links */
.social-links a {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--success-color) !important;
}

/* Author Box */
.author-box {
    background-color: var(--light-gray);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.author-box img {
    border: 3px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Mobile Menu Improvements */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.flex-column.flex-sm-row {
        flex-direction: column !important;
    }
}

/* Utility Classes */
.min-vh-50 {
    min-height: 50vh;
}

.shadow-soft {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Performance Optimizations */
.card,
.btn,
.navbar-nav .nav-link {
    will-change: transform;
}

/* Text Selection */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--white);
}