/* ─────────────────────────────────────────────────────────────────────────────
 * FAMOUS BIO TOOLKIT STYLESHEET
 * ────────────────────────────────────────────────────────────────────────── */

/* 1. PROFILE IMAGE CONTAINER */
.celeb-profile-img-container {
    display: flex;
    justify-content: center;
    margin: 25px auto;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
}
.celeb-body-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}
.celeb-body-img:hover {
    transform: scale(1.03);
}

/* 2. SUMMARY TABLE STYLES */
.celeb-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-family: inherit;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.celeb-summary-table th {
    background-color: #1e1b4b !important;
    color: #ffffff !important;
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.celeb-summary-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}
.celeb-summary-table tr:nth-of-type(even) {
    background-color: #f9fafb;
}
.celeb-summary-table tr:hover {
    background-color: #f3f4f6;
}

/* 3. BOOST WRAPPER & BUTTON */
.celeb-boost-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 25px auto;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-sizing: border-box;
}
.celeb-boost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(249, 212, 35, 0.35);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background 0.3s ease;
    text-decoration: none !important;
    outline: none;
}
.celeb-boost-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(249, 212, 35, 0.55);
}
.celeb-boost-btn:active {
    transform: scale(0.97);
}
.celeb-boost-btn.boosted {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35) !important;
    cursor: default;
    pointer-events: none;
}
.celeb-boost-btn .boost-rank {
    background: rgba(0, 0, 0, 0.18);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 4px;
}
.boost-count-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
@keyframes boostLaunch {
    0% { transform: translateY(0) rotate(0) scale(1); }
    30% { transform: translateY(-12px) rotate(-10deg) scale(1.3); }
    70% { transform: translateY(2px) rotate(5deg) scale(0.95); }
    100% { transform: translateY(0) rotate(0) scale(1); }
}
.celeb-boost-btn:not(.boosted):active .boost-rocket-icon {
    animation: boostLaunch 0.8s ease-in-out;
}

/* 4. POPULARITY CARDS GRID */
.columns-3.popularity-module__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 640px) {
    .columns-3.popularity-module__inner {
        grid-template-columns: 1fr 1fr !important;
    }
}
.popularity-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fce4f3;
    border-radius: 12px;
    padding: 14px 18px;
    min-height: 60px;
    box-sizing: border-box;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}
.popularity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.15);
}
.popularity-card.card-primary {
    background: #f06292;
}
.popularity-card .card-label {
    font-size: 13px;
    font-weight: 500;
    color: #3d0022;
    line-height: 1.35;
    flex: 1;
}
.popularity-card.card-primary .card-label {
    color: #fff;
    font-weight: 600;
}
.popularity-card .card-rank {
    font-size: 22px;
    font-weight: 900;
    color: #e91e63;
    white-space: nowrap;
    letter-spacing: -0.5px;
}
.popularity-card.card-primary .card-rank {
    color: #fff;
}

/* 5. HOMEPAGE INDEX DIRECTORY LAYOUTS */
.celeb-index-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: var(--font-main, system-ui, -apple-system, sans-serif);
    color: var(--text-color, #1e293b);
}
.celeb-index-hero {
    text-align: center;
    padding: 20px 24px 25px 24px;
    background: var(--secondary-bg, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}
.celeb-index-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1.25;
}
.celeb-index-subtitle {
    font-size: 1.05rem;
    color: var(--text-light, #64748b);
    margin-bottom: 25px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.celeb-index-search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 20px;
    gap: 8px;
    position: relative;
}
.celeb-index-search-field {
    width: 100%;
    padding: 14px 60px 14px 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.celeb-index-search-field:focus {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.celeb-index-search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--primary-color, #2563eb);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.celeb-index-search-submit:hover {
    background: var(--primary-hover, #1d4ed8);
}
.celeb-index-search-submit svg {
    stroke: currentColor;
}
.celeb-index-quick-tags {
    margin-top: 15px;
    font-size: 0.875rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.quick-tags-label {
    color: var(--text-light, #64748b);
    font-weight: 600;
}
.quick-tag-chip {
    display: inline-block;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 20px;
    color: var(--text-color, #1e293b);
    text-decoration: none;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}
.quick-tag-chip:hover {
    border-color: var(--primary-color, #2563eb);
    color: var(--primary-color, #2563eb);
}

/* Database Stats Bar */
.celeb-index-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}
@media (max-width: 600px) {
    .celeb-index-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color, #2563eb);
}
.stat-lbl {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light, #64748b);
    text-transform: uppercase;
    margin-top: 2px;
}

/* A-Z Index Dizin */
.celeb-index-az {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 45px;
    box-shadow: var(--shadow-sm);
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
}
.celeb-index-az::-webkit-scrollbar {
    display: none;
}
.az-lbl {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light, #64748b);
    letter-spacing: 0.5px;
}
.az-links {
    display: flex;
    gap: 6px;
}
.az-link-char {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--secondary-bg, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 50%;
    color: var(--text-color, #1e293b);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.az-link-char:hover {
    background: var(--primary-color, #2563eb);
    color: #fff !important;
    border-color: var(--primary-color, #2563eb);
    transform: translateY(-2px);
}

/* VS Comparison Box */
.celeb-vs-section {
    background: var(--secondary-bg, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}
.vs-widget-title {
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 25px 0;
    color: #111;
}
.vs-compare-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .vs-compare-row {
        flex-direction: column;
        gap: 20px;
    }
}
.vs-celeb-card {
    flex: 1;
    width: 100%;
    max-width: 220px;
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    padding: 20px 15px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.vs-celeb-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-color, #2563eb);
    box-shadow: var(--shadow-lg);
}
.vs-img-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
    background: var(--accent-color, #f1f5f9);
    border: 2px solid var(--border-color, #e2e8f0);
    transition: border-color 0.2s;
}
.vs-celeb-card:hover .vs-img-container {
    border-color: var(--primary-color, #2563eb);
}
.vs-celeb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vs-celeb-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-color, #1e293b);
}
.vs-celeb-desc {
    font-size: 0.8rem;
    color: var(--text-light, #64748b);
    margin: 0 0 12px 0;
}
.vs-vote-btn {
    display: inline-block;
    padding: 6px 16px;
    background: var(--secondary-bg, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
    transition: all 0.2s;
}
.vs-celeb-card:hover .vs-vote-btn {
    background: var(--primary-color, #2563eb);
    color: #fff;
    border-color: var(--primary-color, #2563eb);
}
.vs-divider {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light, #64748b);
    font-style: italic;
    background: var(--accent-color, #f1f5f9);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm);
}
.vs-celeb-card.voted {
    cursor: default;
}
.vs-celeb-card.voted.winner {
    background: #ecfdf5;
    border-color: #10b981;
}
.vs-celeb-card.voted.winner .vs-vote-btn {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}
.vs-celeb-card.voted.winner::after {
    content: '\2713 Voted';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #10b981;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
}

/* Grids */
.celeb-index-section {
    margin-bottom: 50px;
}
.celeb-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 20px;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    padding-bottom: 8px;
}
.celeb-section-title span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light, #64748b);
}
.celeb-index-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
@media (max-width: 640px) {
    .celeb-index-grid {
        gap: 12px;
    }
}
.celeb-index-card {
    flex: 1 1 180px;
    max-width: 220px;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
}
@media (max-width: 640px) {
    .celeb-index-card {
        flex: 0 1 calc(50% - 6px);
        max-width: none;
        min-width: 0;
    }
}
.celeb-index-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color, #2563eb);
}
.celeb-card-img-link {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--accent-color, #f1f5f9);
}
.celeb-index-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.celeb-index-card:hover img {
    transform: scale(1.04);
}
.celeb-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-light, #64748b);
    background: var(--accent-color, #f1f5f9);
}
.celeb-card-details {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.celeb-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}
.celeb-card-title a {
    color: var(--text-color, #1e293b);
    text-decoration: none;
    transition: color 0.15s;
}
.celeb-card-title a:hover {
    color: var(--primary-color, #2563eb);
}
.celeb-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-light, #64748b);
    margin: 0;
    font-weight: 500;
}
.celeb-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-color, #1e293b);
    box-shadow: var(--shadow-sm);
    z-index: 5;
}
.celeb-card-badge.badge-boost {
    background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%);
    color: #fff;
    border: none;
}

/* Category Grid */
.celeb-index-professions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
@media (max-width: 768px) {
    .celeb-index-professions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}
.profession-card {
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color, #1e293b);
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.profession-card:hover {
    border-color: var(--primary-color, #2563eb);
    background: var(--accent-color, #f1f5f9);
    color: var(--primary-color, #2563eb);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.profession-count {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light, #64748b);
    margin-top: 5px;
}

/* Directory Box (Zodiacs & Birthplaces) */
.celeb-index-directory-box {
    background: var(--secondary-bg, #f8fafc);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}
.directory-subsection {
    margin-bottom: 20px;
}
.directory-subsection:last-child {
    margin-bottom: 0;
}
.directory-title {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text-color, #1e293b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.directory-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.directory-chip-link {
    display: block;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color, #1e293b);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.directory-chip-link:hover {
    border-color: var(--primary-color, #2563eb);
    color: var(--primary-color, #2563eb);
    background: var(--accent-color, #f1f5f9);
}

/* Style fixes to remove inline custom margins/sizes */
.celeb-vs-spacing-top {
    margin-top: 30px;
}
.vs-placeholder-thumb {
    font-size: 1.8rem;
    line-height: 80px;
    width: 100%;
    height: 100%;
}
