/* Umumiy stillar */
:root {
    --primary-color: #0047A0; /* Taegeuk ko'k */
    --secondary-color: #CD2E3A; /* Taegeuk qizil */
    --text-color: #ffffff;
    --background-color: #121212;
    --card-background: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Fon animatsiyasi */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.trigram {
    position: absolute;
    color: rgba(255, 255, 255, 0.05);
    font-size: 15vw;
    animation: float 20s infinite ease-in-out;
}

.trigram:nth-child(1) { top: 10%; left: 15%; animation-duration: 25s; }
.trigram:nth-child(2) { top: 20%; right: 10%; animation-duration: 30s; }
.trigram:nth-child(3) { bottom: 15%; left: 25%; animation-duration: 22s; }
.trigram:nth-child(4) { bottom: 25%; right: 20%; animation-duration: 28s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Asosiy konteyner */
.main-container {
    text-align: center;
    padding: 2rem;
    background: var(--card-background);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 90%;
    max-width: 600px;
}

/* Sarlavha qismi */
.main-header .title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.main-header .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* Navigatsiya tugmalari */
.main-nav {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.nav-button {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* SO'Z KARTALARI SAHIFALARI UCHUN STILLAR */

.word-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#korean-word {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

#english-word {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.romanization-text {
    color: #ccc;
    font-style: italic;
    margin-top: 10px;
}

/* Navigatsiya (oldingi/keyingi) */
.navigation button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
}

.navigation button:hover {
    background-color: #003366;
}


/* === YANGI QO'SHILGAN STILLAR === */

/* Tashrif buyuruvchilar hisoblagichi uchun stil */
#visitor-counter {
    margin-top: 20px;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#visitor-counter .eye-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Ichki sahifalar uchun konteynerga ozgina farq beramiz */
.card-page-container {
    padding-top: 2rem;
}

/* Bosh sahifaga qaytish tugmasi uchun stil */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.4);
}
