/* Custom styles for War Groups website */

/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #ecf0f1;
    --background-color: #1a1a1a;
    --card-bg: rgba(44, 62, 80, 0.9);
    --border-color: #3498db;
    --glow-color: rgba(52, 152, 219, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Animation */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./images/background/war.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
    animation: tankMove 20s linear infinite;
}

@keyframes tankMove {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.1) translate(-2%, -2%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* Header Styles */
header {
    background: rgba(10, 25, 47, 0.95);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-3d {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: perspective(500px) rotateX(10deg);
    transition: transform 0.3s ease;
}

.logo-3d:hover {
    transform: perspective(500px) rotateX(0deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

/* Main Content Styles */
main {
    margin-top: 80px;
    padding: 2rem;
}

#game-container {
    width: 100%;
    height: 80vh;
    position: relative;
    margin-bottom: 2rem;
}

.game-frame-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-color);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Game Introduction */
.intro-container {
    background: rgba(10, 25, 47, 0.8);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Feature Grid */
.feature-grid, .screenshot-grid, .strategy-container, .team-container, .timeline, .love-container, .why-love-container, .controls-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card, .screenshot-card, .strategy-card, .team-member, .timeline-item, .love-card, .why-love-card, .control-card {
    background: rgba(10, 25, 47, 0.8);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover, .screenshot-card:hover, .strategy-card:hover, .team-member:hover, .love-card:hover, .why-love-card:hover, .control-card:hover {
    transform: translateY(-5px);
}

.feature-card i, .love-card i, .control-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.screenshot-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Game Rating */
.rating-container {
    background: rgba(10, 25, 47, 0.8);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.score {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stars {
    color: gold;
    font-size: 1.5rem;
}

.rating-count {
    color: var(--text-color);
    opacity: 0.8;
}

.game-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.keyword-tag {
    background: rgba(72, 202, 228, 0.2);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.keyword-tag:hover {
    background: rgba(72, 202, 228, 0.3);
    transform: translateY(-2px);
}

/* Player Love Sections */
.love-card, .why-love-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.love-card h3, .why-love-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

/* Game Controls */
.control-card {
    text-align: left;
}

.control-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.control-card ul {
    list-style: none;
}

.control-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.control-card li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Timeline */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Reviews */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: rgba(10, 25, 47, 0.8);
    padding: 2rem;
    border-radius: 10px;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.stars {
    color: gold;
}

/* Footer Styles */
footer {
    background: rgba(10, 25, 47, 0.95);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .logo-3d {
        margin-bottom: 1rem;
    }

    main {
        margin-top: 120px;
        padding: 1rem;
    }

    #game-container {
        height: 60vh;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Language selector */
.language-selector select {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Enhanced How to Play Section */
#how-to-play {
    padding: 4rem 2rem;
    background: rgba(26, 26, 26, 0.85);
    position: relative;
    overflow: hidden;
}

#how-to-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
    z-index: 0;
}

.how-to-play-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.how-to-play-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.how-to-play-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.how-to-play-card:hover::before {
    transform: translateX(100%);
}

.how-to-play-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--glow-color);
}

.how-to-play-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.how-to-play-card:hover i {
    transform: scale(1.2);
}

.how-to-play-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.how-to-play-card p {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .how-to-play-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .how-to-play-card {
        padding: 1.5rem;
    }
}

/* Section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ff00, #0000ff);
    box-shadow: 0 0 5px #00ff00, 0 0 5px #0000ff;
}

/* Card styles */
.card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4), 0 0 15px rgba(0, 0, 255, 0.4);
} 