/* AI Baby Names Pro Frontend Styles */
.abn-directory-container { font-family: 'Inter', sans-serif; padding-top: 0; padding-bottom: 50px; direction: ltr; text-align: left; }
.abn-single-container { max-width: 900px; margin: 40px auto; padding: 20px; font-family: 'Inter', sans-serif; direction: ltr; text-align: left; }

.abn-hero {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6)), url('../images/firstcry-hero.png') center/cover;
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-top: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    color: #1e293b;
    border-bottom: 4px solid #fbcfe8; /* Soft pink border */
}
.abn-hero h2 { font-family: 'Noto Nastaliq Urdu', serif; font-size: 2.2rem; margin-top: 0; margin-bottom: 10px; color: #1e3a8a; text-shadow: none; line-height: 1.4; direction: rtl; }
.abn-hero p { font-size: 1.1rem; color: #475569; margin-bottom: 25px; font-weight: 500; letter-spacing: 0.5px; }

.abn-search-wrapper { max-width: 700px; margin: 0 auto; position: relative; direction: ltr; }
.abn-search-wrapper input { width: 100%; padding: 18px 25px; border-radius: 50px; border: 2px solid #e2e8f0; font-size: 1.1rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05); outline: none; transition: all 0.3s; background: #ffffff; color: #1e293b; text-align: start; }
.abn-search-wrapper input:focus { background: #fff; box-shadow: 0 15px 40px rgba(251,191,36,0.3); transform: scale(1.02); }

.abn-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; direction: ltr; }
.abn-filter-btn { background: #ffffff; color: #475569; border: 2px solid #e2e8f0; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.abn-filter-btn.active, .abn-filter-btn:hover { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(30,58,138,0.1); }

.abn-trend-card:hover { transform: translateY(-5px) !important; box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important; }
.abn-alpha-tile:hover, .abn-alpha-tile.active { background: #eff6ff !important; color: #1e3a8a !important; transform: scale(1.1); box-shadow: 0 5px 15px rgba(30,58,138,0.1) !important; border-color: #bfdbfe !important; }

/* 4 Cards Desktop, 2 Mobile */
.abn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1300px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 992px) {
    .abn-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .abn-hero h2 { font-size: 2rem; }
    .abn-filter-btn { padding: 12px 20px; font-size: 1rem; }
}
@media (max-width: 480px) {
    .abn-grid { grid-template-columns: repeat(1, 1fr); }
}
.abn-card { background: white; border-radius: 15px; padding: 20px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; transition: transform 0.2s; text-decoration: none; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.abn-card:hover { transform: translateY(-5px); box-shadow: 0 15px 25px -5px rgba(0,0,0,0.1); }

.abn-card.boy { border-top: 5px solid #1e3a8a; }
.abn-card.girl { border-top: 5px solid #be185d; }
.abn-card.unisex { border-top: 5px solid #0f5132; }

.bg-icon { position: absolute; top: -15px; right: -15px; font-size: 5rem; opacity: 0.05; color: inherit; }
.abn-card.boy .bg-icon { color: #1e3a8a; }
.abn-card.girl .bg-icon { color: #be185d; }

.abn-card-ur { font-family: 'Noto Nastaliq Urdu', serif; font-size: 2.2rem; color: #0F5132; margin-bottom: 5px; line-height: 1.2; }
.abn-card-en { font-size: 1.4rem; font-weight: 800; color: #1e293b; margin: 0 0 10px 0; }

.abn-card-meta { background: #f8fafc; border-radius: 8px; padding: 10px; margin: 10px 0; border: 1px solid #f1f5f9; display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: bold; color: #475569; }
.abn-card.boy .abn-card-meta { color: #1e3a8a; }
.abn-card.girl .abn-card-meta { color: #be185d; }

.abn-card-meaning { color: #475569; font-size: 0.9rem; flex-grow: 1; }

.abn-load-more-container { text-align: center; margin-top: 40px; }
.abn-btn { background: #ffca28; color: #000; padding: 15px 40px; font-size: 1.2rem; font-weight: bold; border-radius: 50px; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(255,202,40,0.4); transition: transform 0.2s; }
.abn-btn:hover { transform: scale(1.05); }

.abn-no-results { grid-column: 1/-1; text-align: center; padding: 50px; background: white; border-radius: 15px; font-size: 1.2rem; color: #64748b; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .abn-hero { padding: 30px 15px; border-radius: 0 0 20px 20px; }
    .abn-hero h2 { font-size: 1.5rem; line-height: 1.5; }
    .abn-hero p { font-size: 1rem; margin-bottom: 15px; }
    .abn-search-wrapper input { padding: 15px 20px; font-size: 1rem; }
    
    .abn-daily-features-wrapper { padding: 25px 15px !important; }
    .abn-daily-features-wrapper h3 { font-size: 1.6rem !important; }
    
    .abn-trending-section h3 { font-size: 1.5rem !important; }
    .abn-alphabet-section h3 { font-size: 1.5rem !important; }
    .abn-alpha-tile { font-size: 1.2rem !important; padding: 10px 0 !important; }
    
    .abn-filters { gap: 10px; }
    .abn-filter-btn { padding: 10px 15px; font-size: 0.95rem; width: calc(50% - 5px); text-align: center; }
    .abn-filter-btn[data-gender="all"] { width: 100%; }
}

