
:root {
    --primary: #7c3aed; 
    --primary-hover: #6d28d9;
    --secondary: #2dd4bf; 
    --accent: #f59e0b; 
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif; }
body { background-color: var(--dark-bg); color: var(--text-main); line-height: 1.6; padding-bottom: 60px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }


header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #334155;
}
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.search-wrapper { position: relative; }
.search-wrapper input {
    background: #334155; border: none; padding: 10px 15px; border-radius: 99px;
    color: white; width: 220px; transition: width 0.3s;
}
.search-wrapper input:focus { outline: 2px solid var(--primary); width: 280px; }


.hero {
    position: relative; height: 400px; width: 100%; max-width: 1200px; margin: 20px auto;
    border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end;
}
.hero-img { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: brightness(0.6); }
.hero-content {
    position: relative; z-index: 2; padding: 40px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    width: 100%;
}
.hero-badge { background: var(--accent); color: black; padding: 4px 12px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; text-transform: uppercase; }
.hero h1 { font-size: 3rem; margin: 10px 0; line-height: 1.1; }
.hero p { max-width: 600px; margin-bottom: 20px; color: #e2e8f0; font-size: 1.1rem; }


.filter-bar { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; margin-bottom: 20px; scrollbar-width: none; }
.filter-btn {
    background: var(--card-bg); border: 1px solid #334155; color: var(--text-muted);
    padding: 8px 16px; border-radius: 99px; cursor: pointer; white-space: nowrap; transition: 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }


.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 20px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; }


.game-card {
    background: var(--card-bg); border-radius: 12px; overflow: hidden; position: relative;
    border: 1px solid #334155; transition: transform 0.2s, box-shadow 0.2s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); border-color: var(--primary); }
.card-thumb { height: 160px; overflow: hidden; position: relative; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .card-thumb img { transform: scale(1.1); }
.card-meta { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; display: flex; align-items: center; gap: 4px; }
.card-body { padding: 15px; }
.card-tags { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.tag { font-size: 0.7rem; color: var(--secondary); background: rgba(45, 212, 191, 0.1); padding: 2px 6px; border-radius: 4px; }
.rating-stars { color: var(--accent); font-size: 0.9rem; margin-top: 5px; }


.details-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.action-bar { display: flex; gap: 10px; margin: 20px 0; }
.btn-secondary { background: #334155; color: white; border: none; border-radius: 8px; padding: 12px 20px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.btn-secondary.active { color: #f43f5e; } 
.comments-section { background: var(--card-bg); padding: 30px; border-radius: 12px; margin-top: 40px; }
.comment-input { width: 100%; background: #0f172a; border: 1px solid #334155; padding: 15px; color: white; border-radius: 8px; margin-bottom: 10px; resize: vertical; }
.comment { border-bottom: 1px solid #334155; padding: 15px 0; }
.comment-user { font-weight: bold; color: var(--secondary); font-size: 0.9rem; }
.comment-date { font-size: 0.8rem; color: #64748b; margin-left: 10px; }


@media (max-width: 768px) {
    .hero { height: 300px; }
    .hero h1 { font-size: 2rem; }
    header { flex-direction: column; gap: 15px; }
}


.site-intro {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 40px; 
    padding: 0 20px;
}

.site-intro h2 {
    font-size: 2.2rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    border: none; 
}

.site-intro p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}


.site-footer {
    background-color: #0b1120; 
    border-top: 1px solid #1e293b;
    padding: 80px 0 30px;
    margin-top: 100px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}


.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--secondary);
    transform: translateX(5px); 
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    line-height: 1.6;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px) !important; 
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}


@media (max-width: 768px) {
    .site-intro h2 { font-size: 1.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.page-btn {
    background: var(--card-bg);
    border: 1px solid #334155;
    color: var(--text-muted);
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}