/* ============================================
   Baby Name Generator — baby-names.css
   ============================================ */

.bn-app { max-width: 100%; }

.bn-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.bn-card-title {
    font-size: 1.3rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 1.5rem; padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    display: flex; align-items: center;
}

/* ---- Fields ---- */
.bn-field { margin-bottom: 1.5rem; }
.bn-field:last-child { margin-bottom: 0; }

.bn-label {
    display: block; font-size: .9rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: .5rem;
}

/* Gender Buttons */
.bn-gender-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.bn-gender-btn {
    padding: 10px 20px; font-size: .9rem; font-weight: 700;
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-lg);
    cursor: pointer; transition: all .15s; flex: 1; text-align: center;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.bn-gender-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.bn-gender-active {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}

/* Origin Buttons */
.bn-origin-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.bn-origin-btn {
    padding: 7px 14px; font-size: .8rem; font-weight: 600;
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-md);
    cursor: pointer; transition: all .15s;
}
.bn-origin-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.bn-origin-active {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}

/* Letter Grid */
.bn-letter-grid { display: flex; gap: 4px; flex-wrap: wrap; }

.bn-letter-btn {
    width: 38px; height: 38px; font-size: .85rem; font-weight: 700;
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-md);
    cursor: pointer; transition: all .15s;
    display: flex; align-items: center; justify-content: center;
}
.bn-letter-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.bn-letter-active {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}

/* Length Buttons */
.bn-length-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.bn-length-btn {
    padding: 8px 16px; font-size: .85rem; font-weight: 600;
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-md);
    cursor: pointer; transition: all .15s;
}
.bn-length-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.bn-length-active {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}

/* Sort Buttons */
.bn-sort-btns { display: flex; gap: 6px; flex-wrap: wrap; }

.bn-sort-btn {
    padding: 7px 14px; font-size: .8rem; font-weight: 600;
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-md);
    cursor: pointer; transition: all .15s;
}
.bn-sort-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.bn-sort-active {
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}

/* Search Input */
.bn-search-input {
    width: 100%; padding: 12px 16px; font-size: 1rem; font-weight: 500;
    color: var(--text-primary); background: var(--bg-input);
    border: 2px solid var(--border-color); border-radius: var(--radius-lg);
    outline: none; transition: border-color .2s; box-sizing: border-box;
}
.bn-search-input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(6,182,212,.1); }
.bn-search-input::placeholder { color: var(--text-muted); }

/* Filter Actions */
.bn-filter-actions { display: flex; gap: 10px; margin-top: 1.5rem; }

.bn-random-btn {
    flex: 1; padding: 14px; font-size: 1.05rem; font-weight: 700;
    color: #fff; border: none; border-radius: var(--radius-lg); cursor: pointer;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 4px 15px rgba(236,72,153,.25);
    transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.bn-random-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(236,72,153,.4); }

.bn-clear-btn {
    padding: 14px 24px; font-size: 1rem; font-weight: 700;
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-lg);
    cursor: pointer; transition: all .15s;
    display: flex; align-items: center; justify-content: center;
}
.bn-clear-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ---- Results Bar ---- */
.bn-results-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}
.bn-results-count { font-size: .9rem; font-weight: 600; color: var(--text-secondary); }
.bn-results-fav {
    font-size: .85rem; font-weight: 700; color: #ef4444;
    cursor: pointer; transition: opacity .15s;
}
.bn-results-fav:hover { opacity: .7; }

/* ---- Spotlight Card ---- */
.bn-spotlight-card {
    background: linear-gradient(135deg, rgba(236,72,153,.05), rgba(139,92,246,.05));
    border: 2px solid rgba(236,72,153,.2);
}

.bn-spotlight { text-align: center; padding: 1rem 0; }

.bn-spotlight-badge {
    display: inline-block; padding: 4px 16px; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; border-radius: 20px;
    margin-bottom: 12px;
}

.bn-spotlight-name {
    font-size: 3.5rem; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 8px;
}

.bn-spotlight-meaning {
    font-size: 1.1rem; font-style: italic; color: var(--text-secondary);
    margin-bottom: 16px;
}

.bn-spotlight-details { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.bn-spotlight-tag {
    padding: 6px 14px; font-size: .8rem; font-weight: 600;
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
}

.bn-spotlight-actions { display: flex; justify-content: center; gap: 10px; }

.bn-spot-fav {
    padding: 10px 24px; font-size: .9rem; font-weight: 700;
    color: #fff; background: #ef4444; border: none;
    border-radius: var(--radius-lg); cursor: pointer; transition: all .2s;
}
.bn-spot-fav:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(239,68,68,.3); }

.bn-spot-next {
    padding: 10px 24px; font-size: .9rem; font-weight: 700;
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 2px solid var(--border-color); border-radius: var(--radius-lg);
    cursor: pointer; transition: all .15s;
}
.bn-spot-next:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ---- Surname Row ---- */
.bn-surname-row { display: flex; flex-direction: column; gap: 8px; }

.bn-surname-input {
    width: 100%; padding: 12px 16px; font-size: 1rem; font-weight: 600;
    color: var(--text-primary); background: var(--bg-input);
    border: 2px solid var(--border-color); border-radius: var(--radius-lg);
    outline: none; transition: border-color .2s; box-sizing: border-box;
}
.bn-surname-input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(6,182,212,.1); }

.bn-surname-hint { font-size: .75rem; color: var(--text-muted); }

/* ---- Names Grid ---- */
.bn-names-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px; margin-bottom: 1.5rem;
}

.bn-name-card {
    background: var(--bg-card); border: 2px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 18px; position: relative;
    transition: all .2s; cursor: default;
}
.bn-name-card:hover { border-color: rgba(236,72,153,.3); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,.06); }

.bn-name-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }

.bn-name-card-name {
    font-size: 1.4rem; font-weight: 800; color: var(--text-primary); line-height: 1.2;
}
.bn-name-card-full {
    font-size: .8rem; font-weight: 500; color: var(--text-muted); margin-top: 2px;
}

.bn-name-card-fav {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: transparent; color: var(--text-muted); font-size: 1.1rem;
    cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bn-name-card-fav:hover { color: #ef4444; background: rgba(239,68,68,.08); }
.bn-name-card-fav.bn-fav-active { color: #ef4444; }

.bn-name-card-meaning {
    font-size: .85rem; font-style: italic; color: var(--text-secondary);
    margin-bottom: 10px; line-height: 1.4;
}

.bn-name-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.bn-name-tag {
    padding: 3px 10px; font-size: .7rem; font-weight: 700;
    border-radius: 12px; text-transform: uppercase; letter-spacing: .03em;
}
.bn-tag-girl { background: rgba(236,72,153,.1); color: #ec4899; }
.bn-tag-boy { background: rgba(59,130,246,.1); color: #3b82f6; }
.bn-tag-unisex { background: rgba(139,92,246,.1); color: #8b5cf6; }
.bn-tag-origin { background: rgba(16,185,129,.1); color: #10b981; }
.bn-tag-pop { background: rgba(245,158,11,.1); color: #f59e0b; }

/* ---- Load More ---- */
.bn-load-more { text-align: center; margin-bottom: 1.5rem; }

.bn-load-btn {
    padding: 14px 40px; font-size: 1rem; font-weight: 700;
    color: var(--text-secondary); background: var(--bg-card);
    border: 2px solid var(--border-color); border-radius: var(--radius-lg);
    cursor: pointer; transition: all .15s;
}
.bn-load-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ---- No Results ---- */
.bn-no-results {
    text-align: center; padding: 3rem; color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); margin-bottom: 1.5rem;
}
.bn-no-results i { margin-bottom: 16px; opacity: .4; }
.bn-no-results h3 { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 8px; }
.bn-no-results p { font-size: .9rem; }

/* ---- Favourites ---- */
.bn-fav-card { border: 2px solid rgba(239,68,68,.15); }

.bn-fav-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px; margin-bottom: 1.5rem;
}

.bn-fav-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    transition: all .15s;
}

.bn-fav-item-info { display: flex; flex-direction: column; }
.bn-fav-item-name { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.bn-fav-item-detail { font-size: .75rem; color: var(--text-muted); }

.bn-fav-item-actions { display: flex; gap: 6px; }

.bn-fav-item-btn {
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: transparent; color: var(--text-muted); font-size: .85rem;
    cursor: pointer; transition: all .15s;
    display: flex; align-items: center; justify-content: center;
}
.bn-fav-item-btn:hover { background: rgba(239,68,68,.08); color: #ef4444; }
.bn-fav-item-middle:hover { background: rgba(6,182,212,.08); color: #06b6d4; }

/* Fav Actions */
.bn-fav-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.bn-action-btn {
    padding: 10px 22px; font-size: .9rem; font-weight: 700;
    border: none; border-radius: var(--radius-lg); cursor: pointer;
    transition: all .2s; display: flex; align-items: center;
}
.bn-action-primary {
    color: #fff; background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239,68,68,.2);
}
.bn-action-primary:hover { transform: translateY(-2px); }
.bn-action-share {
    color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.bn-action-share:hover { transform: translateY(-2px); }
.bn-action-clear {
    color: var(--text-muted); background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}
.bn-action-clear:hover { border-color: #ef4444; color: #ef4444; }

/* ---- Middle Name Grid ---- */
.bn-middle-hint { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }

.bn-middle-grid { display: flex; gap: 8px; flex-wrap: wrap; }

.bn-middle-item {
    padding: 8px 16px; font-size: .9rem; font-weight: 600;
    color: var(--text-secondary); background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    cursor: pointer; transition: all .15s;
}
.bn-middle-item:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ---- Share ---- */
.bn-share-section { text-align: center; }
.bn-share-note { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.bn-share-row { display: flex; justify-content: center; gap: 10px; }
.bn-share-btn {
    width: 44px; height: 44px; border-radius: 50%; border: none;
    color: #fff; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.bn-share-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* ---- Tips ---- */
.bn-tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.bn-tip-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.bn-tip-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
    background: color-mix(in srgb, var(--tip-color) 12%, transparent);
    color: var(--tip-color);
}
.bn-tip-text { display: flex; flex-direction: column; }
.bn-tip-text strong { font-size: .85rem; color: var(--text-primary); margin-bottom: 2px; }
.bn-tip-text span { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }

/* ---- Info & FAQ ---- */
.bn-info-block {
    padding: 1.25rem; background: var(--bg-secondary); border-radius: var(--radius-md);
    margin-bottom: 1rem; border-left: 4px solid #ec4899;
}
.bn-info-block:last-child { margin-bottom: 0; }
.bn-info-block h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: .5rem; }
.bn-info-block p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 0; line-height: 1.6; }

.bn-faq-item { padding: 1.25rem; background: var(--bg-secondary); border-radius: var(--radius-md); margin-bottom: 1rem; }
.bn-faq-item:last-child { margin-bottom: 0; }
.bn-faq-item h3 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: .5rem; }
.bn-faq-item p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 0; line-height: 1.6; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .bn-tips-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .bn-card { padding: 1.25rem; }
    .bn-gender-btns { flex-wrap: wrap; }
    .bn-gender-btn { flex: 0 0 calc(50% - 4px); }
    .bn-names-grid { grid-template-columns: 1fr; }
    .bn-fav-grid { grid-template-columns: 1fr; }
    .bn-spotlight-name { font-size: 2.5rem; }
    .bn-tips-grid { grid-template-columns: 1fr; }
    .bn-filter-actions { flex-direction: column; }
    .bn-fav-actions { flex-direction: column; }
    .bn-action-btn { width: 100%; justify-content: center; }
    .bn-letter-btn { width: 32px; height: 32px; font-size: .75rem; }
    .bn-results-bar { flex-direction: column; gap: 6px; text-align: center; }
}

/* ---- How to Use Steps ---- */
.bn-steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.bn-step-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 16px;
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: all .15s;
}
.bn-step-item:hover { border-color: rgba(236,72,153,.3); }

.bn-step-num {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.bn-step-content { display: flex; flex-direction: column; }
.bn-step-content strong { font-size: .9rem; color: var(--text-primary); margin-bottom: 3px; }
.bn-step-content span { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 767.98px) {
    .bn-steps-grid { grid-template-columns: 1fr; }
}
