/*
Theme Name: World Cup Predictor Theme
Theme URI: https://laooz.com
Author: Laooz Studios
Author URI: https://laooz.com
Description: Professional WordPress theme for World Cup Predictor plugin with modern design and full responsiveness
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: world-cup-predictor
Tags: world-cup, sports, predictions, tailwind, modern
*/

/* Base styles handled by Tailwind CSS CDN */
html, body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    position: relative;
}

/* Logo - Tamaño fijo consistente en todas las páginas */
nav img,
nav .custom-logo,
.custom-logo-link img {
    max-height: 48px !important;
    height: 48px !important;
    width: auto !important;
    display: block;
}

/* Animación para notificaciones de compra */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.gradient-hero {
    background-image: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.75) 100%),
        url('img/fondo-mundial.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Fix background image for mobile devices */
@media (max-width: 768px) {
    .gradient-hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

/* Additional mobile fix for iOS */
@media (max-width: 1024px) {
    .gradient-hero {
        background-attachment: scroll;
    }
}

.gradient-cta {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

.screenshot-container {
    position: relative;
    overflow: hidden;
}

.screenshot-container img {
    transition: transform 0.5s ease;
}

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

/* Navbar Styles */
nav {
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

/* Navbar con efecto scroll (home después de scroll Y páginas internas desde el inicio) */
nav.scrolled,
nav.bg-black {
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Asegurar que los enlaces se vean correctamente con fondo oscuro */
nav.scrolled .nav-link,
nav.bg-black .nav-link {
    color: #fff !important;
}

nav.scrolled .nav-logo-text,
nav.bg-black .nav-logo-text {
    color: #fff !important;
}

nav.scrolled .mobile-menu-btn,
nav.bg-black .mobile-menu-btn {
    color: #fff !important;
}

/* Estilos específicos para páginas internas sin hero */
.internal-page nav,
.no-hero nav {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
}

.carousel-slide {
    flex-shrink: 0;
    width: calc(66.666% - 14px);
}

@media (min-width: 768px) {
    .carousel-slide {
        width: calc(40% - 16px);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

@media (min-width: 768px) {
    .carousel-btn {
        width: 50px;
        height: 50px;
    }
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 5px;
}

.carousel-btn.next {
    right: 5px;
}

@media (min-width: 768px) {
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* Modal Styles */
#imageModal {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#imageModal img {
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #6366f1;
    width: 40px;
    border-radius: 6px;
}

/* Prevent horizontal scroll on mobile */
* {
    box-sizing: border-box;
}

section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.max-w-7xl,
.max-w-6xl,
.max-w-4xl,
.max-w-3xl,
.max-w-2xl {
    width: 100%;
    max-width: 100%;
}

/* Ensure images don't cause overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for carousel on mobile */
@media (max-width: 768px) {
    .carousel-track {
        padding: 0 5px;
        gap: 10px;
    }
    
    .carousel-slide {
        width: calc(66.666% - 7px) !important;
        min-width: calc(66.666% - 7px);
    }
}

/* Ensure all containers respect viewport */
.container,
.wrapper,
main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

