/* ================================================================
   GAMING PLATFORM - MODERN PREMIUM DESIGN
   ================================================================ */

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh; 
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Scrollbar */
::-webkit-scrollbar { 
    width: 12px; 
}

::-webkit-scrollbar-track { 
    background: #0f3460;
}

::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #ff6b6b, #4ecdc4); 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover { 
    background: linear-gradient(180deg, #4ecdc4, #ff6b6b);
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ================================================================
   HEADER
   ================================================================ */
header { 
    background: rgba(15, 52, 96, 0.95);
    backdrop-filter: blur(20px); 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo h1 { 
    font-size: 32px; 
    font-weight: 900;
    background: linear-gradient(135deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.5);
}

nav { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}

#languageSelector { 
    padding: 12px 24px; 
    border-radius: 30px; 
    border: 2px solid rgba(78, 205, 196, 0.5); 
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    color: #fff; 
    font-size: 14px;
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.3s ease;
}

#languageSelector:hover { 
    background: rgba(78, 205, 196, 0.2); 
    border-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.3);
}

#languageSelector option {
    background: #16213e;
    color: #fff;
}

#chatbotBtn { 
    padding: 12px 28px; 
    border-radius: 30px; 
    border: none; 
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f); 
    color: #fff; 
    font-size: 14px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

#chatbotBtn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 6px 30px rgba(255, 107, 107, 0.6); 
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero { 
    padding: 80px 0 60px; 
    text-align: center;
}

#heroTitle { 
    font-size: 56px; 
    font-weight: 900;
    margin-bottom: 20px; 
    background: linear-gradient(135deg, #fff, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 40px rgba(78, 205, 196, 0.5);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 60px rgba(78, 205, 196, 0.8);
        filter: brightness(1.2);
    }
}

#heroSubtitle { 
    font-size: 22px; 
    margin-bottom: 40px; 
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.search-container { 
    max-width: 600px; 
    margin: 0 auto; 
    display: flex; 
    gap: 12px;
}

#searchInput { 
    flex: 1; 
    padding: 18px 28px; 
    border-radius: 50px; 
    border: 2px solid rgba(78, 205, 196, 0.3); 
    font-size: 16px; 
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    color: #fff;
    transition: all 0.3s ease;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#searchInput:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
}

#searchBtn { 
    padding: 18px 38px; 
    border-radius: 50px; 
    border: none; 
    background: linear-gradient(135deg, #4ecdc4, #44a08d); 
    color: #fff; 
    font-size: 18px;
    font-weight: 700;
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
}

#searchBtn:hover { 
    transform: scale(1.05); 
    box-shadow: 0 6px 30px rgba(78, 205, 196, 0.6);
}

/* ================================================================
   FILTER BUTTONS
   ================================================================ */
.games-section { 
    padding: 40px 0 80px; 
}

.filter-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 50px; 
    flex-wrap: wrap; 
}

.filter-btn { 
    padding: 14px 32px; 
    border-radius: 30px; 
    border: 2px solid rgba(255, 255, 255, 0.2); 
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    color: #fff; 
    font-size: 15px; 
    font-weight: 600;
    cursor: pointer; 
    transition: all 0.3s ease;
}

.filter-btn:hover { 
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.3);
}

.filter-btn.active { 
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 5px 25px rgba(78, 205, 196, 0.5);
}

/* ================================================================
   GAMES GRID
   ================================================================ */
.games-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-bottom: 50px; 
}

.game-card { 
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(15px); 
    border-radius: 20px; 
    overflow: hidden; 
    transition: all 0.4s ease; 
    cursor: pointer; 
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.game-card:hover { 
    transform: translateY(-10px); 
    border-color: #4ecdc4;
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.3),
                0 0 40px rgba(255, 107, 107, 0.2);
}

.game-image { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    transition: transform 0.4s ease;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-info { 
    padding: 20px;
}

.game-title { 
    font-size: 20px; 
    font-weight: 700; 
    margin-bottom: 10px;
    color: #fff;
}

.game-category { 
    display: inline-block; 
    padding: 6px 16px; 
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(68, 160, 141, 0.3)); 
    border: 1px solid rgba(78, 205, 196, 0.5);
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4ecdc4;
}

.game-rating { 
    font-size: 15px; 
    margin-bottom: 8px;
    color: #ffd700;
    font-weight: 600;
}

.game-size { 
    font-size: 14px; 
    color: rgba(255, 255, 255, 0.7);
}

/* ================================================================
   SHOW MORE BUTTON
   ================================================================ */
.show-more-container { 
    text-align: center; 
    margin-top: 40px; 
}

#showMoreBtn { 
    padding: 18px 60px; 
    border-radius: 50px; 
    border: none; 
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f); 
    color: #fff; 
    font-size: 17px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#showMoreBtn:hover { 
    transform: scale(1.05); 
    box-shadow: 0 8px 35px rgba(255, 107, 107, 0.6);
}

/* ================================================================
   MODAL
   ================================================================ */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(10px); 
    overflow-y: auto;
}

.modal-content { 
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(22, 33, 62, 0.98)); 
    margin: 40px auto; 
    padding: 0;
    border-radius: 25px; 
    max-width: 900px; 
    position: relative; 
    animation: slideDown 0.5s ease;
    border: 2px solid rgba(78, 205, 196, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

@keyframes slideDown { 
    from { 
        transform: translateY(-50px); 
        opacity: 0; 
    } 
    to { 
        transform: translateY(0); 
        opacity: 1; 
    } 
}

.close { 
    position: absolute; 
    right: 20px; 
    top: 20px; 
    font-size: 40px; 
    font-weight: 700; 
    color: rgba(255, 255, 255, 0.7); 
    cursor: pointer; 
    transition: all 0.3s ease;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close:hover { 
    color: #ff6b6b;
    transform: rotate(90deg);
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

/* ================================================================
   CHATBOT MODAL
   ================================================================ */
.chatbot-container { 
    max-width: 600px;
    padding: 40px;
}

.chatbot-header { 
    margin-bottom: 25px; 
    padding-bottom: 20px; 
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

.chatbot-header h3 { 
    font-size: 28px;
    background: linear-gradient(135deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.chat-messages { 
    height: 400px; 
    overflow-y: auto; 
    margin-bottom: 25px; 
    padding: 20px; 
    background: rgba(0, 0, 0, 0.3); 
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-message, 
.user-message { 
    margin-bottom: 15px; 
    padding: 14px 18px; 
    border-radius: 18px; 
    max-width: 80%; 
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.bot-message { 
    background: rgba(255, 255, 255, 0.1); 
    float: left; 
    clear: both;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-message { 
    background: linear-gradient(135deg, #4ecdc4, #44a08d); 
    float: right; 
    clear: both;
    color: #fff;
    font-weight: 600;
}

.chat-input-container { 
    display: flex; 
    gap: 12px;
}

#chatInput { 
    flex: 1; 
    padding: 14px 20px; 
    border-radius: 25px; 
    border: 2px solid rgba(78, 205, 196, 0.3); 
    background: rgba(255, 255, 255, 0.1); 
    color: #fff; 
    font-size: 14px;
    transition: all 0.3s ease;
}

#chatInput::placeholder { 
    color: rgba(255, 255, 255, 0.5); 
}

#chatInput:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
}

#sendChatBtn { 
    padding: 14px 30px; 
    border-radius: 25px; 
    border: none; 
    background: linear-gradient(135deg, #4ecdc4, #44a08d); 
    color: #fff; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s ease;
}

#sendChatBtn:hover { 
    transform: scale(1.05); 
}

/* ================================================================
   GAME DETAIL MODAL
   ================================================================ */
.game-detail { 
    max-width: 950px;
    padding: 0;
}

.game-detail-header { 
    text-align: center; 
    padding: 40px 30px 25px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(255, 107, 107, 0.2));
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

.game-detail-title { 
    font-size: 40px; 
    margin-bottom: 0;
    background: linear-gradient(135deg, #fff, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.game-detail-image { 
    width: 100%; 
    max-height: 450px; 
    object-fit: cover; 
    margin-bottom: 0;
}

.game-detail-info { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 0;
    margin-bottom: 0;
    padding: 30px;
}

.info-section { 
    background: rgba(255, 255, 255, 0.05); 
    padding: 25px; 
    border-radius: 15px;
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-left: 4px solid #4ecdc4;
}

.info-section h4 { 
    font-size: 20px; 
    margin-bottom: 15px; 
    color: #4ecdc4;
    font-weight: 700;
}

.info-section p { 
    font-size: 16px; 
    line-height: 1.8;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.info-section p strong {
    color: #4ecdc4;
    font-weight: 700;
    display: inline-block;
    min-width: 110px;
}

.system-requirements { 
    background: rgba(0, 0, 0, 0.3); 
    padding: 30px; 
    margin-bottom: 0;
    border-top: 2px solid rgba(78, 205, 196, 0.2);
}

.system-requirements h4 { 
    font-size: 24px; 
    margin-bottom: 25px; 
    color: #4ecdc4;
    text-align: center;
    font-weight: 700;
}

.requirements-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px;
    margin-bottom: 20px;
}

.requirement-item { 
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid rgba(78, 205, 196, 0.2);
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-left-color: #4ecdc4;
}

.requirement-label { 
    font-weight: 700; 
    color: #ff6b6b; 
    display: block; 
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirement-item span:last-child {
    color: #fff;
    font-size: 15px;
}

.download-btn { 
    width: calc(100% - 60px);
    margin: 0 30px 30px;
    padding: 20px; 
    border-radius: 50px; 
    border: none; 
    background: linear-gradient(135deg, #4ecdc4, #44a08d); 
    color: #fff; 
    font-size: 18px; 
    font-weight: 800; 
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 6px 30px rgba(78, 205, 196, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 40px rgba(78, 205, 196, 0.6);
}

/* ================================================================
   FOOTER
   ================================================================ */
footer { 
    background: rgba(15, 52, 96, 0.8); 
    backdrop-filter: blur(10px);
    padding: 30px 0; 
    text-align: center; 
    margin-top: 60px;
    border-top: 2px solid rgba(78, 205, 196, 0.3);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

/* ================================================================
   RESPONSIVE - TABLET
   ================================================================ */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 26px;
    }

    #heroTitle {
        font-size: 38px;
    }

    #heroSubtitle {
        font-size: 18px;
    }

    .search-container {
        flex-direction: column;
    }

    .filter-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }

    .game-detail-title {
        font-size: 32px;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .download-btn {
        width: calc(100% - 40px);
        margin: 0 20px 20px;
        font-size: 16px;
    }
}

/* ================================================================
   RESPONSIVE - MOBILE
   ================================================================ */
@media (max-width: 576px) {
    header {
        padding: 15px 0;
    }

    .logo h1 {
        font-size: 22px;
    }

    nav {
        gap: 10px;
    }

    #languageSelector,
    #chatbotBtn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .hero {
        padding: 60px 0 40px;
    }

    #heroTitle {
        font-size: 32px;
    }

    #heroSubtitle {
        font-size: 16px;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .modal-content {
        margin: 10px;
        border-radius: 20px;
    }

    .close {
        width: 45px;
        height: 45px;
        font-size: 35px;
        right: 15px;
        top: 15px;
    }

    .game-detail-header {
        padding: 30px 20px 20px;
    }

    .game-detail-title {
        font-size: 26px;
    }

    .game-detail-info {
        padding: 20px;
    }

    .info-section {
        padding: 20px;
    }

    .system-requirements {
        padding: 25px 20px;
    }

    .requirement-item {
        padding: 12px 16px;
    }

    .download-btn {
        padding: 18px;
        font-size: 15px;
    }

    .chatbot-container {
        padding: 25px 20px;
    }

    .chat-messages {
        height: 350px;
    }
}