/* ============================================
   HERO
   ============================================ */
.hero-home {
    padding: 3.5rem 0 2.5rem;
    position: relative;
    z-index: 100 !important;
}

.hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-title);
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 1.75rem;
}

/* Search */
.hero-search {
    position: relative !important;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    z-index: 110 !important;
}

.search-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-card, #fff);
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    gap: 8px;
    transition: border-color .2s, box-shadow .2s;
}

.search-wrap:focus-within {
    border-color: var(--primary-color, #4f72ea);
    box-shadow: 0 0 0 4px rgba(79, 114, 234, .1);
}

.search-icon {
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.975rem;
    color: var(--text-title);
    min-width: 0;
}

.search-wrap input::placeholder {
    color: #adb5bd;
}

.search-clear {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.search-btn {
    background: var(--primary-color, #4f72ea);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-btn:hover {
    opacity: .88;
}

.search-hints {
    text-align: center;
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 0.6rem;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.search-hints a {
    color: var(--text-link, #4f72ea);
    text-decoration: none;
    transition: opacity .2s;
}

.search-hints a:hover {
    opacity: .75;
}

/* Category pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    border: 1px solid transparent;
}

.pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.pill-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.pill-pink {
    background: #fdf2f8;
    color: #be185d;
    border-color: #fbcfe8;
}

.pill-green {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.pill-orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.pill-purple {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

.pill-gray {
    background: #f9fafb;
    color: #374151;
    border-color: #e5e7eb;
}

/* ============================================
       SECTIONS
       ============================================ */
.section-home {
    padding: 3rem 0;
}

.section-alt {
    background: var(--bg-card, #f9fafb);
    border-top: 1px solid var(--border-color, #e5e7eb);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-title);
}

.section-more {
    font-size: 0.82rem;
    color: var(--primary-color, #4f72ea);
    text-decoration: none;
    font-weight: 500;
}

.section-more:hover {
    text-decoration: underline;
}

/* ============================================
       NAME CARDS V2
       ============================================ */
.name-card-v2 {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid;
}

.name-card-v2:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.card-male {
    border-left-color: #3b82f6;
}

.card-female {
    border-left-color: #ec4899;
}

.card-unisex {
    border-left-color: #8b5cf6;
}

.name-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.name-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title);
}

.card-male .name-text .gender-symbol {
    color: #3b82f6;
}

.card-female .name-text .gender-symbol {
    color: #ec4899;
}

.card-unisex .name-text .gender-symbol {
    color: #8b5cf6;
}

.gender-symbol {
    font-size: 0.9rem;
    margin-left: 4px;
}

.gender-badge {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: .4px;
}

.card-male .gender-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

.card-female .gender-badge {
    background: #fdf2f8;
    color: #be185d;
}

.card-unisex .gender-badge {
    background: #f5f3ff;
    color: #7c3aed;
}

.name-meaning {
    font-size: 0.82rem;
    color: var(--text-muted, #6c757d);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 0.75rem;
    min-height: 2.5em;
}

.name-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.btn-fav,
.btn-compare {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted, #9ca3af);
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color .15s;
}

.btn-fav:hover {
    color: #ef4444;
}

.btn-compare:hover {
    color: var(--primary-color, #4f72ea);
}

.name-views {
    font-size: 0.75rem;
    color: var(--text-muted, #9ca3af);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
       BROWSE BOX (Boy / Girl tags)
       ============================================ */
.browse-box {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    padding: 1.25rem;
    background: var(--bg-white, #fff);
    height: 100%;
    border-top: 4px solid;
}

.browse-boy {
    border-top-color: #3b82f6;
}

.browse-girl {
    border-top-color: #ec4899;
}

.browse-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.browse-box-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-title);
}

.browse-box-more {
    font-size: 0.78rem;
    color: var(--primary-color, #4f72ea);
    text-decoration: none;
    font-weight: 500;
}

.name-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.name-tag {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: transform .15s, box-shadow .15s;
    border: 1px solid;
}

.name-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.tag-boy {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.tag-girl {
    background: #fdf2f8;
    color: #9d174d;
    border-color: #fbcfe8;
}

/* ============================================
       BLOG CARDS
       ============================================ */
.blog-card {
    display: block;
    text-decoration: none;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow .2s, transform .2s;
}

.blog-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .09);
    transform: translateY(-3px);
}

.blog-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-color, #4f72ea);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 50px;
    letter-spacing: .3px;
}

.blog-card-body {
    padding: 0.9rem;
}

.blog-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-title);
    line-height: 1.45;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: var(--primary-color, #4f72ea);
}

.blog-card-date {
    font-size: 0.75rem;
    color: var(--text-muted, #9ca3af);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
       POPULAR NAMES
       ============================================ */
.popular-names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

.popular-name-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.83rem;
    transition: transform .15s;
    border: 1px solid;
}

.popular-name-item:hover {
    transform: translateY(-1px);
}

.pop-male {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.pop-female {
    background: #fdf2f8;
    color: #9d174d;
    border-color: #fbcfe8;
}

.pop-name {
    font-weight: 600;
}

.pop-views {
    font-size: 0.72rem;
    color: inherit;
    opacity: .65;
}

/* ============================================
       SEO CONTENT
       ============================================ */
.seo-content-box {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.seo-content-box h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-title);
}

.seo-content-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
}
