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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #00ff41;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 2rem;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
}

.nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00cc33, #009926);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #000;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #ff8c00, #ff7700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #ff3742, #ff2730);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* Ad Container Styles */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.ad-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-top .ad-placeholder,
.ad-bottom .ad-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-sidebar .ad-placeholder {
    width: 160px;
    height: 600px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.game-wrapper {
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Game Section */
.game-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-info {
    width: 100%;
    margin-bottom: 1rem;
}

.score-board {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1rem;
    border: 2px solid #00ff41;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.score-item i {
    color: #00ff41;
}

/* Game Container */
.game-container {
    position: relative;
    background: #000;
    border: 3px solid #00ff41;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

#gameCanvas {
    display: block;
    background: #000;
}

/* Game Over Screen */
.game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-over-content {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 15px;
    border: 2px solid #ff4757;
}

.game-over-content h2 {
    color: #ff4757;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #ff4757;
}

.game-over-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    margin-top: 1rem;
    width: 100%;
}

.control-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.control-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover,
.control-btn:active {
    background: linear-gradient(45deg, #00cc33, #009926);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

.shoot-btn {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: #fff;
}

.shoot-btn:hover,
.shoot-btn:active {
    background: linear-gradient(45deg, #ff3742, #ff2730);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

/* Instructions */
.instructions {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid rgba(0, 255, 65, 0.3);
}

.instructions h2 {
    text-align: center;
    color: #00ff41;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.instruction-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.instruction-item i {
    font-size: 2rem;
    color: #00ff41;
    margin-bottom: 1rem;
}

.instruction-item h3 {
    color: #00ff41;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 0;
    border-top: 2px solid #00ff41;
    margin-top: 3rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #00ff41;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    .ad-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .nav {
        justify-content: center;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .score-board {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .mobile-controls {
        display: block;
    }
    
    .instruction-grid {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-over-content h2 {
        font-size: 2rem;
    }
    
    .instructions h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header h1 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .score-item {
        font-size: 0.9rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .ad-top .ad-placeholder,
    .ad-bottom .ad-placeholder {
        height: 60px;
        font-size: 0.8rem;
    }
}

/* Animation Classes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}
