/* Landing Page Styles */
:root {
    --primary-color: #3497DA;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    
    --gradient-primary: linear-gradient(to right, #2C3F51, #3497DA);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    min-height: 85px !important;
    max-height: 85px !important;
}

.navbar.scrolled {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .navbar-brand img {
    filter: brightness(0) invert(1) !important;
    transition: filter 0.3s ease;
}

.navbar-brand {
    padding-top: 0.3125rem !important;
    padding-bottom: 0.3125rem !important;
}

.navbar-brand img {
    transition: var(--transition), filter 0.3s ease;
    filter: none !important; /* Garantir que no estado normal não há filtro */
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color);
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="80" fill="url(%23a)"/><circle cx="300" cy="700" r="120" fill="url(%23a)"/><circle cx="900" cy="800" r="90" fill="url(%23a)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 4.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .text-primary {
    background: linear-gradient(45deg, #40E0D0, #FF8C00, #FF0080);
    background-size: 600% 600%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius);
}

.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-secondary:hover {
    background: var(--white);
    color: var(--dark-color);
    transform: translateY(-2px);
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sports Icons Section - Right Side */
.hero-sports-right {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sports-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.sports-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.sports-icons-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.sport-icon-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.sport-icon-compact:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.sport-icon-compact svg {
    color: var(--white);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.sport-icon-compact:hover svg {
    transform: scale(1.1);
    color: #40E0D0;
}

.sport-icon-compact span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    text-align: center;
    line-height: 1.1;
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 300;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
}

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

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots-section {
    padding: 5rem 0;
}

.screenshot-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.screenshot-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.screenshot-card:hover img {
    transform: scale(1.05);
}

.screenshot-content {
    padding: 1.5rem;
}

.screenshot-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.screenshot-content p {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.95rem;
}

/* How it Works Section */
.how-it-works-section {
    padding: 5rem 0;
}

.step-item {
    padding: 2rem 1rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.step-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step-item p {
    color: var(--secondary-color);
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .hero-content {
        padding-top: 6rem;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .hero-sports-right {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .sports-icons-grid-compact {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
    
    .sport-icon-compact {
        padding: 0.75rem 0.25rem;
    }
    
    .sport-icon-compact svg {
        width: 28px;
        height: 28px;
    }
    
    .sport-icon-compact span {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .step-item {
        padding: 1.5rem 0.5rem;
    }
    
    .sports-icons-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .sport-icon-compact {
        padding: 0.5rem 0.25rem;
    }
    
    .sport-icon-compact svg {
        width: 24px;
        height: 24px;
    }
    
    .sport-icon-compact span {
        font-size: 0.6rem;
    }
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease forwards;
}

/* Features Showcase Section */
.features-showcase-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-highlight {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-highlight:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.feature-highlight:hover .feature-icon-large {
    transform: scale(1.1) rotate(5deg);
}

.feature-highlight h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-highlight p {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Enhanced Screenshot Cards */
.screenshots-section .screenshot-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.screenshots-section .screenshot-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.screenshots-section .screenshot-card img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: var(--transition);
}

.screenshots-section .screenshot-card:hover img {
    transform: scale(1.02);
}

.screenshots-section .screenshot-content {
    padding: 1.5rem;
    background: var(--white);
}

.screenshots-section .screenshot-content h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.screenshots-section .screenshot-content p {
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.6;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .feature-highlight {
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .feature-icon-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .screenshots-section .screenshot-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .features-showcase-section .col-lg-3 {
        margin-bottom: 1rem;
    }
}

.navbar-toggler {
    padding: 0.25rem 0.5rem !important;
    border: none !important;
}

/* Fix para mobile - menu collapse com fundo branco */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        border-radius: 0 0 0.5rem 0.5rem;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse .navbar-nav .nav-link {
        color: var(--dark-color) !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-collapse .navbar-nav .nav-link:hover {
        background-color: rgba(52, 151, 218, 0.1);
        color: var(--primary-color) !important;
    }
    
    .navbar-collapse .btn-primary {
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Fix para mobile - espaçamento adicional para telas muito pequenas */
@media (max-width: 576px) {
    .hero-content {
        padding-top: 6.5rem !important;
    }
}

/* ============ CORREÇÃO LAYOUT MOBILE HERO E FEATURES ============ */
/* Fix para evitar sobreposição entre "esportes suportados" e "por que escolher o rank1ng" */
@media (max-width: 768px) {
    /* Garantir altura mínima adequada para a hero section no mobile */
    .hero-section {
        min-height: auto !important;
        padding-bottom: 3rem;
        overflow: visible !important;
        transform: none !important; /* Forçar sem parallax no mobile */
        position: relative !important; /* Garantir posição estática */
    }
    
    .hero-section .row.align-items-center.min-vh-100 {
        min-height: auto !important;
        align-items: flex-start !important;
    }
    
    /* Garantir que a hero-image fique estática no mobile */
    .hero-image {
        position: static !important;
        transform: none !important;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero-image img {
        transform: none !important; /* Desabilitar efeitos 3D no mobile */
        max-width: 100%;
        height: auto;
    }
    
    /* Garantir que a coluna direita seja totalmente visível */
    .hero-section .col-lg-6:last-child {
        margin-bottom: 2rem;
    }
    
    /* Ajustar espaçamento da seção de esportes no mobile */
    .hero-sports-right {
        margin-top: 2rem;
        padding-top: 1.5rem;
        margin-bottom: 2rem; /* Adicionar margem inferior */
        padding-bottom: 1rem; /* Adicionar padding inferior */
        position: relative !important; /* Garantir posicionamento correto */
        z-index: 1; /* Garantir que fique acima de qualquer elemento */
    }
    
    /* Garantir espaçamento adequado entre hero e features */
    .features-section {
        margin-top: 1rem; /* Reduzir margem superior para mobile */
        padding: 3rem 0; /* Reduzir padding para mobile */
        position: relative;
        z-index: 2; /* Garantir que a features section fique visível */
    }
    
    /* Melhorar espaçamento dos ícones de esportes */
    .sports-icons-grid-compact {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    /* Para telas muito pequenas, garantir ainda mais espaçamento */
    .hero-sports-right {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }
    
    .features-section {
        padding: 2rem 0;
        position: relative;
        z-index: 1;
    }
    
    /* Garantir que o hero content seja exibido completamente */
    .hero-content {
        padding-top: 6.5rem !important;
        position: relative;
        z-index: 2;
    }
    
    /* Espaçamento adicional para evitar sobreposição */
    .hero-section {
        padding-bottom: 4rem !important;
    }
}
