/* Custom styles for Archers Battle */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Game container styles */
.game-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Game iframe styles */
.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    background: #000;
    transition: all 0.3s ease;
}

/* Fullscreen button styles */
.fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 100;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* Loading indicator styles */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 90;
}

/* Error message styles */
.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    text-align: center;
    background: rgba(255, 0, 0, 0.7);
    padding: 20px 40px;
    border-radius: 8px;
    z-index: 90;
    display: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .game-container {
        margin: 10px;
        border-radius: 8px;
    }

    .game-frame {
        height: 400px;
    }

    .fullscreen-btn {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Fullscreen mode styles */
.game-container:fullscreen {
    margin: 0;
    border-radius: 0;
    max-width: none;
}

.game-container:fullscreen .game-frame {
    height: 100vh;
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.game-container {
    animation: fadeIn 0.5s ease-in-out;
}

/* Language selector styles */
.language-selector button {
    background: #f3f4f6;
    transition: all 0.3s ease;
}

.language-selector button:hover {
    background: #e5e7eb;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Section transitions */
section {
    transition: opacity 0.3s ease;
}

/* Footer link hover effects */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #60a5fa;
}

/* Breadcrumb styles */
.breadcrumb {
    color: #6b7280;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Review card hover effect */
.review-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
} 