/* AquaCasino - Oceanic Theme Styles */

/* CSS Variables */
:root {
    --primary-color: #0077be;
    --secondary-color: #20b2aa;
    --accent-color: #ffd700;
    --background-dark: #001122;
    --background-secondary: #003366;
    --text-light: #ffffff;
    --text-dark: #001122;
    --success-color: #00ff7f;
    --danger-color: #ff4444;
    --border-color: #4682b4;
    --glow-color: #00bfff;
    --header-height: 60px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

@media (min-width: 769px) {
    :root {
        --header-height: 70px;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--background-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-sm);
    word-wrap: break-word;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 119, 190, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-sm);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.logo {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.free-badge {
    background: var(--success-color);
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(0, 119, 190, 0.5);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    gap: 3px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

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

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
        flex-direction: column;
        padding: var(--spacing-lg);
        border-top: 2px solid var(--primary-color);
        z-index: 999;
        gap: var(--spacing-sm);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        padding: var(--spacing-sm);
        text-align: center;
        border: 1px solid var(--border-color);
    }
}

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    padding-top: calc(var(--header-height) + 60px);
    background: linear-gradient(135deg, #001122 0%, #003366 50%, #004488 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 191, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(32, 178, 170, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
    animation: oceanWaves 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(0, 191, 255, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(32, 178, 170, 0.1) 50%, transparent 70%);
    animation: underwaterFlow 12s linear infinite;
}

@keyframes oceanWaves {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.8; 
    }
    50% { 
        transform: translateY(-10px) rotate(1deg); 
        opacity: 1; 
    }
}

@keyframes underwaterFlow {
    0% { transform: translateX(-100%) translateY(-50%); }
    100% { transform: translateX(100%) translateY(50%); }
}

@media (min-width: 769px) {
    .hero {
        padding-top: calc(var(--header-height) + 80px);
    }
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-lg);
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--glow-color);
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-buttons {
    margin-bottom: var(--spacing-lg);
}

.cta-button {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 119, 190, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 190, 0.5);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.hero-disclaimer {
    background: rgba(0, 255, 127, 0.1);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--success-color);
}

/* Section Styles */
.section-title {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: var(--spacing-xl);
    text-shadow: 0 0 10px var(--glow-color);
}

/* Features Section */
.features-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-dark) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(0, 119, 190, 0.1) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

/* Games Section */
.games-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(0, 191, 255, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 80%, rgba(32, 178, 170, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 30%);
    animation: gamesSectionFlow 15s ease-in-out infinite;
}

@keyframes gamesSectionFlow {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.7; 
    }
    50% { 
        transform: scale(1.05) rotate(2deg); 
        opacity: 1; 
    }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.game-card {
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.9) 0%, rgba(0, 51, 102, 0.9) 100%) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 2px solid #333 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1 !important;
}

.game-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.5) !important;
    border-color: #00bfff !important;
    z-index: 10 !important;
}

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

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image img {
    transform: scale(1.05) !important;
}

.game-info {
    padding: var(--spacing-lg);
}

.game-info h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.game-rating {
    margin: var(--spacing-sm) 0;
    font-size: 1.2rem;
}

.play-button {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #00ff7f 0%, #20b2aa 100%) !important;
    color: #001122 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    text-decoration: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}

.play-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 255, 127, 0.4) !important;
    background: linear-gradient(135deg, #00ff7f 0%, #1e90ff 100%) !important;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-dark) 100%);
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.leader-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 119, 190, 0.1) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.leader-rank {
    font-size: 2.5rem;
}

.leader-info h4 {
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.leader-score {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(0, 119, 190, 0.1) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.2);
}

.testimonial-content {
    margin-bottom: var(--spacing-md);
    font-style: italic;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-author strong {
    color: var(--accent-color);
}

.testimonial-author span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-dark) 100%);
}

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

.faq-item {
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(0, 119, 190, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
    padding: var(--spacing-lg);
}

.faq-question {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.4;
}

.faq-answer {
    background: rgba(0, 17, 34, 0.3);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary-color);
}

.faq-answer p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Disclaimer Section */
.disclaimer-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: var(--spacing-lg) 0;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.disclaimer-content {
    text-align: center;
}

.disclaimer-content h3 {
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.disclaimer-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.3);
}

.help-resources a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--background-dark) 0%, #000811 100%);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 2px solid var(--primary-color);
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.compliance-logos {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.age-section {
    text-align: center;
}

.age-restriction {
    background: var(--danger-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.compliance-logos-grid {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.compliance-logo {
    height: 35px !important;
    width: auto !important;
    background: var(--text-light);
    padding: 8px;
    border-radius: 8px;
    opacity: 0.9;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.compliance-logo:hover {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Popups */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 17, 34, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--spacing-sm);
}

.age-popup-content {
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 191, 255, 0.3);
}

.age-popup-header h2 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.age-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.age-btn {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.age-yes {
    background: var(--success-color);
    color: var(--text-dark);
}

.age-no {
    background: var(--danger-color);
    color: white;
}

.age-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
}

.cookie-content h4 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.cookie-accept {
    background: var(--success-color);
    color: var(--text-dark);
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
}

.cookie-policy {
    color: var(--secondary-color);
    text-decoration: none;
    padding: var(--spacing-xs) var(--spacing-sm);
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .age-buttons {
        flex-direction: column;
    }
    
    .disclaimer-badges {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 40px);
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.free-tag,
.no-money-tag {
    animation: bounce 3s infinite;
}

.no-money-tag {
    animation-delay: 0.5s;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0099ff;
        --secondary-color: #00ff99;
        --accent-color: #ffff00;
        --text-light: #ffffff;
        --background-dark: #000000;
    }
}
