/* Custom styles for Battlecruisers website */

/* Global Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00aaff;
    --accent-color: #ff9900;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #f0f8ff;
    --card-background: #ffffff;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(45deg, #0066cc, #00aaff, #ffffff);
    background-size: 300% 300%;
    animation: oceanWave 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

/* 全页背景泡泡效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/wave.svg') repeat-x;
    background-size: 1000px 100px;
    animation: wave 10s linear infinite;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* 白色背景部分的样式修改 */
section.bg-white {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

section.bg-gray-50 {
    background: rgba(249, 250, 251, 0.85) !important;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

/* Ocean Background Animation with Bubbles */
.ocean-bg {
    background: linear-gradient(45deg, #0066cc, #00aaff, #ffffff);
    background-size: 300% 300%;
    animation: oceanWave 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.ocean-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/wave.svg') repeat-x;
    background-size: 1000px 100px;
    animation: wave 10s linear infinite;
    opacity: 0.3;
}

/* Bubbles Animation */
.bubble {
    position: fixed;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-up 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.bubble:nth-child(1) { left: 10%; width: 30px; height: 30px; animation-delay: 0s; }
.bubble:nth-child(2) { left: 20%; width: 15px; height: 15px; animation-delay: 1s; }
.bubble:nth-child(3) { left: 30%; width: 25px; height: 25px; animation-delay: 2s; }
.bubble:nth-child(4) { left: 40%; width: 18px; height: 18px; animation-delay: 3s; }
.bubble:nth-child(5) { left: 50%; width: 22px; height: 22px; animation-delay: 4s; }
.bubble:nth-child(6) { left: 60%; width: 28px; height: 28px; animation-delay: 5s; }
.bubble:nth-child(7) { left: 70%; width: 20px; height: 20px; animation-delay: 6s; }
.bubble:nth-child(8) { left: 80%; width: 35px; height: 35px; animation-delay: 7s; }
.bubble:nth-child(9) { left: 90%; width: 15px; height: 15px; animation-delay: 8s; }
.bubble:nth-child(10) { left: 95%; width: 25px; height: 25px; animation-delay: 9s; }

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(50vh) translateX(10px) scale(1);
    }
    100% {
        transform: translateY(-100px) translateX(-10px) scale(0.5);
        opacity: 0;
    }
}

@keyframes oceanWave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}

/* 3D Logo Animation */
.logo-3d {
    position: relative;
    transform-style: preserve-3d;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(0);
    }
    50% {
        transform: translateY(-10px) rotateX(5deg);
    }
}

/* Game Container */
.game-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Fullscreen Button */
.fullscreen-btn {
    background: var(--primary-color);
    color: var(--light-text);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.fullscreen-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Language Selector */
.language-selector {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover {
    background: var(--primary-color);
    color: var(--light-text);
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Review Cards */
.review-card {
    background: var(--card-background);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        aspect-ratio: 4/3;
    }
    
    .fullscreen-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Team Member Cards */
.team-member {
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: linear-gradient(to right, #1a1a1a, #333333);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* SEO-friendly heading styles */
h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Accessibility improvements */
:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
} 