*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:linear-gradient(135deg,#1e3c72,#2a5298);
color:#333;
}
html, body {
    height: 100%;
  }

  main {
    flex: 1;
  }

/* Navbar */
header{
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(12px);
    padding:15px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#fff;
    flex-wrap:wrap;
    }

    /* logo va title */
    .logo-box{
    display:flex;
    align-items:center;
    gap:10px;
    }

    header img{
    width:45px;
    height:45px;
    }

    header h1{
    font-size:18px;
    line-height:1.2;
    margin:0;
    }

    header h1 span{
    font-size:16px;
    opacity:.9;
    }

    /* menu */
    nav{
    display:flex;
    gap:15px;
    }

    nav a{
    color:#fff;
    text-decoration:none;
    font-size:14px;
    transition:.3s;
    padding:5px 10px;
    border:2px solid transparent;
    border-radius:5px;
    }

    nav a:hover{
    border:2px solid white;
    background:white;
    color:#2d4a7c;
    }

    /* mobile */
    @media(max-width:768px){

    header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    }

    header h1{
    font-size:16px;
    }

    nav{
    width:100%;
    justify-content:space-between;
    }

    }

/* Hero */
.hero{
    /* max-height: 85vh; */
text-align:center;
padding:30px 15px 60px 15px;
color:white;
}

.hero h2{
    text-align: start;
font-size:20px;
margin-bottom:10px;
}

.hero p{
    text-align: start;
font-size:14px;
letter-spacing: 2px;
word-spacing: 2px;
margin:auto;
opacity:0.9;
}
.hero-img {
    width: 100%;
    height: 100%;
}



.card{
background:white;
width:100%;
padding:25px;
border-radius:20px;
box-shadow:0 15px 40px rgba(0,0,0,0.2);
animation:fadeIn 1s ease;
}

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

.search-title{
text-align:center;
margin-bottom:20px;
font-weight:600;
font-size:18px;
}

.input-group{
display:flex;
flex-direction:column;
gap:12px;
margin-bottom:15px;
}

select,input{
padding:12px;
border-radius:10px;
border:1px solid #ccc;
font-size:14px;
width:100%;
}

input:focus,select:focus{
outline:none;
border-color:#2a5298;
box-shadow:0 0 6px rgba(42,82,152,0.3);
}

/* Results */
.results{
display:none;
flex-direction:column;
gap:15px;
margin-top:15px;
}

.result-box{
background:#f4f6fb;
padding:15px;
border-radius:12px;
width: 100%;;
min-height:80px;
transition:.3s;
}

.result-box:hover{
transform:scale(1.02);
}

.result-box h4{
font-size:14px;
color:#2a5298;
margin-bottom:8px;
}

/* Statistics */
.stats{
display:flex;
flex-direction:column;
gap:20px;
margin-top:30px;
text-align:center;
}

.stat-item h3{
color:#1e3c72;
font-size:22px;
}

.stat-item p{
font-size:12px;
color:#666;
}

/* Footer */
footer{
    width: 100%;
    background:#0f2027;
    color:white;
    text-align:center;
    padding:15px;
    font-size:12px;
}

/* ===== Desktop Version ===== */
@media(min-width:768px){

header{
padding:18px 40px;
}

header h1{
font-size:22px;
}

nav a{
font-size:16px;
}
.hero h2{
font-size:26px;
}

.hero p{
font-size:16px;
}

.card{
padding:40px;
}

.search-title{
font-size:22px;
}

.input-group{
flex-direction:row;
}

.results{
flex-direction:row;
}

.stats{
flex-direction:row;
justify-content:space-around;
}

.result-box{
min-height:120px;
}

}

.similar-words {
    margin-top: 25px;
}

.similar-words h4 {
    margin-bottom: 10px;
    color: #2a5298;
}

.similar-section {
    margin-top: 25px;
}

.similar-section h4 {
    margin-bottom: 15px;
    color: #2a5298;
    font-weight: 600;
}

/* Scroll bo‘ladigan konteyner */
.suggestion-box {
    max-height: 300px;   /* Pastga tushib ketmasligi uchun */
    overflow-y: auto;    /* O‘zi aylansin */
    padding-right: 5px;
}

/* Zamonaviy card */
#suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
}

#suggestions li {
    background: #ffffff;
    padding: 15px 18px;
    margin-bottom: 12px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

#suggestions li:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* So‘z */
.word-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 6px;
}

/* Tarjimalar yonma-yon */
.word-translations {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #555;
}

/* Scroll dizayn */
.suggestion-box::-webkit-scrollbar {
    width: 6px;
}

.suggestion-box::-webkit-scrollbar-thumb {
    background: #bfc7ff;
    border-radius: 10px;
}



/* ===== ALL DICTIONARIES MODERN UI ===== */

#dictionaryGrid {
    max-height: 520px;   /* xohlasangiz 600px qilishingiz mumkin */
    overflow-y: auto;
    padding-right: 6px;
}

/* chiroyli scrollbar */
#dictionaryGrid::-webkit-scrollbar {
    width: 8px;
}
#dictionaryGrid::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 6px;
}
#dictionaryGrid::-webkit-scrollbar-thumb:hover {
    background: #93c5fd;
}
.all-dictionaries-section {
    background: linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
    padding: 60px 0 80px;
    min-height: 70vh;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #1f2d3d;
    margin-bottom: 30px;
}


/* Language switch */
.language-switch {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.lang-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2d3d;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.lang-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* Letters */
.letters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.letter-btn {
    min-width: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    background: #ffffff;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    transition: all 0.2s ease;
}

.letter-btn:hover {
    background: #eef4ff;
    transform: scale(1.05);
}

.letter-btn.active {
    background: #2563eb;
    color: white;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Dictionary Grid */

/* Card style */
.dictionary-card {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    height: 250px;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 22px 22px 22px 26px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.4);
}

.dictionary-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.dictionary-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.dictionary-card h5 {
    text-align: start;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.dictionary-card p {
    text-align: start;
    font-size: 14px;
    color: #475569;
}

.dictionary-card small {
    text-align: start;
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

/* Empty message */
.dictionary-grid p {
    text-align: start;
    grid-column: 1 / -1;
    font-size: 12px;
    color: #6b7280;
}
/* Modal umumiy fon */
.dictionary-modal{
    background: linear-gradient(135deg,#0f172a,#1e3a8a);
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: none;
}

/* Header */
.dictionary-modal .modal-header{
    padding: 25px 30px 10px 30px;
}

.modal-word{
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
}

/* Body */
.dictionary-modal .modal-body{
    padding: 30px;
}

/* Translation blok */
.translations{
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tr-box{
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s ease;
}

.tr-box:hover{
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}

/* Tarjima label */
.tr-label{
    font-size: 14px;
    opacity: 0.7;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tarjima matni */
.tr-box h3{
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

/* About qismi */
.about-box{
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    line-height: 1.7;
    font-size: 16px;
}

/* Close button rang */
.btn-close-white{
    filter: invert(1);
}

/* RESPONSIVE (mobil uchun) */
@media (max-width: 768px){

    .modal-word{
        font-size: 24px;
    }

    .tr-box h3{
        font-size: 18px;
    }

    .about-box{
        font-size: 14px;
    }

}


.feature-divider{
    margin: 20px auto;
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg,#0f172a,#1e293b);
    color:#fff;
    position: relative;
    overflow: hidden;
}

.feature-divider::before{
    content:"";
    position:absolute;
    width:200px;
    height:200px;
    background:rgba(255,255,255,0.05);
    border-radius:50%;
    top:-80px;
    left:-80px;
}

.feature-divider::after{
    content:"";
    position:absolute;
    width:250px;
    height:250px;
    background:rgba(255,255,255,0.05);
    border-radius:50%;
    bottom:-60px;
    right:-60px;
}

.feature-title{
    font-size:42px;
    font-weight:700;
    margin-bottom:15px;
    letter-spacing:1px;
}

.feature-subtitle{
    font-size:18px;
    opacity:0.9;
    margin:0 auto 30px;
}

.feature-badges{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.feature-badges span{
    padding:10px 22px;
    border-radius:30px;
    background:rgba(255,255,255,0.1);
    border:1px solid rgba(255,255,255,0.2);
    font-weight:500;
    font-size:14px;
    backdrop-filter: blur(6px);
}

/* ===== MOBIL VERSIYA ===== */
@media (max-width: 768px){

    .feature-divider{
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 20px;
    }

    .feature-title{
        font-size: 18px;   /* kichraytirildi */
    }

    .feature-subtitle{
        font-size: 14px;   /* kichraytirildi */
        margin-bottom: 20px;
    }

    .feature-badges span{
        font-size: 12px;   /* kichraytirildi */
        padding: 8px 16px;
    }

}


.platform-text{
    font-size: 18px;
    line-height: 1.7;
    color: #e6edf7;
    margin-bottom: 30px;
}

.brand-name{
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.author-box{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg,#1e3a8a,#2563eb);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 10px;
}

.author-label{
    font-size: 16px;
    opacity: 0.8;
}

.author-name{
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}


.input-wrapper{
    position: relative;
}

#clearInput{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    font-size:16px;
    cursor:pointer;
    color:#999;
    display:none;
}

#clearInput:hover{
    color:#000;
}