/*
Theme Name: Famous Birthdays
Theme URI: https://famousbirthdays.wiki
Description: A WordPress theme clone of famousbirthdays.wiki — celebrity birthday database with profiles, trending, zodiac, and profession browsing.
Version: 2.1.0
Author: Famous Birthdays Dev
Author URI: https://famousbirthdays.wiki
Text Domain: famousbirthdays
Tags: custom-logo, custom-menu, featured-images, full-width-template, translation-ready, right-sidebar, two-columns, entertainment, blog
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --fb-blue: #4a90d9;
    --fb-blue-dark: #3a7bc8;
    --fb-blue-light: #e8f0fe;
    --fb-green: #27ae60;
    --fb-red: #e74c3c;
    --fb-orange: #f39c12;
    --fb-purple: #8e44ad;
    --fb-pink: #e84393;
    --fb-teal: #00b894;
    --fb-indigo: #6c5ce7;
    --fb-dark: #0f172a;
    --fb-darker: #020617;
    --fb-gray-900: #1e293b;
    --fb-gray-800: #334155;
    --fb-gray-700: #475569;
    --fb-gray-600: #64748b;
    --fb-gray-500: #94a3b8;
    --fb-gray-400: #cbd5e1;
    --fb-gray-300: #e2e8f0;
    --fb-gray-200: #f1f5f9;
    --fb-gray-100: #f8fafc;
    --fb-white: #ffffff;
    --fb-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --fb-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --fb-shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --fb-shadow-lg: 0 8px 24px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
    --fb-shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --fb-radius: 10px;
    --fb-radius-lg: 14px;
    --fb-radius-xl: 20px;
    --fb-transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    --fb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fb-max-width: 1200px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--fb-font);
    background: var(--fb-gray-100);
    color: var(--fb-gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--fb-blue);
    transition: var(--fb-transition);
}

a:hover {
    color: var(--fb-blue-dark);
}

:focus-visible {
    outline: 2px solid var(--fb-blue);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--fb-gray-900);
    letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* ========== Layout ========== */
.fb-container {
    max-width: var(--fb-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.fb-main-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    padding: 28px 0;
    align-items: start;
}

.fb-main-content.full-width {
    grid-template-columns: 1fr;
}

/* ========== Header ========== */
.fb-header {
    background: var(--fb-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.fb-header-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 12px;
}

.fb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fb-white);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.fb-logo .logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--fb-white);
}

.fb-logo:hover {
    color: var(--fb-white);
    opacity: 0.9;
}

.fb-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.fb-nav a {
    color: var(--fb-gray-500);
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--fb-transition);
    white-space: nowrap;
}

.fb-nav a:hover,
.fb-nav a.active {
    color: var(--fb-white);
    background: rgba(255,255,255,0.08);
}

.fb-search-form {
    position: relative;
    flex-shrink: 0;
}

.fb-search-form input[type="search"] {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--fb-white);
    padding: 7px 14px 7px 36px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: inherit;
    width: 200px;
    outline: none;
    transition: var(--fb-transition);
}

.fb-search-form input[type="search"]::placeholder {
    color: var(--fb-gray-500);
}

.fb-search-form input[type="search"]:focus {
    width: 260px;
    background: rgba(255,255,255,0.12);
    border-color: rgba(102,126,234,0.6);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.fb-search-form .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fb-gray-500);
    font-size: 0.8rem;
    pointer-events: none;
}

.fb-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--fb-white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
    border-radius: 6px;
    transition: var(--fb-transition);
}

.fb-mobile-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* ========== Live Search Dropdown ========== */
.fb-live-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: -60px;
    right: 0;
    min-width: 320px;
    background: var(--fb-white);
    border-radius: var(--fb-radius);
    box-shadow: var(--fb-shadow-xl);
    overflow: hidden;
    z-index: 999;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--fb-gray-200);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--fb-gray-900);
    transition: var(--fb-transition);
    border-bottom: 1px solid var(--fb-gray-200);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--fb-gray-100);
}

.search-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--fb-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fb-blue);
    font-weight: 700;
    font-size: 0.9rem;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info strong {
    display: block;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-info small {
    font-size: 0.76rem;
    color: var(--fb-gray-600);
}

.search-no-results {
    padding: 20px 16px;
    text-align: center;
    color: var(--fb-gray-600);
    font-size: 0.88rem;
}

/* ========== Hero Section ========== */
.fb-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding: 40px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.fb-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102,126,234,0.12), transparent 70%);
    border-radius: 50%;
}

.fb-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118,75,162,0.1), transparent 70%);
    border-radius: 50%;
}

.fb-hero-content {
    position: relative;
    z-index: 1;
}

.fb-hero h1 {
    color: var(--fb-white);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.fb-hero .hero-date {
    color: var(--fb-gray-400);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========== Celebrity Cards Grid ========== */
.fb-section {
    margin-bottom: 36px;
}

.fb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.fb-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--fb-gray-900);
}

.fb-section-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fb-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--fb-blue-light);
    transition: var(--fb-transition);
}

.fb-section-link:hover {
    background: var(--fb-blue);
    color: var(--fb-white);
}

.fb-celeb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
}

.fb-celeb-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
}

/* Celebrity Card */
.fb-celeb-card {
    background: var(--fb-white);
    border-radius: var(--fb-radius-lg);
    overflow: hidden;
    box-shadow: var(--fb-shadow);
    transition: var(--fb-transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.fb-celeb-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fb-shadow-lg);
}

.fb-celeb-card a {
    display: block;
    color: inherit;
}

.fb-celeb-card .card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.fb-celeb-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.fb-celeb-card:hover .card-image img {
    transform: scale(1.06);
}

.fb-celeb-card .card-rank {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15,23,42,0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--fb-white);
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.fb-celeb-card .card-body {
    padding: 11px 12px 13px;
}

.fb-celeb-card .card-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--fb-gray-900);
}

.fb-celeb-card .card-meta {
    font-size: 0.78rem;
    color: var(--fb-gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-celeb-card .card-meta .age {
    font-weight: 700;
    color: var(--fb-blue);
}

/* Featured card */
.fb-celeb-card.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.fb-celeb-card.featured .card-body {
    padding: 14px 16px 16px;
}

.fb-celeb-card.featured .card-name {
    font-size: 1.15rem;
}

.fb-celeb-card.featured .card-meta {
    font-size: 0.88rem;
}

/* ========== Placeholder Avatar with Varied Colors ========== */
.fb-placeholder-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 800;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fb-placeholder-avatar.gradient-0 { background: linear-gradient(135deg, #667eea, #764ba2); }
.fb-placeholder-avatar.gradient-1 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.fb-placeholder-avatar.gradient-2 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.fb-placeholder-avatar.gradient-3 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.fb-placeholder-avatar.gradient-4 { background: linear-gradient(135deg, #fa709a, #fee140); }
.fb-placeholder-avatar.gradient-5 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.fb-placeholder-avatar.gradient-6 { background: linear-gradient(135deg, #fccb90, #d57eeb); }
.fb-placeholder-avatar.gradient-7 { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); }
.fb-placeholder-avatar.gradient-8 { background: linear-gradient(135deg, #f5576c, #ff6b81); }
.fb-placeholder-avatar.gradient-9 { background: linear-gradient(135deg, #0acffe, #495aff); }
.fb-placeholder-avatar.gradient-10 { background: linear-gradient(135deg, #667eea, #43e97b); }
.fb-placeholder-avatar.gradient-11 { background: linear-gradient(135deg, #ff9a9e, #fad0c4); }

/* ========== Trending Section ========== */
.fb-trending-list {
    background: var(--fb-white);
    border-radius: var(--fb-radius-lg);
    box-shadow: var(--fb-shadow);
    overflow: hidden;
}

.fb-trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--fb-gray-200);
    transition: var(--fb-transition);
    color: var(--fb-gray-900);
}

.fb-trending-item:last-child {
    border-bottom: none;
}

.fb-trending-item:hover {
    background: var(--fb-gray-100);
}

.fb-trending-item .trending-rank {
    width: 26px;
    height: 26px;
    background: var(--fb-blue-light);
    color: var(--fb-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fb-trending-item:nth-child(1) .trending-rank { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #fff; }
.fb-trending-item:nth-child(2) .trending-rank { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #fff; }
.fb-trending-item:nth-child(3) .trending-rank { background: linear-gradient(135deg, #cd7f32, #b06c28); color: #fff; }

.fb-trending-item .trending-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--fb-gray-200);
}

.fb-trending-item .trending-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-trending-item .trending-info {
    flex: 1;
    min-width: 0;
}

.fb-trending-item .trending-name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--fb-gray-900);
}

.fb-trending-item .trending-score {
    font-size: 0.72rem;
    color: var(--fb-green);
    font-weight: 600;
}

/* ========== Single Celebrity Profile ========== */
.fb-profile-header {
    background: var(--fb-white);
    border-radius: var(--fb-radius-xl);
    box-shadow: var(--fb-shadow-md);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.04);
}

.fb-profile-banner {
    height: 140px;
    position: relative;
}

.fb-profile-hero {
    display: flex;
    gap: 28px;
    padding: 0 28px 28px;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

.fb-profile-photo {
    width: 200px;
    height: 200px;
    border-radius: var(--fb-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--fb-gray-200);
    border: 4px solid var(--fb-white);
    box-shadow: var(--fb-shadow-md);
}

.fb-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-profile-info {
    flex: 1;
    padding-top: 68px;
}

.fb-profile-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.fb-profile-profession {
    display: inline-block;
    background: var(--fb-blue-light);
    color: var(--fb-blue);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.fb-profile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.fb-profile-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fb-profile-detail .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--fb-gray-500);
    font-weight: 600;
}

.fb-profile-detail .value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--fb-gray-900);
}

.fb-profile-detail .value a {
    color: var(--fb-blue);
}

.fb-profile-detail .value a:hover {
    text-decoration: underline;
}

.fb-profile-popularity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--fb-white);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
}

/* Breadcrumbs */
.fb-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--fb-gray-500);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.fb-breadcrumbs a {
    color: var(--fb-gray-600);
}

.fb-breadcrumbs a:hover {
    color: var(--fb-blue);
}

.fb-breadcrumbs .separator {
    color: var(--fb-gray-400);
}

/* Profile content sections */
.fb-profile-section {
    background: var(--fb-white);
    border-radius: var(--fb-radius-lg);
    box-shadow: var(--fb-shadow);
    padding: 22px 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.04);
}

.fb-profile-section h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fb-gray-200);
    color: var(--fb-gray-800);
}

.fb-profile-section p {
    color: var(--fb-gray-700);
    line-height: 1.75;
    font-size: 0.94rem;
}

.fb-profile-section p a {
    font-weight: 600;
}

/* Related celebrities */
.fb-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.fb-related-card {
    text-align: center;
    padding: 14px 6px;
    border-radius: var(--fb-radius);
    transition: var(--fb-transition);
}

.fb-related-card:hover {
    background: var(--fb-gray-100);
    transform: translateY(-2px);
}

.fb-related-card .related-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px;
    background: var(--fb-gray-200);
    box-shadow: var(--fb-shadow-sm);
}

.fb-related-card .related-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-related-card .related-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fb-gray-800);
}

.fb-related-card .related-role {
    font-size: 0.72rem;
    color: var(--fb-gray-500);
}

/* Popularity stats */
.fb-popularity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.fb-popularity-stat {
    background: var(--fb-gray-100);
    padding: 12px 16px;
    border-radius: var(--fb-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--fb-transition);
    border: 1px solid transparent;
}

.fb-popularity-stat:hover {
    background: var(--fb-blue-light);
    border-color: rgba(74,144,217,0.15);
}

.fb-popularity-stat .stat-label {
    font-size: 0.82rem;
    color: var(--fb-gray-600);
    font-weight: 500;
}

.fb-popularity-stat .stat-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--fb-blue);
}

/* ========== Sidebar ========== */
.fb-sidebar .widget {
    background: var(--fb-white);
    border-radius: var(--fb-radius-lg);
    box-shadow: var(--fb-shadow);
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.04);
}

.fb-sidebar .widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fb-gray-200);
    color: var(--fb-gray-800);
}

/* Month calendar widget */
.fb-month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.fb-month-grid a {
    display: block;
    text-align: center;
    padding: 7px 4px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--fb-gray-700);
    background: var(--fb-gray-100);
    transition: var(--fb-transition);
}

.fb-month-grid a:hover,
.fb-month-grid a.current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--fb-white);
}

/* Days grid */
.fb-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.fb-days-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--fb-gray-700);
    transition: var(--fb-transition);
}

.fb-days-grid a:hover,
.fb-days-grid a.today {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--fb-white);
}

/* Zodiac widget */
.fb-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.fb-zodiac-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 9px 4px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--fb-gray-700);
    transition: var(--fb-transition);
    background: var(--fb-gray-100);
}

.fb-zodiac-grid a .zodiac-icon {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.fb-zodiac-grid a:hover {
    background: var(--fb-blue-light);
    color: var(--fb-blue);
    transform: translateY(-1px);
}

/* ========== Archive / Taxonomy Grid ========== */
.fb-archive-header {
    background: var(--fb-white);
    border-radius: var(--fb-radius-lg);
    box-shadow: var(--fb-shadow);
    padding: 22px 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.04);
}

.fb-archive-header h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.fb-archive-header .archive-count {
    color: var(--fb-gray-500);
    font-size: 0.88rem;
}

.fb-numbered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 14px;
}

/* ========== Date Navigation ========== */
.fb-date-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--fb-white);
    padding: 14px 20px;
    border-radius: var(--fb-radius-lg);
    box-shadow: var(--fb-shadow);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.04);
}

.fb-date-nav a {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--fb-gray-600);
}

.fb-date-nav a:hover {
    background: var(--fb-blue-light);
    color: var(--fb-blue);
}

.fb-date-nav .current-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fb-gray-900);
}

/* ========== Search Results ========== */
.fb-search-results .result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--fb-white);
    padding: 14px 18px;
    border-radius: var(--fb-radius);
    margin-bottom: 10px;
    box-shadow: var(--fb-shadow);
    transition: var(--fb-transition);
    border: 1px solid rgba(0,0,0,0.04);
    color: var(--fb-gray-900);
}

.fb-search-results .result-item:hover {
    box-shadow: var(--fb-shadow-md);
    transform: translateX(4px);
}

.fb-search-results .result-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--fb-gray-200);
}

.fb-search-results .result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fb-search-results .result-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.fb-search-results .result-info .result-meta {
    font-size: 0.82rem;
    color: var(--fb-gray-500);
}

/* ========== Pagination ========== */
.fb-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 28px 0;
}

.fb-pagination a,
.fb-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--fb-transition);
}

.fb-pagination a {
    background: var(--fb-white);
    color: var(--fb-gray-700);
    box-shadow: var(--fb-shadow-sm);
    border: 1px solid var(--fb-gray-200);
}

.fb-pagination a:hover {
    background: var(--fb-blue);
    color: var(--fb-white);
    border-color: var(--fb-blue);
}

.fb-pagination .current {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--fb-white);
    border: none;
}

/* ========== Footer ========== */
.fb-footer {
    background: var(--fb-dark);
    color: var(--fb-gray-400);
    padding: 48px 0 28px;
    margin-top: 0;
}

.fb-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}

.fb-footer h4 {
    color: var(--fb-white);
    font-size: 0.92rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.fb-footer-links a {
    display: block;
    color: var(--fb-gray-500);
    padding: 3px 0;
    font-size: 0.85rem;
    transition: var(--fb-transition);
}

.fb-footer-links a:hover {
    color: var(--fb-white);
    padding-left: 6px;
}

.fb-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--fb-gray-600);
}

/* ========== 404 Page ========== */
.fb-404 {
    text-align: center;
    padding: 80px 20px;
}

.fb-404 .error-code {
    font-size: 7rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.fb-404 h1 {
    margin: 16px 0 8px;
}

.fb-404 p {
    color: var(--fb-gray-500);
    margin-bottom: 24px;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--fb-transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.fb-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: var(--fb-white);
    box-shadow: 0 2px 8px rgba(102,126,234,0.35);
}

.fb-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102,126,234,0.45);
    color: var(--fb-white);
}

.fb-btn-outline {
    background: transparent;
    color: var(--fb-blue);
    border: 2px solid var(--fb-blue);
}

.fb-btn-outline:hover {
    background: var(--fb-blue);
    color: var(--fb-white);
}

/* ========== Empty State ========== */
.fb-empty-state {
    text-align: center;
    padding: 48px 20px;
    background: var(--fb-white);
    border-radius: var(--fb-radius-lg);
    box-shadow: var(--fb-shadow);
}

.fb-empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.fb-empty-state p {
    color: var(--fb-gray-500);
    margin-bottom: 16px;
}

/* ========== List Reset Fix (inside content sections) ========== */
.fb-profile-section ul,
.fb-profile-section ol {
    list-style: disc;
    padding-left: 1.5em;
    margin: 8px 0;
}

.fb-profile-section ol {
    list-style: decimal;
}

/* ========== Career Timeline ========== */
.fb-timeline {
    position: relative;
    padding-left: 28px;
}

.fb-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: linear-gradient(to bottom, var(--fb-blue), var(--fb-purple));
    border-radius: 2px;
}

.fb-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}

.fb-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 16px;
    width: 11px;
    height: 11px;
    background: var(--fb-white);
    border: 3px solid var(--fb-blue);
    border-radius: 50%;
    z-index: 1;
}

.fb-timeline-item:first-child::before {
    border-color: var(--fb-blue);
    background: var(--fb-blue);
}

.fb-timeline-year {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 3px 10px;
    background: var(--fb-blue-light);
    color: var(--fb-blue);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
}

.fb-timeline-content {
    flex: 1;
    font-size: 0.92rem;
    color: var(--fb-gray-700);
    line-height: 1.6;
    padding-top: 2px;
}

/* ========== Fun Facts Grid ========== */
.fb-fun-facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.fb-fun-fact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--fb-gray-100);
    border-radius: var(--fb-radius);
    border-left: 3px solid var(--fb-orange);
    transition: var(--fb-transition);
}

.fb-fun-fact-item:hover {
    background: var(--fb-blue-light);
    border-left-color: var(--fb-blue);
}

.fb-fun-fact-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--fb-orange);
    color: var(--fb-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.fb-fun-fact-item:hover .fb-fun-fact-number {
    background: var(--fb-blue);
}

.fb-fun-fact-item p {
    flex: 1;
    margin: 0;
    font-size: 0.92rem;
    color: var(--fb-gray-700);
    line-height: 1.6;
}

/* ========== FAQ Accordion ========== */
.fb-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fb-faq-item {
    border: 1px solid var(--fb-gray-200);
    border-radius: var(--fb-radius);
    overflow: hidden;
    transition: var(--fb-transition);
}

.fb-faq-item[open] {
    border-color: var(--fb-blue);
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.1);
}

.fb-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fb-gray-800);
    cursor: pointer;
    background: var(--fb-gray-100);
    transition: var(--fb-transition);
    list-style: none;
}

.fb-faq-item summary::-webkit-details-marker {
    display: none;
}

.fb-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fb-blue);
    background: var(--fb-blue-light);
    border-radius: 50%;
    transition: var(--fb-transition);
}

.fb-faq-item[open] summary::after {
    content: '\2212';
    background: var(--fb-blue);
    color: var(--fb-white);
}

.fb-faq-item summary:hover {
    background: var(--fb-blue-light);
    color: var(--fb-blue);
}

.fb-faq-answer {
    padding: 14px 18px 16px;
    border-top: 1px solid var(--fb-gray-200);
}

.fb-faq-answer p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--fb-gray-700);
    line-height: 1.75;
}

/* ========== Net Worth Callout ========== */
.fb-net-worth-callout {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.06), rgba(39, 174, 96, 0.02));
    border-left: 4px solid var(--fb-green);
    border-radius: 0 var(--fb-radius) var(--fb-radius) 0;
    padding: 16px 20px;
}

.fb-net-worth-callout p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--fb-gray-800);
    line-height: 1.7;
}

/* ========== Trivia Section Styling ========== */
.fb-section-trivia p {
    padding: 10px 14px 10px 18px;
    border-left: 3px solid var(--fb-purple);
    background: var(--fb-gray-100);
    border-radius: 0 var(--fb-radius) var(--fb-radius) 0;
    margin-bottom: 10px;
}

.fb-section-trivia p:last-child {
    margin-bottom: 0;
}

/* ========== Section Icons (via h2 pseudo-elements) ========== */
.fb-section-about h2::before { content: '\1F4D6 '; }
.fb-section-before-fame h2::before { content: '\2B50 '; }
.fb-section-trivia h2::before { content: '\1F4A1 '; }
.fb-section-family h2::before { content: '\1F46A '; }
.fb-section-associated h2::before { content: '\1F91D '; }
.fb-section-timeline h2::before { content: '\1F4C5 '; }
.fb-section-networth h2::before { content: '\1F4B0 '; }
.fb-section-funfacts h2::before { content: '\1F389 '; }
.fb-section-faq h2::before { content: '\2753 '; }
.fb-section-popularity h2::before { content: '\1F4C8 '; }

/* ========== Animation ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fb-animate {
    animation: fadeInUp 0.4s cubic-bezier(0.4,0,0.2,1) both;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .fb-main-content {
        grid-template-columns: 1fr;
    }

    .fb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fb-profile-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -50px;
    }

    .fb-profile-info {
        padding-top: 12px;
    }

    .fb-profile-details {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .fb-header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 0;
        gap: 8px;
    }

    .fb-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 8px 0;
        order: 3;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .fb-nav.open {
        display: flex;
    }

    .fb-nav a {
        width: 100%;
        padding: 10px 14px;
    }

    .fb-mobile-toggle {
        display: block;
    }

    .fb-search-form {
        width: 100%;
        order: 4;
    }

    .fb-search-form input[type="search"] {
        width: 100%;
    }

    .fb-search-form input[type="search"]:focus {
        width: 100%;
    }

    .fb-live-search-results {
        left: 0;
        min-width: 0;
    }

    .fb-celeb-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .fb-celeb-card.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .fb-celeb-card.featured .card-image {
        aspect-ratio: 2/1;
    }

    .fb-profile-photo {
        width: 160px;
        height: 160px;
    }

    .fb-profile-name {
        font-size: 1.6rem;
    }

    .fb-profile-details {
        grid-template-columns: 1fr;
    }

    .fb-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fb-hero {
        padding: 28px 0;
    }

    .fb-hero h1 {
        font-size: 1.3rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .fb-fun-facts-grid {
        grid-template-columns: 1fr;
    }

    .fb-faq-item summary {
        font-size: 0.88rem;
        padding: 12px 14px;
    }

    .fb-faq-answer {
        padding: 12px 14px;
    }

    .fb-timeline {
        padding-left: 24px;
    }

    .fb-timeline-year {
        min-width: 44px;
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .fb-celeb-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .fb-celeb-card.featured {
        grid-column: span 2;
    }

    .fb-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fb-profile-photo {
        width: 130px;
        height: 130px;
    }

    .fb-date-nav {
        flex-direction: column;
        gap: 8px;
    }
}
