/* ==========================
   HEADER
========================== */

.header{
    position:sticky;
    top:0;
    left:0;
    width:100%;
    z-index:1000;

    background:#fff;

    border-bottom:1px solid #edf0f4;
}

.header .container{

    max-width:1400px;
    height:84px;

    margin:0 auto;
    padding:0 20px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

/* Logo */

.logo{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.logo img{
    height:46px;
    display:block;
}

/* Navigation */

.nav{

    display:flex;
    align-items:center;
    gap:34px;
}

.nav a{

    text-decoration:none;

    color:#1f2937;

    font-size:15px;

    font-weight:600;

    transition:.25s;
}

.nav a:hover{

    color:#5B7FFF;
}

/* Right Side */

.header-actions{

    display:flex;

    align-items:center;

    gap:14px;
}

/* Circle Buttons */

.search-btn,
.user-btn{

    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;

    border-radius:50%;

    background:#f5f7fb;

    cursor:pointer;

    transition:.25s;
}

.search-btn:hover,
.user-btn:hover{

    background:#5B7FFF;

    color:#fff;
}

/* Add Site */

.add-site{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:48px;

    padding:0 26px;

    border-radius:999px;

    background:#84cc16;

    color:#fff;

    font-weight:600;

    text-decoration:none;

    transition:.25s;
}

.add-site:hover{

    background:#6db113;

    transform:translateY(-2px);
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:992px){

    .nav{

        display:none;
    }

}

@media(max-width:768px){

    .header .container{

        height:72px;
    }

    .logo img{

        height:38px;
    }

    .add-site{

        display:none;
    }

}

@media(max-width:480px){

    .header .container{

        padding:0 15px;
    }

    .search-btn,
    .user-btn{

        width:42px;
        height:42px;
    }

}




/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Inter,sans-serif;
    background:#f5f7fb;
    color:#1e293b;
    line-height:1.5;
}

/* ==========================
   LAYOUT
========================== */

main{
    width:100%;
}

section{
    width:100%;
}

.container{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 20px;
}

/* ==========================
   HEADER
========================== */

header{
    width:100%;
    height:80px;
    display:flex;
    align-items:center;
    background:#fff;
    border-bottom:1px solid #edf0f4;
}



/* ===================================
   HERO
=================================== */

.hero{
    position:relative;
    background:linear-gradient(135deg,#0f172a 0%,#1b2b55 45%,#5b7fff 100%);
    overflow:hidden;
    padding:80px 0;
    border-radius:0 0 40px 40px;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 80% 20%,rgba(91,127,255,.35),transparent 35%),
        radial-gradient(circle at 20% 80%,rgba(0,255,255,.08),transparent 40%);
    pointer-events:none;
}

.hero .container{
    position:relative;
    z-index:2;
}

.hero-content{
    display:grid;
    grid-template-columns:1fr 520px;
    align-items:center;
    gap:70px;
}

.hero-left h1{

    color:#fff;

    font-size:56px;

    line-height:1.1;

    font-weight:800;

    margin-bottom:25px;
}

.hero-left p{

    color:rgba(255,255,255,.75);

    font-size:18px;

    line-height:1.8;

    margin-bottom:35px;

    max-width:620px;
}

.hero-badge{

    display:inline-block;

    padding:8px 18px;

    border-radius:999px;

    background:rgba(255,255,255,.08);

    color:#a3e635;

    margin-bottom:20px;

    font-size:14px;

    backdrop-filter:blur(12px);
}

/* SEARCH */

.hero-search{

    display:flex;

    align-items:center;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    max-width:620px;

    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.hero-search input{

    flex:1;

    height:64px;

    border:none;

    outline:none;

    padding:0 22px;

    font-size:16px;
}

.hero-search button{

    width:170px;

    height:64px;

    border:none;

    cursor:pointer;

    background:#84cc16;

    color:#fff;

    font-size:16px;

    font-weight:700;

    transition:.25s;
}

.hero-search button:hover{

    background:#65a30d;
}

/* IMAGE */

.hero-right{

    display:flex;

    justify-content:center;
}

.hero-right img{

    width:100%;

    max-width:520px;

    height:auto;

    display:block;

    filter:drop-shadow(0 30px 60px rgba(0,0,0,.35));
}




/* ==========================================
   HERO
========================================== */

.hero{
    position:relative;
    overflow:hidden;

    padding:90px 0;

    background:linear-gradient(135deg,#0f172a 0%,#1d3557 45%,#4f8ef7 100%);

    border-radius:0 0 40px 40px;
}

.hero::before{

    content:"";

    position:absolute;
    inset:0;

    background:
        radial-gradient(circle at top right,rgba(79,142,247,.30),transparent 35%),
        radial-gradient(circle at bottom left,rgba(132,204,22,.08),transparent 40%);

    pointer-events:none;
}

.hero .container{
    position:relative;
    z-index:2;
}

.hero-content{

    display:grid;

    grid-template-columns:1fr 520px;

    gap:70px;

    align-items:center;
}

/* LEFT */

.hero-left h1{

    color:#fff;

    font-size:58px;

    font-weight:800;

    line-height:1.1;

    margin-bottom:25px;
}

.hero-left p{

    color:rgba(255,255,255,.75);

    font-size:18px;

    line-height:1.8;

    max-width:620px;

    margin-bottom:35px;
}

.hero-badge{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 18px;

    border-radius:999px;

    background:rgba(255,255,255,.08);

    color:#9ae6b4;

    font-size:14px;

    margin-bottom:25px;

    backdrop-filter:blur(12px);
}

/* SEARCH */

.hero-search{

    display:flex;

    align-items:center;

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    max-width:650px;

    box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.hero-search input[type="search"]{

    flex:1;

    min-width:0;

    height:64px;

    border:none;

    outline:none;

    padding:0 22px;

    font-size:16px;

    background:#fff;
}

.hero-search button{

    width:170px;

    height:64px;

    border:none;

    cursor:pointer;

    background:#84cc16;

    color:#fff;

    font-size:16px;

    font-weight:700;

    transition:.25s;
}

.hero-search button:hover{

    background:#65a30d;
}

/* RIGHT */

.hero-right{

    display:flex;

    justify-content:center;

    align-items:center;
}

.hero-right img{

    width:100%;

    max-width:520px;

    height:auto;

    display:block;

    filter:drop-shadow(0 30px 60px rgba(0,0,0,.35));
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:1200px){

    .hero-content{
        grid-template-columns:1fr 420px;
        gap:45px;
    }

    .hero-left h1{
        font-size:48px;
    }

    .hero-right img{
        max-width:420px;
    }

}

@media (max-width:992px){

    .hero{
        padding:70px 0;
    }

    .hero-content{
        grid-template-columns:1fr;
        text-align:center;
    }

    .hero-left{
        order:2;
    }

    .hero-right{
        order:1;
    }

    .hero-left p{
        margin:20px auto 35px;
        max-width:650px;
    }

    .hero-search{
        margin:0 auto;
        width:100%;
        max-width:650px;
    }

    .hero-right img{
        max-width:340px;
        margin-bottom:35px;
    }

}

@media (max-width:768px){

    .hero{
        padding:55px 0;
        border-radius:0 0 25px 25px;
    }

    .hero-content{
        position:relative;
        min-height:520px;
        display:flex;
        justify-content:center;
        align-items:center;
        text-align:center;
    }

    .hero-left{
        position:relative;
        z-index:2;
        width:100%;
        max-width:500px;
    }

    .hero-left h1{
        font-size:36px;
    }

    .hero-left p{
        font-size:16px;
        margin:18px auto 30px;
    }

    .hero-right{
        position:absolute;
        inset:0;
        display:flex;
        justify-content:center;
        align-items:center;
        z-index:1;
        pointer-events:none;
    }

    .hero-right img{
        width:100%;
        max-width:320px;
        opacity:.15;
        filter:drop-shadow(0 25px 50px rgba(0,0,0,.35));
    }

    .hero-search{
        display:flex;
        align-items:center;
        width:100%;
        max-width:100%;
        background:#fff;
        border-radius:16px;
        overflow:hidden;
        box-shadow:0 15px 40px rgba(0,0,0,.20);
    }

    .hero-search input[type="search"]{
        flex:1;
        min-width:0;
        height:56px;
        border:none;
        outline:none;
        border-radius:0;
        padding:0 18px;
        background:#fff;
    }

    .hero-search button{
        width:120px;
        height:56px;
        border:none;
        border-radius:0;
    }

}

@media (max-width:480px){

    .hero{
        padding:40px 0;
    }

    .hero-content{
        min-height:450px;
    }

    .hero-right img{
        max-width:250px;
        opacity:.12;
    }

    .hero-left h1{
        font-size:30px;
    }

    .hero-left p{
        font-size:15px;
    }

    .hero-badge{
        font-size:12px;
    }

    .hero-search button{
        width:100px;
    }

}

/* ==========================
   CATEGORIES
========================== */

.categories{
    max-width:1400px;
    margin:60px auto;
    padding:0 20px;
}

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

.category-card{

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    min-height:180px;

    background:#fff;

    border-radius:22px;

    text-align:center;

    text-decoration:none;

    color:#111827;

    padding:25px;

    border:1px solid #edf0f4;

    transition:.3s ease;
}

.category-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 40px rgba(0,0,0,.08);

    border-color:#5B7FFF;
}

.category-card__icon{

    width:72px;
    height:72px;

    margin-bottom:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:18px;

    background:#eef5ff;

    overflow:hidden;
}

.category-card__icon img{

    width:44px;
    height:44px;

    object-fit:contain;

    display:block;
}

.category-card__content h3{

    font-size:18px;

    font-weight:700;

    margin-bottom:8px;
}

.category-card__content span{

    color:#8b95a7;

    font-size:14px;
}

/* ==========================
   LATEST
========================== */

.latest{
    padding:70px 30px;
}

/* ==========================
   POPULAR
========================== */

.popular{
    padding:70px 30px;
}

/* ==========================
   FOOTER
========================== */

footer{
    margin-top:80px;
    padding:40px;
    background:#0f172a;
    color:#fff;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width:1200px){

    .categories-grid{
        grid-template-columns:repeat(4,1fr);
    }

}

@media (max-width:992px){

    .hero{
        height:420px;
    }

    .categories-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

@media (max-width:768px){

    .hero{
        height:340px;
        border-radius:0 0 25px 25px;
    }

    .categories{
        margin:40px auto;
    }

    .categories-grid{
        grid-template-columns:repeat(2,1fr);
        gap:18px;
    }

    .category-card{
        min-height:160px;
        padding:20px;
    }

    .category-card__icon{
        width:60px;
        height:60px;
    }

    .category-card__icon img{
        width:36px;
        height:36px;
    }

}

@media (max-width:480px){

    .hero{
        height:280px;
    }

    .categories{
        padding:0 15px;
    }

    .categories-grid{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }

    .category-card{
        min-height:145px;
        border-radius:18px;
        padding:16px;
    }

    .category-card__content h3{
        font-size:15px;
    }

    .category-card__content span{
        font-size:13px;
    }

}


/* ===== Language switcher (hover-stable) ===== */
.header-lang {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 5;
}

.header-lang__current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

/* Dropdown */
.header-lang__list {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0;
    /* gap არ იყოს */
    min-width: 170px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    z-index: 999999;
    overflow: hidden;
}

/* მთავარი ფიქსი: გახსნილი დარჩეს როცა hover არის current-ზე ან list-ზე */
.header-lang:hover .header-lang__list, .header-lang__list:hover {
    display: block;
}

/* უხილავი ხიდი current->dropdown შორის */
.header-lang__list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

/* Items */
.header-lang__list .lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

.header-lang__list .lang-item:hover {
    background: #f6f6f6
}

.header-lang__list .is-current {
    display: none
}

/* Flag size */
.header-lang__list .flag {
    width: 18px;
    height: 13px;
    display: block;
    border-radius: 2px;
    flex: 0 0 auto;
}

/* თუ რომელიმე მშობელი ჭრის dropdown-ს */
.header-top, .header-top .container, .header-top .container.e-swipe {
    overflow: visible !important;
}