﻿/* =========================================
   NEW ASTROLOGER CARD STYLES (Production Grade)
   ========================================= */

/* --- Base Card Container --- */
.astrologer-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px; /* Softer, modern radius */
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Hover Lift Effect */
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
    border-color: #e3f2fd; /* Subtle blue border on hover */
}

/* --- Profile Avatar --- */
.card-avatar,
.card-fallback-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    /* Soft shadow to make it pop off the card */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    transition: transform 0.3s ease;
}

.card-fallback-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 auto;
}

/* Zoom effect on image hover */
.astrologer-card:hover .card-avatar {
    transform: scale(1.05);
}

/* --- Verified Badge --- */

.avatar-wrapper {
    width: 85px;
    height: 85px;
}

.verified-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translate(20%, 20%); /* pushes it slightly outside */
    width: 22px;
    height: 22px;
    background: #1c84c6;
    color: white;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 5;
}

/* --- Live Status Badge --- */
.status-badge.live {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #10b981 !important; /* Solid Green */
    color: #ffffff !important; /* White Text */
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #059669 !important; /* Darker Green Border */
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3); /* Green Shadow */
    display: flex;
    letter-spacing: 0.5px;
    align-items: center;
    gap: 5px;
    z-index: 10;    
}
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ffffff !important;
    border-radius: 50%;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* --- Typography & Layout --- */
.specialty-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4b5563;
    font-size: 0.8rem;
    background-color: #f9fafb;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    max-width: 100%;
}

.x-small {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Buttons --- */
/* Custom Primary Button for Card */
.astrologer-card .btn-primary {
    background-color: #1c84c6;
    border-color: #1c84c6;
    transition: all 0.2s ease;
}

    .astrologer-card .btn-primary:hover {
        background-color: #166ba0;
        border-color: #166ba0;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(28, 132, 198, 0.3);
    }

/* Custom Secondary Button (Chat/Call) */
.astrologer-card .btn-outline-secondary {
    border: 1px solid #e5e7eb;
    color: #374151;
}

    .astrologer-card .btn-outline-secondary:hover {
        background-color: #f3f4f6;
        border-color: #d1d5db;
        color: #111827;
    }

/* --- Utility Colors --- */
.bg-blue-subtle {
    background-color: #e3f2fd !important;
    color: #1976d2 !important;
}

.bg-gray-100 {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
}
