/* --- head/az_style.css --- */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   1. Premium Promo Banner
   ========================================================================== */
.az-promo-banner {
    background: linear-gradient(135deg, #e0f2e9 0%, #ffffff 100%);
    position: relative;
    padding: 50px 20px;
    border-bottom: 1px solid rgba(76, 187, 141, 0.1);
    overflow: hidden;
}

/* Decorative background elements */
.az-promo-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(76, 187, 141, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.az-promo-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.az-promo-badge {
    background: #4CBB8D;
    color: white;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(76, 187, 141, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.az-promo-title {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.az-promo-desc {
    color: #636e72;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.az-breadcrumb-wrap {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ==========================================================================
   2. Sticky Alphabet Navigation
   ========================================================================== */
.alphabet-nav-container {
    position: sticky; 
    top: 70px; /* Adjust based on your actual fixed header height */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0; 
    z-index: 90;
    border-bottom: 1px solid rgba(0,0,0,0.04); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    margin-bottom: 50px;
    transition: all 0.3s ease;
}

.alphabet-nav {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 8px;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px;
}

.alpha-link {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 38px; 
    height: 38px;
    border-radius: 10px; 
    font-size: 15px; 
    font-weight: 700; 
    color: #4a5568; 
    background: #f8f9fa;
    text-decoration: none; 
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy hover */
    border: 1px solid #edf2f7;
}

.alpha-link:hover {
    background: #4CBB8D; 
    color: #fff; 
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 15px rgba(76, 187, 141, 0.3);
    border-color: #4CBB8D;
}

.alpha-link.disabled { 
    opacity: 0.35; 
    cursor: not-allowed; 
    pointer-events: none; 
    background: transparent;
    border-color: transparent;
}

/* ==========================================================================
   3. Letter Sections
   ========================================================================== */
.letter-section {
    margin-bottom: 60px; 
    scroll-margin-top: 160px; /* Important: prevents header from hiding the title */
    background: #ffffff; 
    padding: 35px;
    border-radius: 24px; 
    border: 1px solid rgba(0,0,0,0.03); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.02);
}

.letter-header {
    display: flex; 
    align-items: center; 
    margin-bottom: 30px; 
    border-bottom: 2px solid #f8f9fa; 
    padding-bottom: 20px;
}

.letter-badge {
    width: 55px; 
    height: 55px; 
    background: linear-gradient(135deg, #4CBB8D 0%, #3a9d73 100%);
    color: #fff; 
    font-size: 26px; 
    font-weight: 800; 
    border-radius: 14px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-right: 20px;
    box-shadow: 0 8px 20px rgba(76, 187, 141, 0.25);
}

.letter-title { 
    font-size: 22px; 
    color: #2d3436; 
    font-weight: 700; 
    margin: 0;
}

.letter-count {
    font-size: 15px; 
    color: #a4b0be; 
    font-weight: 500; 
    margin-left: 12px;
}

/* ==========================================================================
   4. Grid & Items
   ========================================================================== */
.az-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 16px;
}

.az-item {
    display: flex; 
    align-items: center; 
    padding: 16px 20px; 
    background: #ffffff;
    border-radius: 12px; 
    text-decoration: none; 
    border: 1px solid #edf2f7; 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.az-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #4CBB8D;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.az-item-text {
    color: #4a5568;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.az-item-arrow {
    color: #cbd5e0;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

/* Hover Effects */
.az-item:hover {
    border-color: rgba(76, 187, 141, 0.4); 
    background: #ffffff; 
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.az-item:hover .az-item-icon {
    background: #4CBB8D;
    color: #ffffff;
}

.az-item:hover .az-item-text {
    color: #2E8B57; 
}

.az-item:hover .az-item-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #4CBB8D;
}

/* ==========================================================================
   5. Utilities & Responsive
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #a4b0be;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #dfe4ea;
}

/* Back to Top / Back to Nav Button */
.az-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2E8B57;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.az-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.az-back-to-top:hover {
    background: #216e43;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .az-promo-title { font-size: 24px; }
    .alphabet-nav-container { padding: 12px 0; top: 60px; }
    .alpha-link { width: 32px; height: 32px; font-size: 13px; }
    .letter-section { padding: 25px 20px; margin-bottom: 40px; }
    .letter-badge { width: 45px; height: 45px; font-size: 20px; }
    .letter-title { font-size: 18px; }
    .az-grid { grid-template-columns: 1fr; gap: 12px;}
    .az-item { padding: 12px 15px; }
}

 .az-back-to-top {
            position: fixed;
            bottom: 30px; /* დავწიეთ დაბლა */
            left: 30px;  /* 🛑 მარჯვენა მხარის ნაცვლად, გადავიტანეთ ეკრანის მარცხენა კუთხეში 🛑 */
            /* ... დანარჩენი კოდი უცვლელად ... */
            width: 50px;
            height: 50px;
            background: #2E8B57;
            color: white;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            font-size: 18px;
            box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
            z-index: 999;
        }
        
        @media (max-width: 768px) {
            .az-back-to-top {
                bottom: 90px; /* მობილურზე ოდნავ მაღლა, რომ მენიუს არ დაედოს */
                left: 20px;   /* მობილურზეც მარცხნივ რჩება */
                width: 45px;
                height: 45px;
            }
        }