﻿/* ========================================
   NAME DETAILS PAGE - MATERNAL & ATTRACTIVE DESIGN
   Updated to match Browse Names maternal aesthetic
   ======================================== */

/* ========================================
   COLOR VARIABLES - MATERNAL PALETTE
   ======================================== */
:root {
    /* Brand Colors */
    --brand-primary: #D4A574;
    --brand-secondary: #E8B5A5;
    --brand-accent: #F5E6D3;
    --brand-text: #8B5A3C;
    --brand-light: #FFF8F0;
    --brand-rose: #F4C2C2;
    /* UI Colors */
    --success-color: #A8C686;
    --info-color: #93B5C4;
    --warning-color: #FFA500;
    --muted-color: #999;
    /* Spacing & Effects */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --box-shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
    /* Fonts */
    --sinhala-font: 'Noto Sans Sinhala', 'Iskoola Pota', sans-serif;
}

/* Top Navigation Bar */
.details-top-bar {
    background: white;
    border-bottom: 2px solid var(--brand-accent);
    padding: 15px 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back-browse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

    .btn-back-browse:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
        color: white;
        text-decoration: none;
    }

.top-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-top-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: white;
    border: 2px solid var(--brand-accent);
    color: var(--brand-text);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

    .btn-top-action:hover {
        border-color: var(--brand-primary);
        background: var(--brand-light);
        transform: translateY(-2px);
    }

.btn-favorite-top.active,
.btn-favorite-top:has(.fa-heart) {
    border-color: #dc3545;
    color: #dc3545;
}

    .btn-favorite-top.active:hover {
        background: rgba(220, 53, 69, 0.1);
    }

/* Name Header Card */
.name-header-card-new {
    background: white;
    border: 1px solid var(--brand-accent);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow-light);
    position: relative;
    overflow: hidden;
}

    .name-header-card-new::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 50%, var(--brand-rose) 100%);
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    }

.name-title-main {
    margin-bottom: 20px;
}

.name-english-large {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand-text);
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 20px;
    font-family: var(--sinhala-font);
}

.name-sinhala-small {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--muted-color);
}

.name-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* ========================================
   IMPROVED BADGE STYLES - Cute & Maternal with Emojis
   ======================================== */

.name-badges-improved {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Base badge style - elegant labels not buttons */
.badge-info {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .badge-info::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left 0.5s;
    }

    .badge-info:hover::before {
        left: 100%;
    }

/* Emoji styling */
.badge-emoji {
    font-size: 1.3rem;
    line-height: 1;
}

/* Gender badges - Soft pastels with cute emojis */
.badge-gender-boy {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1e40af;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    border: 2px solid #93C5FD;
}

.badge-gender-girl {
    background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%);
    color: #be123c;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.2);
    border: 2px solid #FDA4AF;
}

/* Category badge - Soft and elegant */
.badge-category-style {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
    box-shadow: 0 4px 15px rgba(252, 182, 159, 0.3);
    border: 2px solid rgba(252, 182, 159, 0.5);
}

/* Premium badge - Luxurious gold */
.badge-premium-style {
    background: linear-gradient(135deg, #ffd89b 0%, #ff9a56 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 154, 86, 0.4);
    animation: subtle-glow 3s ease-in-out infinite;
    border: 2px solid #ffb347;
}

/* Popular badge - Vibrant and energetic */
.badge-popular-style {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
    border: 2px solid #ff8787;
}

/* Subtle animations for premium and popular */
@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 154, 86, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(255, 154, 86, 0.6);
    }
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

/* Hover effects for all badges */
.badge-info:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.badge-gender-boy:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #BFDBFE 0%, #93C5FD 100%);
}

.badge-gender-girl:hover {
    box-shadow: 0 6px 20px rgba(251, 113, 133, 0.3);
    background: linear-gradient(135deg, #FBCFE8 0%, #FDA4AF 100%);
}

.badge-category-style:hover {
    box-shadow: 0 6px 20px rgba(252, 182, 159, 0.4);
}

.badge-premium-style:hover {
    box-shadow: 0 6px 20px rgba(255, 154, 86, 0.6);
}

.badge-popular-style:hover {
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.6);
}

.view-stats-inline {
    color: var(--muted-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .view-stats-inline i {
        color: var(--brand-primary);
    }

/* Details Grid Layout */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 40px;
}

.details-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Info Cards */
.info-card {
    background: white;
    border: 1px solid var(--brand-accent);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--box-shadow-light);
    transition: all var(--transition-speed) ease;
}

    .info-card:hover {
        box-shadow: var(--box-shadow-heavy);
    }

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .card-title i {
        color: var(--brand-primary);
    }

.card-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

/* Similar Names - IMPROVED CARD LAYOUT with Emojis */
.similar-names-card-improved {
    background: white;
    border: 1px solid var(--brand-accent);
    border-radius: var(--border-radius-md);
    padding: 25px;
    box-shadow: var(--box-shadow-light);
}

.similar-names-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.similar-name-card-item {
    display: block;
    padding: 20px;
    background: var(--brand-light);
    border: 2px solid var(--brand-accent);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

    .similar-name-card-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
        opacity: 0;
        transition: opacity var(--transition-speed) ease;
    }

    .similar-name-card-item:hover {
        border-color: var(--brand-primary);
        background: white;
        transform: translateX(5px);
        box-shadow: 0 4px 15px rgba(212, 165, 116, 0.2);
        text-decoration: none;
    }

        .similar-name-card-item:hover::before {
            opacity: 1;
        }

.similar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.similar-name-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-text);
    margin: 0;
}

/* Similar names emoji badges */
.similar-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.similar-emoji {
    font-size: 1.4rem;
    line-height: 1;
}

.similar-badge.badge-boy {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}

.similar-badge.badge-girl {
    background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%);
}

.similar-name-sinhala-text {
    font-family: var(--sinhala-font);
    font-size: 1rem;
    color: var(--muted-color);
    margin-bottom: 8px;
}

.similar-meaning-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.similar-card-footer {
    display: flex;
    justify-content: flex-end;
}

.view-link {
    color: var(--brand-primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition-speed) ease;
}

.similar-name-card-item:hover .view-link {
    gap: 8px;
}

/* CTA Cards - IMPROVED ATTRACTIVE DESIGN */
.cta-card-attractive {
    background: linear-gradient(135deg, var(--brand-light) 0%, white 100%);
    border: 2px solid var(--brand-primary);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

    .cta-card-attractive::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-secondary) 50%, var(--brand-rose) 100%);
    }

    .cta-card-attractive:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(212, 165, 116, 0.3);
    }

.cta-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.3);
    animation: gentle-pulse 3s ease-in-out infinite;
}

    .cta-icon-large.premium-icon {
        background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
        box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    }

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1rem;
    color: var(--muted-color);
    margin-bottom: 20px;
}

.cta-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

    .cta-features-list li {
        padding: 10px 15px;
        background: white;
        border-radius: 8px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 0.95rem;
        color: var(--brand-text);
        transition: all var(--transition-speed) ease;
    }

        .cta-features-list li:hover {
            transform: translateX(5px);
            background: var(--brand-light);
        }

        .cta-features-list li i {
            color: var(--success-color);
            font-size: 1.1rem;
        }

        .cta-features-list li .fa-star {
            color: #FFD700;
        }

.btn-cta-signup,
.btn-cta-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta-signup {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
}

    .btn-cta-signup:hover {
        background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
        color: white;
        text-decoration: none;
    }

.btn-cta-premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
}

    .btn-cta-premium:hover {
        background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
        color: white;
        text-decoration: none;
    }

.cta-bonus-badge {
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(168, 198, 134, 0.2) 0%, rgba(168, 198, 134, 0.1) 100%);
    border: 2px solid var(--success-color);
    border-radius: 50px;
    color: var(--brand-text);
    font-weight: 600;
    font-size: 0.95rem;
    animation: gentle-pulse 2s ease-in-out infinite;
}

/* Buy Credits Card */
.buy-credits-card-attractive {
    background: linear-gradient(135deg, #fff5e6 0%, white 100%);
    border: 2px solid #FFA500;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: 0 8px 30px rgba(255, 165, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

    .buy-credits-card-attractive::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    }

    .buy-credits-card-attractive:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(255, 165, 0, 0.3);
    }

.credits-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    animation: gentle-pulse 3s ease-in-out infinite;
}

.credits-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-text);
    margin-bottom: 20px;
}

.credits-price-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.1);
}

.price-label {
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-bottom: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFA500;
    line-height: 1;
}

.btn-buy-credits {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
}

    .btn-buy-credits:hover {
        background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 165, 0, 0.4);
        color: white;
        text-decoration: none;
    }

.gift-badge {
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 165, 0, 0.1);
    border: 2px dashed #FFA500;
    border-radius: 50px;
    color: var(--brand-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .gift-badge i {
        color: #FFA500;
        font-size: 1.1rem;
    }

/* ========================================
   PRONUNCIATION SECTION STYLES
   ======================================== */

.pronunciation-container {
    position: relative;
}

.pronunciation-sinhala-name {
    font-family: var(--sinhala-font);
    font-size: 1.1rem;
    color: var(--brand-primary);
    font-weight: 700;
    margin-left: 5px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(212, 165, 116, 0.2) 100%);
    border-radius: 8px;
    border-left: 3px solid var(--brand-primary);
}

.pronunciation-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-text);
    margin-bottom: 20px;
    padding: 15px;
    background: var(--brand-light);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--brand-primary);
}

.pronunciation-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn-speak {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--brand-accent);
    background: white;
    color: var(--brand-text);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    justify-content: center;
}

    .btn-speak:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn-speak:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

    .btn-speak i {
        font-size: 1.2rem;
    }

.btn-speak-primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

    .btn-speak-primary:hover:not(:disabled) {
        background: linear-gradient(135deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
        color: white;
    }

.btn-speak-slow {
    border-color: var(--success-color);
    color: var(--success-color);
}

    .btn-speak-slow:hover:not(:disabled) {
        background: var(--success-color);
        color: white;
        border-color: var(--success-color);
    }

.btn-speak .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-speak.speaking {
    animation: pulse-speak 0.8s ease-in-out infinite;
}

    .btn-speak.speaking.btn-speak-primary {
        background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
        box-shadow: 0 0 20px rgba(212, 165, 116, 0.6);
    }

    .btn-speak.speaking.btn-speak-slow {
        background: var(--success-color);
        color: white;
        border-color: var(--success-color);
        box-shadow: 0 0 20px rgba(168, 198, 134, 0.6);
    }

@keyframes pulse-speak {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.pronunciation-error {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: var(--border-radius-sm);
    color: #dc3545;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pronunciation-error i {
        font-size: 1.1rem;
    }

.pronunciation-info {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(212, 165, 116, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--muted-color);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .pronunciation-info i {
        color: var(--brand-primary);
    }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .details-top-bar {
        padding: 12px 0;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .btn-back-browse {
        justify-content: center;
    }

    .top-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-top-action {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }

    .favorite-text {
        display: none;
    }

    .name-header-card-new {
        padding: 25px;
    }

    .name-english-large {
        font-size: 2.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .name-sinhala-small {
        font-size: 1.5rem;
    }

    .name-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-card {
        padding: 20px;
    }

    .cta-card-attractive,
    .buy-credits-card-attractive {
        padding: 25px;
    }

    .cta-icon-large,
    .credits-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .cta-title,
    .credits-title {
        font-size: 1.3rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .badge-info {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .badge-emoji {
        font-size: 1.2rem;
    }

    .name-badges-improved {
        justify-content: center;
        width: 100%;
    }

    .pronunciation-actions {
        flex-direction: column;
    }

    .btn-speak {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }

    .pronunciation-text {
        font-size: 1.1rem;
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .name-english-large {
        font-size: 2rem;
    }

    .name-sinhala-small {
        font-size: 1.3rem;
    }

    .name-badges-improved {
        justify-content: center;
        width: 100%;
    }

    .similar-name-card-item {
        padding: 15px;
    }

    .similar-name-title {
        font-size: 1.1rem;
    }

    .badge-info {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .badge-emoji {
        font-size: 1.1rem;
    }

    .similar-badge {
        width: 35px;
        height: 35px;
    }

    .similar-emoji {
        font-size: 1.2rem;
    }

    .btn-speak {
        font-size: 0.95rem;
        padding: 10px 20px;
    }

    .pronunciation-text {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .details-top-bar,
    .details-sidebar,
    .btn-back-browse,
    .top-actions,
    .btn-top-action {
        display: none !important;
    }

    .name-header-card-new {
        box-shadow: none;
        border: 2px solid #000;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card {
    animation: fadeIn 0.5s ease-out;
}

    .info-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .info-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .info-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .info-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .info-card:nth-child(5) {
        animation-delay: 0.5s;
    }
    /* ============================================
   ENHANCED SHARE SECTION & SIMILAR NAMES
   Add these to your NameDetailsPageStyles.css
   ============================================ */

    /* ===========================
   SHARE SECTION - MODERN DESIGN
   =========================== */

    .info-card.sidebar-card .card-title {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 700;
        margin-bottom: 20px;
    }

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .btn-share::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-share:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-share i {
        font-size: 20px;
        position: relative;
        z-index: 1;
    }

    .btn-share span {
        position: relative;
        z-index: 1;
    }

/* Facebook Button */
.btn-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c5fcd 100%);
    color: white;
}

    .btn-facebook:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    }

/* WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ea952 100%);
    color: white;
}

    .btn-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }

/* Twitter Button */
.btn-twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
    color: white;
}

    .btn-twitter:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
    }

/* Share Link Section */
.share-link-section {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.share-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    color: #666;
    transition: all 0.3s ease;
}

    .share-link-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.btn-copy-link {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

    .btn-copy-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .btn-copy-link i {
        margin-right: 6px;
    }

    /* Copy success animation */
    .btn-copy-link.copied {
        background: linear-gradient(135deg, #00b894 0%, #00a884 100%);
        animation: successPulse 0.5s ease;
    }

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===========================
   SIMILAR NAMES SECTION - ENHANCED
   =========================== */

.similar-names-section {
    margin-top: 50px;
    padding: 40px 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(102, 126, 234, 0.02) 50%, transparent 100%);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

    .section-title i {
        color: #ff6b6b;
        margin-right: 10px;
        animation: heartbeat 1.5s infinite;
    }

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    10%, 30% {
        transform: scale(1.1);
    }

    20%, 40% {
        transform: scale(1);
    }
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.similar-names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.similar-name-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

    /* Animated gradient border on hover */
    .similar-name-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 16px;
        padding: 2px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
        background-size: 200% 200%;
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
        animation: gradientShift 3s ease infinite;
    }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.similar-name-card:hover::before {
    opacity: 1;
}

.similar-name-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.similar-name-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

    .similar-name-header h4 {
        font-size: 22px;
        font-weight: 700;
        color: #2c3e50;
        margin: 0 0 6px 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.similar-name-sinhala {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 500;
    margin: 0;
}

.similar-gender-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
    transition: all 0.3s ease;
}

    .similar-gender-badge.boy,
    .similar-gender-badge.male {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
    }

.similar-name-card:hover .similar-gender-badge {
    transform: rotate(360deg) scale(1.1);
}

.similar-meaning {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-view-similar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

    .btn-view-similar::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn-view-similar:hover::before {
        width: 300px;
        height: 300px;
    }

    .btn-view-similar:hover {
        transform: translateX(5px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        color: white;
        text-decoration: none;
    }

    .btn-view-similar i {
        transition: transform 0.3s ease;
        position: relative;
        z-index: 1;
    }

    .btn-view-similar:hover i {
        transform: translateX(5px);
    }

    .btn-view-similar span {
        position: relative;
        z-index: 1;
    }

/* Save to Favorites CTA at bottom of similar names */
.similar-names-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    border: 2px dashed #667eea;
}

    .similar-names-cta p {
        font-size: 16px;
        color: #555;
        margin-bottom: 16px;
    }

    .similar-names-cta .btn-save-favorite {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 32px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        text-decoration: none;
        border-radius: 30px;
        font-weight: 700;
        font-size: 16px;
        transition: all 0.3s ease;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    }

        .similar-names-cta .btn-save-favorite:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
            color: white;
            text-decoration: none;
        }

/* Mobile Responsive */
@media (max-width: 768px) {
    .similar-names-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .similar-name-card {
        padding: 20px;
    }

    .share-buttons {
        gap: 10px;
    }

    .btn-share {
        padding: 12px 16px;
        font-size: 14px;
    }

    .share-link-section {
        flex-direction: column;
    }

    .btn-copy-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .similar-name-header h4 {
        font-size: 18px;
    }

    .similar-gender-badge {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .btn-view-similar {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility */
.btn-share:focus,
.btn-copy-link:focus,
.btn-view-similar:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .share-buttons,
    .share-link-section,
    .similar-names-cta {
        display: none;
    }

    .similar-name-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Loading animation for similar names */
.similar-names-grid.loading .similar-name-card {
    opacity: 0;
    transform: translateY(20px);
}

.similar-names-grid .similar-name-card {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

    .similar-names-grid .similar-name-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .similar-names-grid .similar-name-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .similar-names-grid .similar-name-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .similar-names-grid .similar-name-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .similar-names-grid .similar-name-card:nth-child(5) {
        animation-delay: 0.5s;
    }

    .similar-names-grid .similar-name-card:nth-child(6) {
        animation-delay: 0.6s;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}