/* public/css/app.css */

/* Global Styles */
:root {
    --primary: #6441a5;
    --secondary: #2a0845;
    --accent: #ffc107;
}

body {
    font-family: "Poppins", sans-serif;
    color: #333;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-bg {
    z-index: -1;
}

/* Game-inspired background animation */
.animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.pixel-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
            0deg,
            transparent 24%,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.05) 26%,
            transparent 27%,
            transparent 74%,
            rgba(255, 255, 255, 0.05) 75%,
            rgba(255, 255, 255, 0.05) 76%,
            transparent 77%,
            transparent
        ),
        linear-gradient(
            90deg,
            transparent 24%,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.05) 26%,
            transparent 27%,
            transparent 74%,
            rgba(255, 255, 255, 0.05) 75%,
            rgba(255, 255, 255, 0.05) 76%,
            transparent 77%,
            transparent
        );
    background-size: 50px 50px;
}

.light-sweep {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #1097e1 0%,
        #ff2530 50%,
        #fc900e 100%
    );
    animation: sweep 30s linear infinite;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
        rgba(0, 0, 0, 0.381) 3px,
        transparent 3px
    );
    background-size: 30px 30px;
    animation: particles 3s linear infinite;
}

@keyframes sweep {
    0% {
        transform: translateX(-50%);
    }
    50% {
		transform: translateX(0%);
	}
    100% {
        transform: translateX(-50%);
    }
}

@keyframes particles {
    0% {
        background-position: 0px 0px;
    }
    100% {
        background-position: 0px 30px;
    }
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-warning {
    color: #212529;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(-5deg);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

/* Game badges */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.featured-image {
    animation: float 6s ease-in-out infinite;
}

/* Media Queries */
@media (max-width: 992px) {
    .min-vh-75 {
        min-height: 50vh;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}
