/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0f1016;
    --bg-card: #1c1e29;
    --bg-hover: #2a2d3e;
    --primary: #6c5ce7; /* Neon Purple */
    --accent: #00cec9;  /* Cyan */
    --text-main: #ffffff;
    --text-muted: #b2bec3;
    --radius: 12px;
    --transition: 0.3s ease;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--primary); }

/* --- Navbar --- */
.navbar {
    background: rgba(15, 16, 22, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
}
.navbar-brand { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.5px; }
.navbar-brand span { color: var(--primary); }
.nav-link { color: var(--text-muted) !important; font-weight: 500; font-size: 0.95rem; margin-right: 15px; }
.nav-link:hover, .nav-link.active { color: #fff !important; text-shadow: 0 0 10px rgba(108, 92, 231, 0.5); }
.search-form .form-control {
    background: var(--bg-card);
    border: none;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    width: 250px;
    transition: var(--transition);
}
.search-form .form-control:focus {
    background: #252836;
    box-shadow: 0 0 0 2px var(--primary);
    width: 300px; /* Expand on focus */
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 40px 0;
}
.hero-slider .carousel-item {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-slider img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}
.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px 20px 20px;
}

/* --- Game Cards --- */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i { color: var(--accent); }

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.05);
}
.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
    border-color: var(--primary);
    z-index: 2;
}
.game-thumb {
    width: 100%;
    aspect-ratio: 4/3; /* Standardize Aspect Ratio */
    object-fit: cover;
    background: #111;
}
.game-info { padding: 12px; }
.game-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 2px;
}
.game-meta { font-size: 0.8rem; color: var(--text-muted); }
.play-btn-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--primary);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--primary);
}
.game-card:hover .play-btn-overlay { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* --- Categories --- */
.cat-card {
    display: block;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}
.cat-card:hover { border-color: var(--accent); background: #222533; }
.cat-icon { font-size: 1.5rem; margin-bottom: 8px; color: var(--accent); }
.cat-name { font-weight: 600; font-size: 0.9rem; margin: 0; }

/* --- Game Page --- */
.game-frame-container {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    aspect-ratio: 16/9;
}
.game-iframe { width: 100%; height: 100%; border: none; }
.game-actions-bar {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* --- Search Live --- */
#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid #333;
    border-radius: 0 0 10px 10px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
#search-results a {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
}
#search-results a:hover { background: var(--bg-hover); }
#search-results img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; margin-right: 10px; }

/* --- Footer --- */
.footer { background: #08090c; padding: 40px 0 20px; border-top: 1px solid #222; margin-top: 50px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 20px; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 10px; transition: 0.2s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

/* --- Responsive --- */
@media(max-width: 768px) {
    .navbar-collapse { background: var(--bg-card); padding: 20px; border-radius: 10px; margin-top: 10px; }
    .hero-slider .carousel-item { height: 250px; }
}
