:root {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f8fafc;
    --primary: #8b5cf6; /* Canlı Mor */
    --accent: #10b981; /* Başarı Yeşili */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    padding-top: 80px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.portal-header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    padding: 15px 0;
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: #fff; letter-spacing: -1px; }
.logo span { color: var(--primary); }

.search-bar input {
    background: #334155; border: none; padding: 10px 20px; border-radius: 20px; color: #fff; width: 300px;
}

/* Featured Card */
.featured-slot { margin: 40px 0; }
.featured-card {
    background: linear-gradient(135deg, #4c1d95, #1e293b);
    padding: 60px; border-radius: 30px; position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}
.featured-card .badge { background: var(--accent); display: inline-block; padding: 5px 15px; border-radius: 50px; font-size: 0.7rem; font-weight: 800; margin-bottom: 20px; }
.featured-card h2 { font-size: 3rem; margin-bottom: 10px; }
.btn-primary { background: var(--primary); color: #fff; text-decoration: none; padding: 15px 30px; border-radius: 12px; display: inline-block; font-weight: 700; margin-top: 20px; }

/* Categories */
.category-bar { display: flex; gap: 10px; margin-bottom: 30px; overflow-x: auto; padding-bottom: 10px; }
.chip { background: var(--card-bg); border: none; color: #fff; padding: 8px 20px; border-radius: 50px; cursor: pointer; white-space: nowrap; }
.chip.active { background: var(--primary); }

/* Portal Grid */
.game-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding-bottom: 60px;
}
.game-item {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.game-item:hover { transform: translateY(-10px); border-color: var(--primary); }
.game-thumb {
    height: 180px; display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.color-1 { background: #5b21b6; } .color-2 { background: #1e40af; } .color-3 { background: #92400e; } .color-4 { background: #065f46; }

.game-details { padding: 20px; }
.game-meta { display: flex; justify-content: space-between; font-size: 0.8rem; margin-top: 10px; color: #94a3b8; }
.overlay-link { position: absolute; inset: 0; }


.category-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding: 5px 0;
    
    /* Mobilde kaydırma özelliği */
    overflow-x: auto;
    white-space: nowrap;
    
    /* Kaydırmayı akıcı yapar (iOS desteği) */
    -webkit-overflow-scrolling: touch;
    
    /* Kaydırma durduğunda en yakın butona "yapışmasını" sağlar */
    scroll-snap-type: x mandatory;
}

/* Kaydırma çubuğunu gizle (Chrome, Safari, Edge) */
.category-bar::-webkit-scrollbar {
    display: none;
}

/* Kaydırma çubuğunu gizle (Firefox ve IE) */
.category-bar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.chip {
    flex: 0 0 auto; /* Butonların sıkışmasını önler */
    scroll-snap-align: start; /* Kaydırırken butonun başında durur */
    
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
/* Footer Styles */
.portal-footer {
    background: #0f172a; /* Çok koyu lacivert */
    color: #94a3b8;
    padding: 60px 0 0 0;
    margin-top: 80px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    font-size: 24px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    background: #1e293b;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
    filter: grayscale(1);
}

.social-links a:hover {
    background: #8b5cf6;
    filter: grayscale(0);
    transform: translateY(-3px);
}

.footer-links h4, .footer-newsletter h4 {
    color: white;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: #8b5cf6;
    padding-left: 5px;
}

.footer-newsletter p {
    font-size: 13px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    flex: 1;
    font-size: 14px;
}

.newsletter-form button {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #7c3aed;
}

.footer-bottom {
    background: #020617;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
}

.legal-links a:hover {
    color: white;
}

/* Mobil Uyumluluk */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-links, .newsletter-form, .bottom-flex {
        justify-content: center;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 15px;
    }
}
/* Mobile */
@media (max-width: 768px) {
    .search-bar { display: none; }
    .featured-card { padding: 30px; }
    .featured-card h2 { font-size: 2rem; }
}