﻿/* ArcadeVault - Retro Arcade/Neon Theme */
:root {
    --primary: #ff00ff;
    --secondary: #00ffff;
    --accent: #ffff00;
    --dark: #0f0f30;
    --darker: #050520;
    --light: #f0f0ff;
    --card-bg: rgba(15, 15, 48, 0.8);
    --header-bg: rgba(5, 5, 32, 0.95);
    --shadow-neon: 0 0 10px rgba(255, 0, 255, 0.7);
    --gradient-neon: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
    --font-heading: 'Tahoma', 'Arial', sans-serif;
    --font-body: 'Verdana', 'Geneva', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 255, 0.1) 0%, transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Header */
.neon-header {
    background: var(--header-bg);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--primary);
}

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

.logo-link {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--light);
    text-shadow: 0 0 5px var(--primary), 0 0 15px var(--primary);
    transition: all 0.3s ease;
}

.logo-link:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    transform: scale(1.05);
}

.search-wrapper {
    width: 300px;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 25px 0 0 25px;
    background: rgba(15, 15, 48, 0.5);
    color: var(--light);
    outline: none;
    transition: all 0.3s ease;
}

.search-form input:focus {
    background: rgba(15, 15, 48, 0.8);
    box-shadow: 0 0 8px var(--primary);
}

.search-form button {
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 0 25px 25px 0;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Main Content */
.main-content {
    padding: 3rem 0;
}

.site-intro {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3), 0 0 5px var(--primary);
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.site-intro h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.7);
}

.site-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Category Tags */
.category-tags {
    margin-bottom: 3rem;
}

.category-tags h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-tag {
    padding: 0.7rem 1.5rem;
    background: var(--dark);
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: var(--light);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

.category-tag:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary);
}

/* Game Sections */
.featured-games,
.latest-releases {
    margin-bottom: 3rem;
}

.featured-games h2,
.latest-releases h2,
.game-history h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.5);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.2);
    height: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--secondary);
    border-color: var(--secondary);
}

.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--dark);
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.card-content p {
    margin-bottom: 1rem;
    color: var(--light);
    font-size: 0.95rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(240, 240, 255, 0.7);
}

.genre {
    padding: 0.2rem 0.5rem;
    background: rgba(255, 0, 255, 0.2);
    border-radius: 3px;
}

.platform {
    padding: 0.2rem 0.5rem;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 3px;
}

/* Game History Section */
.game-history {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.game-history h2 {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    margin-bottom: 1.5rem;
}

.history-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

.history-card:nth-child(1) { animation-delay: 0.1s; }
.history-card:nth-child(2) { animation-delay: 0.2s; }
.history-card:nth-child(3) { animation-delay: 0.3s; }

.history-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.history-image {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-info {
    flex: 1;
}

.history-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--light);
}

.timestamp {
    font-size: 0.9rem;
    color: var(--secondary);
}

.clear-history {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.clear-history:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.no-history {
    text-align: center;
    padding: 2rem;
    color: var(--secondary);
    font-style: italic;
}

/* Footer */
.site-footer {
    background: var(--header-bg);
    padding: 2rem 0;
    border-top: 1px solid var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 5px var(--accent);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-wrapper {
        width: 100%;
    }
    
    .site-intro h1 {
        font-size: 2rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tag {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .card-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation Effects */
@keyframes neon-pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

.category-tag, .logo-link {
    animation: neon-pulse 2s infinite;
}

