/* =====================================================
   REAL GAMES
   Version 0.1
=====================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Inter",sans-serif;

    background:#0F172A;

    color:#F8FAFC;

}

/* ===========================
   CONTAINER
=========================== */

.container{

    width:min(1400px,92%);

    margin:auto;

}

/* ===========================
   HEADER
=========================== */

header{

    position:sticky;

    top:0;

    z-index:1000;

    backdrop-filter:blur(16px);

    background:rgba(15,23,42,.82);

    border-bottom:1px solid rgba(255,255,255,.05);

}

.header{

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

/* ===========================
LOGO
=========================== */

.logo{

    display:flex;

    align-items:center;

    gap:15px;

    text-decoration:none;

}

.logo-icon{

    width:52px;

    height:52px;

    border-radius:16px;

    background:linear-gradient(
        135deg,
        #2563EB,
        #7C3AED
    );

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-weight:800;

    font-size:22px;

    box-shadow:0 10px 30px rgba(59,130,246,.35);

}

.logo-text{

    display:flex;

    flex-direction:column;

}

.logo-title{

    color:white;

    font-weight:700;

    font-size:20px;

}

.logo-subtitle{

    color:#94A3B8;

    font-size:12px;

}

/* ===========================
NAV
=========================== */

nav{

    display:flex;

    gap:35px;

}

nav a{

    color:#CBD5E1;

    text-decoration:none;

    transition:.25s;

    position:relative;

}

nav a:hover{

    color:white;

}

nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:#3B82F6;

    transition:.25s;

}

nav a:hover::after{

    width:100%;

}

/* ===========================
RIGHT
=========================== */

.header-right{

    display:flex;

    gap:15px;

    align-items:center;

}

.search{

    width:260px;

    height:44px;

    background:#1E293B;

    border:none;

    outline:none;

    border-radius:12px;

    color:white;

    padding:0 18px;

    transition:.25s;

}

.search:focus{

    background:#334155;

    box-shadow:0 0 0 3px rgba(37,99,235,.25);

}

.header-right button{

    border:none;

    background:#2563EB;

    color:white;

    height:44px;

    padding:0 22px;

    border-radius:12px;

    cursor:pointer;

    transition:.25s;

    font-weight:600;

}

.header-right button:hover{

    background:#1D4ED8;

}

/* ===========================
HERO
=========================== */

.hero{

    padding:90px 0;

    text-align:center;

}

.hero h1{

    font-size:56px;

    margin-bottom:20px;

}

.hero p{

    color:#94A3B8;

    font-size:22px;

}

.hero-button{

    display:inline-block;

    margin-top:40px;

    padding:18px 36px;

    border-radius:14px;

    background:#2563EB;

    color:white;

    text-decoration:none;

    transition:.25s;

    font-weight:700;

}

.hero-button:hover{

    background:#1D4ED8;

    transform:translateY(-3px);

}

/* ===========================
BANNER
=========================== */

.banner{

    height:120px;

    border-radius:18px;

    background:#1E293B;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#94A3B8;

    margin-bottom:70px;

}

/* ===========================
SECTION
=========================== */

.games{

    margin-bottom:80px;

}

.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

.section-header a{

    color:#3B82F6;

    text-decoration:none;

}

/* ===========================
GRID
=========================== */

.games-grid{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));

    gap:25px;

}

/* ===========================
FOOTER
=========================== */

footer{

    margin-top:80px;

    padding:40px;

    text-align:center;

    background:#111827;

    color:#94A3B8;

}

/* ===========================
GAME CARD
=========================== */

.game-card{

    background:#1E293B;

    border-radius:20px;

    overflow:hidden;

    transition:.3s;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

}

.game-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 50px rgba(0,0,0,.45);

}

.game-image{

    position:relative;

    height:190px;

    background:linear-gradient(135deg,#2563EB,#7C3AED);

    overflow:hidden;

}

.game-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.35s;

}

.game-card:hover .game-image img{

    transform:scale(1.08);

}

.game-badge{

    position:absolute;

    top:12px;

    right:12px;

    background:#EF4444;

    color:white;

    padding:6px 12px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;

}

.game-content{

    padding:20px;

}

.game-title{

    font-size:22px;

    font-weight:700;

    margin-bottom:8px;

}

.game-category{

    color:#94A3B8;

    margin-bottom:18px;

}

.game-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.game-rating{

    color:#FBBF24;

    font-weight:700;

}

.play-button{

    border:none;

    background:#2563EB;

    color:white;

    padding:10px 18px;

    border-radius:12px;

    cursor:pointer;

    font-weight:600;

    transition:.25s;

}

.play-button:hover{

    background:#1D4ED8;

}

.cover-placeholder{

    position:absolute;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:26px;

    font-weight:700;

    background:linear-gradient(135deg,#2563EB,#7C3AED);

}

/* ==================================================
   GAME PAGE
================================================== */

.game-page{
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
}

.game-info{
    display:flex;
    gap:30px;
    align-items:center;
    background:#1b1b1b;
    border-radius:20px;
    padding:25px;
    margin-bottom:30px;
}

.game-cover{
    width:220px;
    border-radius:16px;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
}

.game-text{
    flex:1;
}

.game-category{
    display:inline-block;
    background:#2d2d2d;
    color:#bdbdbd;
    padding:6px 14px;
    border-radius:30px;
    font-size:14px;
    margin-bottom:15px;
}

.game-text h1{
    font-size:42px;
    margin:0 0 15px;
}

.play-button{
    background:#00c853;
    color:#fff;
    border:none;
    padding:15px 38px;
    font-size:20px;
    border-radius:12px;
    cursor:pointer;
    transition:.25s;
}

.play-button:hover{
    transform:translateY(-2px);
    background:#00b248;
}

.banner{
    margin:30px 0;
}

.ad-placeholder{
    height:90px;
    border-radius:14px;
    background:#232323;
    border:2px dashed #444;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#888;
    font-size:18px;
}

.game-frame-section{
    background:#1b1b1b;
    border-radius:20px;
    padding:20px;
}

#game-frame{
    width:100%;
    height:720px;
    border:none;
    border-radius:14px;
    background:#111;
}

.fullscreen-button{
    margin-top:18px;
    width:100%;
    padding:15px;
    border:none;
    border-radius:12px;
    background:#2f2f2f;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:.25s;
}

.fullscreen-button:hover{
    background:#3b3b3b;
}

.related-games{
    margin-top:50px;
}

.related-games h2{
    margin-bottom:25px;
}

@media(max-width:900px){

    .game-info{
        flex-direction:column;
        text-align:center;
    }

    .game-cover{
        width:240px;
    }

    .game-text h1{
        font-size:32px;
    }

    #game-frame{
        height:550px;
    }

}

@media(max-width:600px){

    .game-page{
        padding:0 15px;
    }

    .game-cover{
        width:100%;
        max-width:280px;
    }

    #game-frame{
        height:420px;
    }

    .play-button{
        width:100%;
    }

}

.game-frame-section{
    position:relative;
}

.fullscreen-btn{

    position:absolute;
    top:15px;
    right:15px;

    width:46px;
    height:46px;

    border:none;
    border-radius:12px;

    background:rgba(0,0,0,.65);
    color:#fff;

    font-size:22px;

    display:flex;
    align-items:center;
    justify-content:center;

    line-height:1;

    cursor:pointer;

    transition:.25s;

    z-index:100;

    backdrop-filter:blur(6px);

}

.fullscreen-btn:hover{

    transform:scale(1.08);

    background:#00c853;

}

/* ===========================
   SEARCH RESULTS
=========================== */

.search-box{
    position:relative;
}

.search-results{

    position:absolute;
    top:100%;
    left:0;

    width:100%;

    background:#1d1d1d;

    border-radius:12px;

    overflow:hidden;

    margin-top:8px;

    display:none;

    box-shadow:0 10px 25px rgba(0,0,0,.35);

    z-index:999;

}

.search-item{

    display:flex;

    align-items:center;

    gap:15px;

    padding:12px;

    cursor:pointer;

    transition:.2s;

}

.search-item:hover{

    background:#2b2b2b;

}

.search-item img{

    width:55px;
    height:55px;

    border-radius:8px;

    object-fit:cover;

}

.search-info{

    flex:1;

}

.search-title{

    color:white;

    font-weight:600;

    margin-bottom:4px;

}

.search-category{

    color:#9b9b9b;

    font-size:14px;

}

/* ===========================
   CATEGORIES
=========================== */

.category-filter{

    display:flex;
    flex-wrap:wrap;
    gap:12px;

    justify-content:center;

    margin:40px 0;

}

.category-btn{

    padding:12px 20px;

    border:none;

    border-radius:999px;

    background:#222;

    color:white;

    cursor:pointer;

    font-size:15px;

    transition:.25s;

}

.category-btn:hover{

    background:#333;

}

.category-btn.active{

    background:#00c853;

    color:white;

}

/* ===========================
   FAVORITES
=========================== */

.game-content{
    position:relative;
}

.favorite-btn{

    position:absolute;

    top:15px;
    right:15px;

    font-size:24px;

    cursor:pointer;

    user-select:none;

    transition:.2s;

}

.favorite-btn:hover{

    transform:scale(1.2);

}

.favorite-btn.active{

    color:#ff3b5c;

}

.game-badge.gold{
    background:#FFD700;
    color:#111;
}

.game-badge.silver{
    background:#C0C0C0;
    color:#111;
}

.game-badge.bronze{
    background:#CD7F32;
    color:white;
}

/* ===========================
   PAGES
=========================== */

.page{

    max-width:1000px;

    margin:60px auto;

    padding:0 20px;

}

.page-card{

    background:#1f1f1f;

    border-radius:20px;

    padding:40px;

}

.page-card h1{

    margin-bottom:25px;

    font-size:40px;

}

.page-card p{

    line-height:1.8;

    color:#d0d0d0;

    margin-bottom:20px;

    font-size:18px;

}

/* ===========================
   FOOTER
=========================== */

.footer{

    margin-top:80px;

    background:#171717;

    border-top:1px solid #2b2b2b;

}

.footer-content{

    max-width:1200px;

    margin:auto;

    padding:45px 20px;

    display:flex;

    justify-content:space-between;

    gap:50px;

    flex-wrap:wrap;

}

.footer-logo p{

    margin-top:12px;

    color:#9a9a9a;

    max-width:350px;

    line-height:1.6;

}

.footer-links{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.footer-links a{

    color:#d7d7d7;

    text-decoration:none;

    transition:.25s;

}

.footer-links a:hover{

    color:#00c853;

}

.footer-bottom{

    text-align:center;

    color:#777;

    padding:20px;

    border-top:1px solid #2b2b2b;

}

/* =========================
   Homepage content sections
========================= */

.site-intro,
.game-explore,
.game-info{
    margin-top:45px;
    margin-bottom:45px;
}

.site-intro,
.game-explore{
    background:#182338;
    border:1px solid rgba(255,255,255,.06);
    border-radius:18px;
    padding:30px 34px;
}

.site-intro h2,
.game-explore h2{
    margin:0 0 14px;
    font-size:26px;
    color:#fff;
}

.site-intro p,
.game-explore p{
    max-width:950px;
    margin:8px 0;
    color:#aebdd2;
    font-size:16px;
    line-height:1.7;
}

.info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.info-card{
    background:#182338;
    border:1px solid rgba(255,255,255,.06);
    border-radius:16px;
    padding:25px;
    text-align:left;
}

.info-card h2{
    margin:0 0 12px;
    font-size:20px;
    color:#fff;
}

.info-card p{
    margin:0;
    color:#aebdd2;
    line-height:1.65;
    font-size:15px;
}

@media(max-width:800px){

    .info-grid{
        grid-template-columns:1fr;
    }

    .site-intro,
    .game-explore{
        padding:22px;
    }
}

/* =========================
   Game Guide
========================= */

.game-guide{
    width:100%;
    margin:35px 0;
}

.game-guide-card{
    background:#1e293b;
    border:1px solid rgba(255,255,255,.06);
    border-radius:18px;
    padding:30px 34px;
}

.game-guide-card > h2{
    margin:0 0 12px;
    color:#fff;
    font-size:26px;
}

.game-guide-card > p{
    margin:0 0 28px;
    color:#b8c5d8;
    font-size:16px;
    line-height:1.7;
    max-width:1000px;
}

.game-guide-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}

.guide-item{
    background:#172033;
    border:1px solid rgba(255,255,255,.05);
    border-radius:14px;
    padding:22px;
}

.guide-item h3{
    margin:0 0 10px;
    color:#fff;
    font-size:19px;
}

.guide-item p{
    margin:0;
    color:#aebdd2;
    font-size:15px;
    line-height:1.65;
}

@media(max-width:800px){

    .game-guide-grid{
        grid-template-columns:1fr;
    }

    .game-guide-card{
        padding:22px;
    }
}