@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root{
    --bg:#08172E;
    --nav:#0B1E3A;
    --card:#10264A;
    --card-hover:#173B74;

    --text:#F5F0E1;
    --muted:#B9C2D0;

    --accent:#4F7DFF;

    --border:rgba(255,255,255,.08);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);

    font-family:'Inter',sans-serif;

    overflow-x:hidden;
}

/* =======================
   NAVBAR
======================= */

.navbar{
    height:72px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 1rem;

    background:rgba(11,30,58,.95);

    backdrop-filter:blur(10px);

    border-bottom:1px solid var(--border);

    position:sticky;
    top:0;

    z-index:1000;
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    height:42px;
    display:block;
}

.nav-btn{
    background:none;
    border:none;

    color:white;

    font-size:1.4rem;

    cursor:pointer;
}

/* =======================
   SEARCH
======================= */

.search-wrapper{
    padding:1rem;
}

#search{
    width:100%;

    padding:1rem 1.2rem;

    border:none;
    outline:none;

    border-radius:14px;

    background:var(--card);

    color:white;

    font-size:1rem;
}

#search::placeholder{
    color:var(--muted);
}

/* =======================
   ROWS
======================= */

.row-section{
    margin-top:1.5rem;
}

.row-header{
    padding:0 1rem;
    margin-bottom:.8rem;
}

.row-header h2{
    font-size:1.3rem;
    font-weight:700;
}

/* =======================
   SCROLL AREA
======================= */

.row-container{
    position:relative;
}

.cards-row{
    display:flex;
    gap:1rem;

    overflow-x:auto;

    scroll-behavior:smooth;

    padding:0 1rem 1rem;

    scrollbar-width:none;
}

.cards-row::-webkit-scrollbar{
    display:none;
}

/* =======================
   CARD
======================= */

.card{
    min-width:250px;

    background:var(--card);

    border-radius:16px;

    overflow:hidden;

    text-decoration:none;

    color:var(--text);

    flex-shrink:0;

    transition:.25s ease;
}

.card:hover{
    transform:translateY(-4px);
    background:var(--card-hover);
}

.thumbnail{
    height:145px;

    position:relative;

    overflow:hidden;

    background:linear-gradient(
        135deg,
        #274E9B,
        #5E8FFF
    );
}

.thumbnail img{
    width:100%;
    height:100%;

    object-fit:cover;

    display:block;
}

.thumbnail::after{
    content:"▶";

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    width:56px;
    height:56px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(6px);

    font-size:1.3rem;

    color:white;
}

.card h3{
    padding:1rem;

    font-size:.95rem;

    line-height:1.4;
}

/* =======================
   ARROWS
======================= */

.scroll-btn{
    position:absolute;

    top:50%;
    transform:translateY(-50%);

    width:42px;
    height:42px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.55);

    color:white;

    cursor:pointer;

    z-index:10;

    transition:.2s;
}

.scroll-btn:hover{
    scale:1.08;
}

.left{
    left:8px;
}

.right{
    right:8px;
}

/* =======================
   MOBILE
======================= */

@media (max-width:768px){

    .scroll-btn{
        display:none;
    }

    .card{
        min-width:190px;
    }

    .thumbnail{
        height:110px;
    }

    .logo img{
        height:36px;
    }

    .row-header h2{
        font-size:1.1rem;
    }

}

/* =======================
   TABLET
======================= */

@media (min-width:769px){

    .cards-row{
        padding-bottom:1.5rem;
    }

}

/* =======================
   DESKTOP
======================= */

@media (min-width:1024px){

    .navbar{
        padding:0 2rem;
    }

    .search-wrapper{
        padding:1.5rem 2rem;
    }

    .row-header{
        padding:0 2rem;
    }

    .cards-row{
        padding:0 2rem 1.5rem;
    }

    .card{
        min-width:280px;
    }

}

/* =======================
   SIDEBAR
======================= */

.sidebar{
    position:fixed;

    top:0;
    left:-280px;

    width:280px;
    height:100vh;

    background:#0B1E3A;

    border-right:1px solid rgba(255,255,255,.08);

    z-index:2000;

    transition:.3s ease;

    padding:1rem;

    display:flex;
    flex-direction:column;
    gap:1rem;
}

.sidebar.active{
    left:0;
}

.sidebar a{
    text-decoration:none;

    color:white;

    padding:.9rem 1rem;

    border-radius:12px;

    transition:.2s;
}

.sidebar a:hover{
    background:#173B74;
}

.close-btn{
    background:none;
    border:none;

    color:white;

    font-size:1.3rem;

    cursor:pointer;

    align-self:flex-end;
}

/* =======================
   OVERLAY
======================= */

.overlay{
    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:1500;
}

.overlay.active{
    opacity:1;
    visibility:visible;
}