/* =================================================================
   FINAL HERO STYLING V11 (MERGED & REFINED)
   - Structure: CSS Grid (V7)
   - Design: Soft Square Buttons, Outfit Fonts, Pink Footer (V8)
   - Features: Animations, Memorial Mode, Sticky Sidebar (V7)
   - Refinements: 
     1. Sad/Golden Colors for Event Card
     2. Updated Data Pills Typography (Clean Look 2026)
     3. Fixed Verified Badge display
     4. Uniform Data Pill Height
   ================================================================= */

/* 1. VARIABLES & RESET */
:root {
    --brand-pink: #FF3366;
    --brand-pink-hover: #e62e5c;
    --dark-bg: #1a1a1a;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: 0.3s ease;
    --pray-btn-bg: #B0B0B0;
    --pray-btn-hover-bg: #999999;
    --header-height: 70px; 
    
    /* NEW COLORS */
    --sad-text-color: #7A7068; /* For Memorial Title */
    --golden-text-color: #D4AF37; /* For Birthday Title */
    
    /* Pill Specific Colors (Mapped from your request) */
    --color-dark: #222222;       /* Charcoal Grey */
    --color-text-muted: #666666; /* Halka Grey */
    
    /* Font Fallbacks */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Outfit', sans-serif;
}

.celebrity-page-wrapper, 
.celebrity-page-wrapper * { 
    box-sizing: border-box; 
}

/* =================================================================
   2. MAIN PAGE LAYOUT (CSS GRID + STICKY SIDEBAR FIX)
   ================================================================= */
.celebrity-page-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px; 
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    align-items: start; 
}

.celebrity-page-wrapper .celebrity-content-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0; 
    width: 100%;
}

.celebrity-page-wrapper .celebrity-sidebar-column {
    position: relative;
    width: 320px; 
    min-width: 320px;
    height: 100%;
}

@media (max-width: 991px) {
    .celebrity-page-wrapper {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    .celebrity-page-wrapper .celebrity-sidebar-column {
        order: 3;
        width: 100%;
        max-width: 100%;
        height: auto; 
    }
    .celebrity-page-wrapper .sticky-sidebar-inner {
        position: static; 
    }
}

/* =================================================================
   3. HERO SECTION (FLEX STRUCTURE)
   ================================================================= */
.celebrity-page-wrapper .celebrity-hero-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    align-items: stretch; 
}

.celebrity-page-wrapper .hero-col-identity {
    flex: 0 0 55%;
    max-width: 55%;
    min-width: 0; 
}

.celebrity-page-wrapper .hero-col-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0; 
}

/* =================================================================
   4. IDENTITY CARD & ENGAGEMENT BUTTON
   ================================================================= */
.celebrity-page-wrapper .hero-identity-card { 
    background-color: var(--dark-bg); 
    color: #fff; 
    padding: 50px 25px 30px; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: var(--card-shadow); 
    position: relative; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

/* --- BREADCRUMBS --- */
.celebrity-page-wrapper #breadcrumbs { 
    position: absolute; 
    top: 15px; 
    left: 20px; 
    font-size: 11px; 
    text-transform: uppercase; 
    color: rgba(255, 255, 255, 0.6) !important; 
    text-align: left; 
    z-index: 10; 
}
.celebrity-page-wrapper #breadcrumbs a { 
    color: #fff; 
    text-decoration: none; 
}
.celebrity-page-wrapper #breadcrumbs .breadcrumb_last { 
    color: var(--brand-pink) !important; 
    font-weight: bold; 
}

/* --- PROFILE IMAGE --- */
.celebrity-page-wrapper .profile-image-wrapper { 
    position: relative; 
    width: 180px; 
    height: 180px; 
    margin: 10px auto 20px; 
}
.celebrity-page-wrapper .profile-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 50%; 
    border: 4px solid var(--brand-pink); 
    background-color: #000; 
}

/* --- RANK BADGE FIX (Pink Star, White Text) --- */
.celebrity-page-wrapper .rank-badge { 
    position: absolute; 
    top: -5px; 
    left: -5px; 
    width: 60px; 
    height: 60px; 
    z-index: 5; 
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); 
}

/* Star Color (Default Pink) */
.celebrity-page-wrapper .rank-badge svg { 
    fill: #ff3366; 
    width: 100%;
    height: 100%;
}

/* Number Color (Always White) */
.celebrity-page-wrapper .rank-badge__number { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-weight: 600; 
    font-size: 12px; 
    color: #ffffff !important; 
    margin-top: 2px; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Special Colors for Top 3 Ranks */
.celebrity-page-wrapper .rank-1 svg { fill: #FFD700; } /* Gold */
.celebrity-page-wrapper .rank-2 svg { fill: #C0C0C0; } /* Silver */
.celebrity-page-wrapper .rank-3 svg { fill: #CD7F32; } /* Bronze */

/* --- CELEBRITY NAME & VERIFIED BADGE FIX --- */
.celebrity-page-wrapper .celebrity-name { 
    color: #fff !important; 
    font-size: 26px; 
    font-weight: 800; 
    margin: 10px 0 5px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    line-height: 1.2; 
    font-family: var(--font-secondary); 
}
.celebrity-page-wrapper .celebrity-name svg { 
    width: 24px;         /* Increased Size slightly */
    height: 24px; 
    fill: #1da1f2;       /* Twitter Blue Color explicit fill */
    color: #1da1f2;      /* Fallback */
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;      /* Prevent shrinking */
}

.celebrity-page-wrapper .profession-label { color: rgba(255,255,255,0.8); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; display: block; }

.celebrity-page-wrapper .btn-engagement { 
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-pink-hover)); 
    border: none; 
    border-radius: 12px;
    padding: 12px 28px; 
    color: #fff; 
    font-weight: 700; 
    font-size: 16px; 
    width: auto; 
    min-width: 200px; 
    margin: 0 auto; 
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4); 
    transition: var(--transition); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    text-decoration: none; 
    font-family: var(--font-primary);
}
.celebrity-page-wrapper .btn-engagement:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 51, 102, 0.5); }
.celebrity-page-wrapper .btn-engagement.pray-btn { background: linear-gradient(135deg, var(--pray-btn-bg), var(--pray-btn-hover-bg)); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.celebrity-page-wrapper .engagement-stats-mini { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 10px; }

.celebrity-page-wrapper .hero-bio-container { background: rgba(255,255,255,0.08); padding: 20px; border-radius: 12px; margin: 25px 0; text-align: left; }
.celebrity-page-wrapper .hero-bio-content p { font-size: 12px !important; color: rgba(255, 255, 255, 0.85) !important; line-height: 1.6 !important; font-weight: 400 !important; }
.celebrity-page-wrapper .hero-bio-text span, .celebrity-page-wrapper .hero-bio-content span, .celebrity-page-wrapper .hero-bio-content { font-size: 12px !important; color: rgba(255,255,255,0.6) !important; letter-spacing: 0.5px !important; font-weight: 300 !important; }
.celebrity-page-wrapper .hero-bio-read-more { background: none; border: none; color: var(--brand-pink); font-size: 12px; font-weight: bold; cursor: pointer; margin-top: 8px; padding: 0; }

.celebrity-page-wrapper .social-section { width: 100%; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: auto; }
.celebrity-page-wrapper .social-label-text, .celebrity-page-wrapper .social-title { display: block; font-size: 10px !important; text-transform: uppercase; color: rgba(255,255,255,0.6) !important; margin-bottom: 12px; letter-spacing: 1px !important; font-weight: 400 !important; }
.celebrity-page-wrapper .social-links-container { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.celebrity-page-wrapper .social-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.celebrity-page-wrapper .social-icon:hover { background: var(--brand-pink); transform: scale(1.15); }
.celebrity-page-wrapper .social-icon svg { width: 18px; height: 18px; fill: #fff; }

/* =================================================================
   5. DATA PILLS (UPDATED V11 - Clean Look & Height Fix)
   ================================================================= */
.celebrity-page-wrapper .data-pills-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.celebrity-page-wrapper .data-pill { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background-color: #ffffff; 
    border: 1px solid #e9ecef; 
    border-radius: 50px; 
    padding: 8px 20px; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    position: relative; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    /* Min height ensures pills with meta don't look wildly different from those without */
    min-height: 50px; 
}

.celebrity-page-wrapper .data-pill:hover { background-color: #fff; border-color: var(--brand-pink); box-shadow: 0 4px 12px rgba(255, 51, 102, 0.15); transform: translateX(5px); }

.celebrity-page-wrapper .pill-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.celebrity-page-wrapper .pill-icon { font-size: 16px; }

/* Updated Pill Label */
.celebrity-page-wrapper .pill-label {
    font-size: 11px;
    font-weight: 700;              
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celebrity-page-wrapper .pill-center-line { flex-grow: 1; border-bottom: 2px dotted #e0e0e0; margin: 0 15px; height: 1px; opacity: 0.6; }

/* Right side adjustment for wrapping text */
.celebrity-page-wrapper .pill-right { 
    text-align: right; 
    flex-shrink: 0; 
    /* Removed white-space:nowrap to allow height adjustment for meta */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

/* --- Data Pills Value Styling (Updated for 2026 Clean Look) --- */
.celebrity-page-wrapper .pill-value {
    display: block;
    font-size: 13px;               /* Size chota kar diya */
    font-weight: 500;              /* Bold khatam kar ke Medium rakha hai */
    color: var(--color-dark);      /* Charcoal Grey color */
    font-family: var(--font-primary); /* 'Inter' font apply kiya */
    line-height: 1.1;              /* Tight line height to control height */
}

/* Zodiac Signs Links */
.celebrity-page-wrapper .pill-value a {
    font-weight: 500;
    font-size: 13px;
    color: var(--brand-pink);      /* Mapped to brand-pink */
    text-decoration: none;
    transition: color 0.2s ease;
}
.celebrity-page-wrapper .pill-value a:hover { color: var(--brand-pink-hover); text-decoration: underline; }

/* Meta text (e.g., "as of 2026") - Clean & Compact */
.celebrity-page-wrapper .pill-meta {
    display: block;
    font-size: 9px;               /* Mazeed chota size for better fit */
    color: var(--color-text-muted); /* Halka grey color */
    font-weight: 400;              /* Bilkul barik font */
    margin-top: 1px;               /* Reduced margin to save height */
    font-family: var(--font-primary);
    line-height: 1;                /* Compact line height */
    opacity: 0.8;
}

/* =================================================================
   6. DYNAMIC EVENT CARD
   ================================================================= */
.celebrity-page-wrapper .dynamic-event-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 30px 25px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 380px; 
}

/* --- Typography --- */
.celebrity-page-wrapper .event-title { 
    font-family: var(--font-secondary) !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: 22px;
    letter-spacing: 1px;
    z-index: 2; 
    text-shadow: none;
    color: var(--golden-text-color); /* Golden Color */
}

/* Birthday card title remains pink */
.celebrity-page-wrapper .birthday-mode .event-title {
    font-size: 20px;
}

.celebrity-page-wrapper .event-hero { 
    font-family: var(--font-secondary) !important;
    font-size: 20px; 
    font-weight: 700; 
    color: #111; 
    margin-bottom: 25px; 
    letter-spacing: -0.5px; 
    z-index: 2; 
    border-bottom: none; 
}

/* --- Counter Container --- */
.celebrity-page-wrapper .digital-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
    z-index: 2;
}

.celebrity-page-wrapper .counter-segment,
.celebrity-page-wrapper .counter-item { 
    background: #1F2937;
    border: 1px solid #374151;
    color: #fff;
    padding: 10px 5px;
    border-radius: 10px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.celebrity-page-wrapper .counter-number,
.celebrity-page-wrapper .counter-value {
    font-family: var(--font-secondary) !important;
    font-size: clamp(14px, 4vw, 26px); 
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
    margin-bottom: 4px;
    text-shadow: none;
}

.celebrity-page-wrapper .counter-label {
    font-family: var(--font-primary) !important;
    font-size: 9px;
    color: #9CA3AF !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.celebrity-page-wrapper .event-footer-pill { 
    background-color: var(--brand-pink) !important;
    color: #ffffff !important; 
    font-size: 14px; 
    font-weight: 700; 
    padding: 12px 20px; 
    border-radius: 50px; 
    margin-top: auto;
    z-index: 2; 
    border: none;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
    width: 100%; 
    display: inline-block;
}

/* =================================================================
   7. MEMORIAL & DECEASED STYLES
   ================================================================= */
.celebrity-page-wrapper .dynamic-event-card.memorial-mode { border-top: 5px solid #999; background: linear-gradient(to bottom, #fff, #f9f9f9); }

/* SAD COLOR for "In Loving Memory" */
.celebrity-page-wrapper .memorial-mode .event-title {
    color: var(--sad-text-color);
    font-size: 25px;
}

.celebrity-page-wrapper .legacy-years { background: #f0f0f0; display: inline-block; padding: 6px 18px; border-radius: 20px; font-weight: 800; font-size: 14px; color: #555; margin-bottom: 20px; z-index: 2; }
.celebrity-page-wrapper .deceased-data-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; border-top: 1px solid #eee; padding-top: 20px; z-index: 2; }

/* SMALLER FONT SIZE for data pills */
.celebrity-page-wrapper .mini-data-pill { 
    display: flex; 
    justify-content: space-between; 
    font-size: 13px; /* Reduced from 14px */
    border-bottom: 1px dashed #e0e0e0; 
    padding-bottom: 8px; 
}
.celebrity-page-wrapper .mini-label { font-weight: 700; color: #888; } /* Bolder label */
.celebrity-page-wrapper .mini-value { font-weight: 600; color: #333; } /* Slightly less bold value */

.celebrity-page-wrapper .mini-label-center { font-size: 12px; color: #555; text-transform: uppercase; display: block; margin-bottom: 10px; z-index: 2; font-weight: 800; letter-spacing: 1px; }

.celebrity-page-wrapper .small-counter .counter-segment {
    padding: 5px 2px;
    background: #2a2a2a;
    min-width: unset; 
}
.celebrity-page-wrapper .small-counter .counter-number {
    font-size: clamp(12px, 2vw, 18px) !important; 
}
.celebrity-page-wrapper .small-counter .counter-label {
    font-size: 7px;
}

/* =================================================================
   8. ANIMATIONS
   ================================================================= */
.celebrity-page-wrapper .dynamic-event-card .emoji-rain { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.celebrity-page-wrapper .dynamic-event-card .emoji-rain span { position: absolute; font-size: 20px; opacity: 0; user-select: none; }

.celebrity-page-wrapper .countdown-mode .emoji-rain span,
.celebrity-page-wrapper .birthday-mode .emoji-rain span { animation: celebration-rain 12s linear infinite; }

@keyframes celebration-rain {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(400px) rotate(360deg); opacity: 0; }
}

.celebrity-page-wrapper .memorial-mode .emoji-rain span { animation: heavenly-float 15s linear infinite; }

@keyframes heavenly-float {
    0% { transform: translateY(120%); opacity: 0; }
    20%, 80% { opacity: 0.6; }
    100% { transform: translateY(-100px); opacity: 0; }
}

.celebrity-page-wrapper .emoji-rain span:nth-child(1) { left: 10%; animation-delay: 0s; }
.celebrity-page-wrapper .emoji-rain span:nth-child(2) { left: 20%; animation-delay: 2s; font-size: 14px; }
.celebrity-page-wrapper .emoji-rain span:nth-child(3) { left: 30%; animation-delay: 5s; }
.celebrity-page-wrapper .emoji-rain span:nth-child(4) { left: 45%; animation-delay: 1s; font-size: 24px; }
.celebrity-page-wrapper .emoji-rain span:nth-child(5) { left: 60%; animation-delay: 4s; }
.celebrity-page-wrapper .emoji-rain span:nth-child(6) { left: 75%; animation-delay: 7s; font-size: 18px; }
.celebrity-page-wrapper .emoji-rain span:nth-child(7) { left: 90%; animation-delay: 3s; }

/* =================================================================
   9. RESPONSIVE BREAKPOINTS
   ================================================================= */
@media (max-width: 1024px) { 
    .celebrity-page-wrapper .hero-col-identity { flex: 0 0 45%; max-width: 45%; } 
}

@media (max-width: 991px) {
    .celebrity-page-wrapper {
        gap: 20px;
        padding: 15px;
    }
    .celebrity-page-wrapper .celebrity-hero-row { 
        flex-direction: column; 
    }
    .celebrity-page-wrapper .hero-col-identity, 
    .celebrity-page-wrapper .hero-col-data { 
        flex: 0 0 100%; 
        max-width: 100%; 
    }
}

@media (max-width: 480px) {
    .celebrity-page-wrapper {
        padding: 10px;
    }
    .celebrity-page-wrapper .celebrity-name { font-size: 22px; }
    .celebrity-page-wrapper .profile-image-wrapper { width: 140px; height: 140px; }
    .celebrity-page-wrapper .hero-identity-card { padding: 40px 15px 25px; }
    
    .celebrity-page-wrapper .data-pill { padding: 10px 15px; }
    .celebrity-page-wrapper .pill-label { font-size: 11px; }
    .celebrity-page-wrapper .pill-value { font-size: 14px; }
    
    .celebrity-page-wrapper .event-hero { font-size: 22px; }
    .celebrity-page-wrapper .counter-number { font-size: 20px; }
}
/* Icons ko black aur clean banayein */
.celebrity-page-wrapper .pill-icon i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Flag ko colorful aur sharp rakhein */
.celebrity-page-wrapper .pill-flag-icon {
    width: 22px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    display: inline-block;
}

/* Zodiac icons ko thora highlight karein */
.celebrity-page-wrapper .pill-value i {
    font-size: 14px;
    vertical-align: middle;
}