/* ==========================================================
   DICTIONARY_STYLE.CSS - ბიო-ქიმიური ცნობარის სტილები
   ========================================================== */

/* --- ცნობარის ჰედერი (მთავარი გვერდი) --- */
.dict-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 20px;
    margin: 20px 0 40px 0;
    border: 1px solid #bbf7d0;
}
.dict-header h1 { color: #166534; font-size: 32px; margin-bottom: 10px; }
.dict-header p { color: #4b5563; font-size: 16px; max-width: 600px; margin: 0 auto; }

/* --- ბარათების ბადე (List View) --- */
.dict-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.dict-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.dict-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(76, 187, 141, 0.15);
    border-color: #4CBB8D;
}

.dict-card-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.dict-card-content { flex: 1; }

.dict-card-term {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
    transition: color 0.3s;
}

.dict-card:hover .dict-card-term { color: #4CBB8D; }

.dict-card-cat {
    display: inline-block;
    font-size: 11px;
    background: #e8f5e9;
    color: #2E8B57;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.dict-card-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* --- შიდა გვერდის დიზაინი (Detail View) --- */
.dict-detail-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
    align-items: start;
}

/* მარცხენა მხარე (ფიქსირებული სურათი) */
.dict-left-col {
    position: sticky;
    top: 100px; /* ეშვება ჰედერის ქვემოთ */
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
}

.dict-left-col img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 15px;
}

.dict-left-cat {
    display: inline-block;
    background: #f0fdf4;
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #bbf7d0;
}

/* მარჯვენა მხარე (ტექსტი) */
.dict-right-col {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

/* 🛑 სტილები `full_text`-ში არსებული H1 და სხვა ტეგებისთვის 🛑 */
.dict-content {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.dict-content h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f5e9;
}

.dict-content h2 {
    font-size: 22px;
    color: #166534;
    margin-top: 30px;
    margin-bottom: 15px;
}

.dict-content p { margin-bottom: 15px; }
.dict-content ul { margin-bottom: 20px; padding-left: 20px; }
.dict-content li { margin-bottom: 8px; }

/* 📱 მობილურის ადაპტაცია */
@media (max-width: 992px) {
    .dict-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .dict-left-col {
        position: static;
        padding: 15px;
    }
    .dict-right-col {
        padding: 20px 15px;
    }
    .dict-content h1 { font-size: 24px; }
}
@media (max-width: 768px) {
    .dict-header { padding: 25px 15px; }
    .dict-header h1 { font-size: 24px; }
}