/* Deep Sea Atlantis Casino Theme - 22WIN Vietnam - v2.0 UPDATED */

/* CSS Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Deep Sea Atlantis Color Palette */
    --atlantis-deep-blue: #001f3f;
    --atlantis-ocean-blue: #003d7a;
    --atlantis-aqua: #004c8c;
    --atlantis-gold: #ffd700;
    --atlantis-coral-silver: #c0c0c0;
    --atlantis-pearl: #f0f8ff;
    --atlantis-dark: #001122;
    --atlantis-gradient: linear-gradient(135deg, #001f3f 0%, #003d7a 50%, #004c8c 100%);

    /* Typography */
    --font-primary: 'Segoe UI', 'Arial', sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    --shadow-deep: 0 8px 30px rgba(0, 31, 63, 0.4);
    --shadow-card: 0 4px 20px rgba(0, 31, 63, 0.2);
}

/* Enhanced readability tokens */
:root {
    --text-primary: #e6eef8;
    --text-secondary: #b8c3d6;
    --text-muted: #9aa7bd;
    --accent: var(--atlantis-gold);
}

body {
    font-family: var(--font-primary);
    background: var(--atlantis-gradient);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
}

/* Deep Sea Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(192, 192, 192, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 76, 140, 0.08) 0%, transparent 50%);
    z-index: -2;
    animation: deepSeaFlow 24s ease-in-out infinite alternate;
}

@keyframes deepSeaFlow {
    0% { transform: translateX(0) scale(1); }
    100% { transform: translateX(-20px) scale(1.05); }
}

/* Water Bubble Effects */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-shadow: none;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space-sm);
    color: var(--atlantis-pearl);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #ffe164;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 3px solid rgba(255, 215, 0, 0.8);
    outline-offset: 2px;
}

/* Header */
.header {
    background: rgba(0, 31, 63, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 6px 0 !important;
    min-height: 50px !important;
    max-height: 60px !important;
    /* Reduced header height with !important */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 38px !important;
    max-height: 40px !important;
    gap: 8px !important;
    /* Reduced content height and gap with !important */
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain;
    border-radius: 4px;
    /* Force logo to be smaller with !important */
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--atlantis-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--atlantis-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

/* Navigation */
.navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 var(--space-md);
}

.nav-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    /* Reduced gap between menu items */
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    /* Removed transition to prevent click errors */
    position: relative;
    /* Removed overflow: hidden */
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    /* Reduced padding and font size */
}

/* Removed sliding animation effect to prevent click errors */

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 215, 0, 0.15);
    color: var(--atlantis-gold);
    /* Removed transform to prevent click errors */
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: var(--space-sm);
}

.btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    position: relative;
    overflow: hidden;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    min-width: 80px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--atlantis-gold), #ffed4a);
    color: var(--atlantis-dark);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--atlantis-gold);
    border-color: var(--atlantis-gold);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--atlantis-gradient);
    overflow: hidden;
    padding: var(--space-xxl) 0;
}

/* Hero with background image overlay */
.hero-overlay {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: var(--space-xxl) 0;
    /* Removed background overlay - text directly on image */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="bubble1" cx="0.5" cy="0.5"><stop offset="0%" stop-color="rgba(255,215,0,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="20" cy="70" r="3" fill="url(%23bubble1)"/><circle cx="80" cy="20" r="2" fill="url(%23bubble1)"/><circle cx="60" cy="90" r="1.5" fill="url(%23bubble1)"/></svg>');
    background-size: 200px 200px;
    animation: bubbleFloat 15s ease-in-out infinite;
    z-index: -1;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: white !important;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: white !important;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.98) !important;
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.hero-stat {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--atlantis-gold);
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.7),
        0 0 15px rgba(0, 0, 0, 0.5);
    margin-bottom: var(--space-xs);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.98);
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 215, 0, 0.8);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--atlantis-gold);
    transform: translateY(-2px);
}

/* Content Blocks */
.content-block {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin: var(--space-xxl) 0;
    padding: var(--space-xl);
    background: rgba(0, 61, 122, 0.28);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 215, 0, 0.2);
    pointer-events: none;
}

.content-block.vertical {
    flex-direction: column;
    text-align: center;
}

.content-block.horizontal {
    flex-direction: row;
}

.content-text {
    flex: 1;
}

.content-image {
    flex: 0 0 300px;
    height: 200px;
    background: var(--atlantis-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
}

.content-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(192, 192, 192, 0.1));
    z-index: 1;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Content Grids */
.grid {
    display: grid;
    gap: var(--space-lg);
    margin: var(--space-xxl) 0;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-item {
    background: rgba(0, 61, 122, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.grid-item:hover { border-color: rgba(255, 215, 0, 0.28); }

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--atlantis-gold), var(--atlantis-coral-silver));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.grid-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.item-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(0, 17, 34, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 215, 0, 0.25);
    padding: var(--space-xxl) 0 var(--space-lg) 0;
    margin-top: var(--space-xxl);
}

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

.footer-section h3 {
    margin-bottom: var(--space-md);
    color: var(--atlantis-gold);
}

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

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-section ul li a { color: var(--text-secondary); }
.footer-section ul li a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--atlantis-coral-silver);
}

.payment-methods {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin: var(--space-md) 0;
}

.payment-method {
    width: 50px;
    height: 30px;
    background: var(--atlantis-pearl);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--atlantis-dark);
    font-weight: bold;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--atlantis-gold);
    border-radius: 1px;
    /* Removed transition to prevent animation issues */
}

/* Hamburger menu active state - X icon */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Ensure hamburger icon is visible */
.mobile-menu-toggle span {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 6px 0;
        min-height: 56px;
    }

    .header-content {
        height: auto;
        min-height: 44px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 31, 63, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 215, 0, 0.25);
        margin: 0;
        padding: var(--space-sm);
        z-index: 999;
    }

    .navigation.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .nav-menu a {
        padding: 12px 16px;
        text-align: center;
        border: 1px solid rgba(255, 215, 0, 0.2);
        border-radius: var(--radius-sm);
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 70px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1,
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }

    .hero-stats {
        gap: var(--space-md);
        margin: var(--space-md) 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-actions {
        gap: var(--space-sm);
        flex-direction: column;
    }

    .hero-overlay-content {
        padding: var(--space-lg) 0;
    }

    .content-block.horizontal {
        flex-direction: column;
    }

    .content-image {
        flex: none;
        width: 100%;
    }

    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-xs);
    }

    .hero,
    .hero-overlay {
        min-height: 60vh;
    }

    .hero-overlay-content {
        padding: var(--space-md) 0;
    }

    .hero h1,
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .content-block {
        padding: var(--space-lg);
        margin: var(--space-lg) 0;
    }

    .grid-item {
        padding: var(--space-md);
    }
}

/* Loading Animation - REMOVED */

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--atlantis-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--atlantis-gold), var(--atlantis-coral-silver));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--atlantis-gold);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .header, .footer, .cta-buttons {
        display: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    body::before,
    .bubble-container { display: none !important; }
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 10000;
}
.skip-link:focus { top: 10px; }

/* FAQ Section */
.faq-section {
    margin: var(--space-xxl) 0;
}

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

.faq-item {
    background: rgba(0, 76, 140, 0.15);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--atlantis-gold);
}

.faq-item h3 {
    color: var(--atlantis-gold);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.faq-item p {
    line-height: 1.7;
    color: var(--text-primary);
}

/* Expert Section */
.expert-section {
    margin: var(--space-xxl) 0;
}

.expert-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

/* Trust Badges */
.trust-badge {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 215, 0, 0.05);
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    background: rgba(255, 215, 0, 0.1);
}
