:root {
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
    --primary-color: #0f3460;
    --accent-color: #e94560;
    --text-color: #dcdcdc;
}

.game-hub-wrapper {
    min-height: 100vh;
    background-color: #0d0d1a;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .animated-bg {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.15;
        animation: pulse 10s infinite alternate;
    }
    .blob1 { top: 5%; left: 10%; width: 300px; height: 300px; background-color: #8A2BE2; animation-delay: 0s; }
    .blob2 { bottom: 5%; right: 10%; width: 400px; height: 400px; background-color: #4682B4; animation-delay: 2s; }
    .blob3 { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; background-color: #E94560; animation-delay: 4s; }

    @keyframes pulse {
        0% { transform: scale(0.8); }
        100% { transform: scale(1.2); }
    }
}

.game-home-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.header-section { margin-bottom: 64px; }
.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 16px;
    background-color: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 9999px;
    color: #c084fc;
    font-size: 0.9rem;
}
.main-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    background-image: linear-gradient(to right, #a78bfa, #f472b6, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 10px;
}
.subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 32px;
}

.stats-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 32px; }
.stat-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; font-weight: 500; }
.stat-item.live { background-color: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.2); color: #86efac; }
.live-indicator { width: 8px; height: 8px; background-color: #4ade80; border-radius: 50%; animation: pulse-green 2s infinite; }
.stat-item.soon { background-color: rgba(251, 146, 60, 0.1); border: 1px solid rgba(251, 146, 60, 0.2); color: #fcd34d; }

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.game-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.category-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.category-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.category-button.active {
    background-image: linear-gradient(to right, #8b5cf6, #ec4899);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background-color: rgba(22, 33, 62, 0.8);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none; /* JS ile 'block' yapılacak */
    animation: cardFadeIn 0.4s ease-out forwards;
}
.card-gradient-overlay {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card-status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid;
}
.card-status-badge.live { background-color: rgba(74, 222, 128, 0.1); color: #86efac; border-color: rgba(74, 222, 128, 0.3); }
.card-status-badge.soon { background-color: rgba(251, 146, 60, 0.1); color: #fcd34d; border-color: rgba(251, 146, 60, 0.3); }
.card-content {
    padding: 24px;
    position: relative;
    z-index: 1;
}
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.4s ease;
    color: white;
    font-size: 1.75rem;
}
.card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    transition: color 0.3s ease;
}
.card-content p {
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.6;
    min-height: 50px;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.meta-badge {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.meta-badge.difficulty-easy { background-color: rgba(74, 222, 128, 0.1); color: #86efac; }
.meta-badge.difficulty-medium { background-color: rgba(251, 191, 36, 0.1); color: #fde047; }
.meta-badge.difficulty-hard { background-color: rgba(239, 68, 68, 0.1); color: #fca5a5; }
.card-action-button {
    width: 100%;
    padding: 12px 0;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    border: none;
    cursor: pointer;
}
.game-card[data-bs-toggle="modal"] .card-action-button { pointer-events: none; }
.card-action-button.disabled {
    background-color: rgba(100, 116, 139, 0.5);
    color: #94a3b8;
    cursor: not-allowed;
}

.from-purple-500 { --tw-gradient-from: #a855f7; --tw-gradient-to: rgba(168, 85, 247, 0); }
.to-pink-500 { --tw-gradient-to: #ec4899; }
.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-to: rgba(59, 130, 246, 0); }
.to-cyan-500 { --tw-gradient-to: #06b6d4; }
.from-pink-500 { --tw-gradient-from: #ec4899; --tw-gradient-to: rgba(236, 72, 153, 0); }
.to-rose-500 { --tw-gradient-to: #f43f5e; }
.from-teal-500 { --tw-gradient-from: #14b8a6; --tw-gradient-to: rgba(20, 184, 166, 0); }
.to-emerald-500 { --tw-gradient-to: #10b981; }
.from-red-500 { --tw-gradient-from: #ef4444; --tw-gradient-to: rgba(239, 68, 68, 0); }
.to-yellow-400 { --tw-gradient-to: #facc15; }
.from-orange-500 { --tw-gradient-from: #f97316; --tw-gradient-to: rgba(249, 115, 22, 0); }
.to-amber-500 { --tw-gradient-to: #f59e0b; }
.from-lime-500 { --tw-gradient-from: #84cc16; --tw-gradient-to: rgba(132, 204, 22, 0); }
.to-green-500 { --tw-gradient-to: #22c55e; }




[class*="from-"], [class*="to-"] {
    background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to));
}

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

@media (max-width: 768px) {
    .main-title { font-size: 3rem; }
    .subtitle { font-size: 1.1rem; }
}
@media (max-width: 600px) {
    .game-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .game-home-container h1 {
        font-size: 2rem;
    }
    .game-categories {
        gap: 10px;
        margin-bottom: 30px;
    }
    .category-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .game-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .game-card-image {
        height: 150px;
    }
    .game-card-content h3 {
        font-size: 1.2rem;
    }

    .game-card.is-centered {
        transform: scale(1.03);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.15);
    }
    .game-card.is-centered .card-border-glow {
        border-color: rgba(139, 92, 246, 0.3);
    }
    .game-card.is-centered .card-gradient-overlay { opacity: 0.1; }
    .game-card.is-centered .card-icon { transform: scale(1.1) rotate(6deg); }
}

@media (hover: hover) and (pointer: fine) {
    .category-button:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .game-card:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .card-border-glow {
        position: absolute;
        inset: 0;
        border-radius: 16px;
        border: 2px solid transparent;
        transition: border-color 0.4s ease;
        pointer-events: none;
    }

    .game-card:hover .card-border-glow {
        border-color: rgba(139, 92, 246, 0.3);
    }

    .game-card:hover .card-gradient-overlay { opacity: 0.1; }
    .game-card:hover .card-icon { transform: scale(1.1) rotate(6deg); }

    .card-action-button:not(.disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    }

}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hub-fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.game-choice-modal {
    background-color: rgba(22, 33, 62, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal.show .game-choice-modal {
    background-color: #16213e;
}

.game-choice-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
}

.game-choice-modal .modal-title {
    font-weight: 600;
    color: #fff;
}

.game-choice-modal .modal-body {
    padding: 1.5rem;
}

.game-choice-modal .modal-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.game-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.choice-card i {
    font-size: 2.5rem;
    color: #a78bfa;
}

@media (hover: hover) and (pointer: fine) {
    .choice-card:hover {
        transform: translateY(-5px);
        background-color: rgba(139, 92, 246, 0.2);
        border-color: rgba(139, 92, 246, 0.5);
        color: #fff;
    }
}

.slider-container {
    margin-top: 2rem;
    padding: 0 1rem;
}

.slider-label {
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #cbd5e1;
}

.slider-label span {
    color: #a78bfa;
    font-weight: 700;
}

.custom-slider {
    --slider-thumb-bg: #a78bfa;
    --slider-track-bg: rgba(255, 255, 255, 0.1);
    --slider-track-active-bg: #a78bfa;
}

.custom-slider.form-range::-webkit-slider-thumb {
    background-color: var(--slider-thumb-bg);
}
.custom-slider.form-range::-moz-range-thumb {
    background-color: var(--slider-thumb-bg);
}
.custom-slider.form-range::-webkit-slider-runnable-track {
    background-color: var(--slider-track-bg);
}
.custom-slider.form-range::-moz-range-track {
    background-color: var(--slider-track-bg);
}

.slider-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0 5px;
    font-size: 0.8rem;
    color: #94a3b8;
}