/* === OCÉANO CASINO ESPAÑA - OCEANIC THEME === */

/* CSS Variables - Ocean Color Palette */
:root {
    --ocean-blue: #006BA6;
    --deep-teal: #004D5C;
    --aqua-light: #00C9A7;
    --coral-gold: #FFB443;
    --pearl-white: #F5F9FF;
    --sea-foam: #E8F6F3;
    --midnight-blue: #001B2E;
    --wave-gradient: linear-gradient(135deg, var(--deep-teal) 0%, var(--ocean-blue) 50%, var(--midnight-blue) 100%);
    --coral-gradient: linear-gradient(45deg, var(--coral-gold) 0%, #FF8C42 100%);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
    max-width: 100% !important;
    word-wrap: break-word;
}

html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--wave-gradient);
    color: var(--pearl-white);
    line-height: 1.6;
    overflow-x: hidden !important;
    min-height: 100vh;
    position: relative;
    max-width: 100vw !important;
}

/* Anti-horizontal scroll protection */
section, div, main, header, footer {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* === HEADER & NAVIGATION === */
.main-header {
    background: rgba(0, 27, 46, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
    border-bottom: 2px solid var(--aqua-light);
    box-shadow: 0 4px 20px rgba(0, 201, 167, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--pearl-white);
    font-weight: bold;
}

.logo-icon {
    font-size: 2rem;
    margin-right: 10px;
    animation: wave-motion 2s ease-in-out infinite;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--aqua-light);
}

.logo-country {
    font-size: 0.9rem;
    color: var(--coral-gold);
    margin-left: 5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--pearl-white);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--aqua-light);
    color: var(--midnight-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 201, 167, 0.4);
}

/* === BURGER MENU === */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--aqua-light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--deep-teal) 0%, var(--midnight-blue) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 9999;
    border-left: 3px solid var(--aqua-light);
    box-shadow: -10px 0 30px rgba(0, 201, 167, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--pearl-white);
    text-decoration: none;
    font-size: 1.2rem;
    margin: 15px 0;
    padding: 15px 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.mobile-menu a:hover {
    background: var(--aqua-light);
    color: var(--midnight-blue);
    transform: scale(1.05);
    border-color: var(--coral-gold);
}

/* === BUTTONS === */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-oceanic {
    background: var(--coral-gradient);
    color: var(--midnight-blue);
    border: 2px solid var(--coral-gold);
}

.btn-oceanic:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 180, 67, 0.4);
    background: linear-gradient(45deg, #FF8C42 0%, var(--coral-gold) 100%);
}

.btn-hero {
    background: var(--aqua-light);
    color: var(--midnight-blue);
    font-size: 1.1rem;
    padding: 15px 30px;
    border: 3px solid var(--pearl-white);
}

.btn-hero:hover {
    background: var(--pearl-white);
    color: var(--ocean-blue);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 201, 167, 0.5);
}

.btn-play {
    background: var(--ocean-blue);
    color: var(--pearl-white);
    width: 100%;
    margin-top: 10px;
    border: 2px solid var(--aqua-light);
}

.btn-play:hover {
    background: var(--aqua-light);
    color: var(--midnight-blue);
    transform: translateY(-2px);
}

.btn-cta {
    background: var(--coral-gradient);
    color: var(--midnight-blue);
    font-size: 1.2rem;
    padding: 18px 35px;
    border: 3px solid var(--coral-gold);
}

.btn-cta:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(255, 180, 67, 0.6);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: url('../images/hero_desktop_bg.png') center/cover,
                var(--wave-gradient);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero_desktop_bg.png') center/cover;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.ocean-particles {
    position: absolute;
    top: -50px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    background: radial-gradient(circle at 20% 30%, rgba(0, 201, 167, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 180, 67, 0.1) 0%, transparent 50%);
    animation: ocean-drift 8s ease-in-out infinite;
    z-index: -1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--aqua-light), var(--coral-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--pearl-white);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--sea-foam);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === LEGAL NOTICE === */
.legal-notice {
    background: rgba(255, 180, 67, 0.1);
    border: 2px solid var(--coral-gold);
    margin: 20px 0;
    border-radius: 10px;
}

.legal-notice p {
    text-align: center;
    padding: 15px;
    color: var(--pearl-white);
    font-weight: bold;
}

/* === SECTIONS === */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
    background: linear-gradient(45deg, var(--aqua-light), var(--coral-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === FEATURES SECTION === */
.features {
    padding: 80px 0;
    background: url('../images/section_bg.png') center/cover,
                rgba(0, 77, 92, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 100%;
    overflow-x: hidden;
}

.feature-card {
    background: rgba(0, 27, 46, 0.8);
    border: 2px solid var(--aqua-light);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--coral-gold);
    box-shadow: 0 15px 40px rgba(0, 201, 167, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: var(--aqua-light);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--pearl-white);
    line-height: 1.6;
}

/* === GAMES SECTION === */
.games {
    padding: 80px 0;
    background: var(--midnight-blue);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 100%;
    overflow-x: hidden;
}

.game-card {
    background: rgba(0, 77, 92, 0.9);
    border: 3px solid var(--ocean-blue);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--coral-gold);
    box-shadow: 0 20px 50px rgba(255, 180, 67, 0.3);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 27, 46, 0.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid var(--coral-gold);
}

.game-info {
    padding: 25px;
}

.game-info h3 {
    color: var(--aqua-light);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.game-info p {
    color: var(--pearl-white);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* === REVIEWS SECTION === */
.reviews {
    padding: 80px 0;
    background: url('../images/section_bg.png') center/cover,
                rgba(0, 107, 166, 0.2);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 100%;
    overflow-x: hidden;
}

.review-card {
    background: rgba(0, 27, 46, 0.85);
    border: 2px solid var(--ocean-blue);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--aqua-light);
    box-shadow: 0 15px 35px rgba(0, 201, 167, 0.25);
}

.review-stars {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--coral-gold);
}

.review-card p {
    color: var(--pearl-white);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.reviewer strong {
    color: var(--aqua-light);
    display: block;
    margin-bottom: 5px;
}

.reviewer span {
    color: var(--sea-foam);
    font-size: 0.9rem;
}

/* === FAQ SECTION === */
.faq {
    padding: 80px 0;
    background: var(--deep-teal);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 2px solid var(--ocean-blue);
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 27, 46, 0.8);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--pearl-white);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 201, 167, 0.1);
    color: var(--aqua-light);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--coral-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 20px 25px;
    color: var(--sea-foam);
    line-height: 1.6;
    border-top: 1px solid var(--ocean-blue);
}

/* === LEADERBOARD SECTION === */
.leaderboard {
    padding: 80px 0;
    background: var(--midnight-blue);
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 100%;
    overflow-x: hidden;
}

.leader-card {
    background: rgba(0, 77, 92, 0.9);
    border: 2px solid var(--ocean-blue);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.leader-card:hover {
    border-color: var(--coral-gold);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(255, 180, 67, 0.2);
}

.leader-rank {
    font-size: 2rem;
    font-weight: bold;
    color: var(--coral-gold);
    min-width: 50px;
    text-align: center;
}

.leader-info h3 {
    color: var(--aqua-light);
    margin-bottom: 5px;
}

.leader-info p {
    color: var(--pearl-white);
    font-weight: bold;
    margin-bottom: 5px;
}

.leader-game {
    color: var(--sea-foam);
    font-size: 0.9rem;
    font-style: italic;
}

/* === RESPONSIBLE GAMING === */
.responsible-gaming {
    padding: 60px 0;
    background: rgba(255, 180, 67, 0.1);
}

.warning-box {
    background: rgba(0, 27, 46, 0.9);
    border: 3px solid var(--coral-gold);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.warning-box h3 {
    color: var(--coral-gold);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.warning-box p {
    color: var(--pearl-white);
    margin-bottom: 20px;
    line-height: 1.6;
}

.help-links {
    margin-top: 25px;
}

.help-links strong {
    color: var(--aqua-light);
}

.compliance-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.compliance-logo {
    height: 50px !important;
    width: auto !important;
    min-width: 80px !important;
    max-width: 120px !important;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 5px;
    display: block !important;
}

.compliance-logo:hover {
    filter: brightness(1.3) contrast(1.3);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

/* === CTA SECTION === */
.cta {
    padding: 80px 0;
    background: var(--coral-gradient);
    text-align: center;
}

.cta-content h2 {
    color: var(--midnight-blue);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--midnight-blue);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* === FOOTER === */
.footer {
    background: var(--midnight-blue);
    border-top: 3px solid var(--aqua-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--aqua-light);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: var(--sea-foam);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--pearl-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--coral-gold);
}

.footer-compliance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-compliance img {
    height: 40px !important;
    width: auto !important;
    min-width: 60px !important;
    max-width: 100px !important;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.3);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 5px;
    display: block !important;
}

.footer-compliance img:hover {
    filter: brightness(1.4) contrast(1.4);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

/* Special styling for SVG logos */
.compliance-logo[src$=".svg"],
.footer-compliance img[src$=".svg"] {
    fill: white !important;
    stroke: none !important;
    filter: brightness(1.5) contrast(1.5) invert(0.1) !important;
}

.age-restriction {
    background: var(--coral-gradient);
    color: var(--midnight-blue);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--deep-teal);
    color: var(--sea-foam);
}

/* === POPUPS === */
.age-popup, .cookie-banner {
    position: fixed;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.age-popup {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.popup-content {
    background: var(--wave-gradient);
    border: 3px solid var(--aqua-light);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.ocean-wave-effect {
    position: absolute;
    top: -50px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    background: radial-gradient(circle at 30% 20%, rgba(0, 201, 167, 0.1) 0%, transparent 50%);
    animation: wave-motion 3s ease-in-out infinite;
}

.popup-content h2 {
    color: var(--aqua-light);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.popup-content p {
    color: var(--pearl-white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--aqua-light);
    color: var(--midnight-blue);
}

.btn-secondary {
    background: rgba(255, 180, 67, 0.8);
    color: var(--midnight-blue);
}

.cookie-banner {
    bottom: 20px;
    right: 20px;
    width: auto;
    height: auto;
    background: rgba(0, 27, 46, 0.95);
    border: 2px solid var(--coral-gold);
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.cookie-content span {
    color: var(--pearl-white);
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--aqua-light);
    text-decoration: underline;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: var(--coral-gold);
    color: var(--midnight-blue);
}

/* === ANIMATIONS === */
@keyframes wave-motion {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes ocean-drift {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    33% { transform: translateX(10px) translateY(-5px); }
    66% { transform: translateX(-5px) translateY(10px); }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 900px) {
    .nav-menu { 
        display: none !important; 
    }
    
    .burger-menu { 
        display: flex !important; 
    }
    
    .hero {
        background: url('../images/hero_mobile_bg.png') center/cover,
                    var(--wave-gradient);
    }
    
    .hero-background {
        background: url('../images/hero_mobile_bg.png') center/cover;
    }
    
    .features-grid,
    .games-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .popup-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .cookie-banner {
        position: fixed;
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .popup-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-card,
    .game-card,
    .review-card {
        padding: 20px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-card {
        min-width: 0;
    }
    
    .leader-card {
        flex-direction: column;
        text-align: center;
    }
    
    .compliance-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .popup-content {
        padding: 25px 15px;
    }
}
