/* =====================================================================
   psychic4cast - Modern UI layer
   Fixes Bootstrap-5 utility classes used in views while running BS 4.1.3
   and provides the unified advisor card design.
   ===================================================================== */

:root {
    --p4c-primary: #667eea;
    --p4c-primary-dark: #764ba2;
    --p4c-accent: #f6ad55;
    --p4c-success: #38a169;
    --p4c-warning: #dd6b20;
    --p4c-muted: #718096;
    --p4c-text: #2d3748;
    --p4c-card-bg: #ffffff;
    --p4c-radius: 18px;
    --p4c-shadow: 0 6px 24px rgba(45, 55, 72, 0.10);
    --p4c-shadow-hover: 0 14px 40px rgba(102, 126, 234, 0.22);
    --p4c-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ---------------------------------------------------------------------
   Bootstrap 5 utility shims (site runs Bootstrap 4.1.3)
   ------------------------------------------------------------------ */
.g-4 { margin-left: -12px; margin-right: -12px; }
.g-4 > [class*="col"] { padding-left: 12px; padding-right: 12px; }
.top-50 { top: 50% !important; }
.start-50 { left: 50% !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }
.ms-2 { margin-left: 0.5rem !important; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.d-inline-flex { display: inline-flex !important; }
.fw-bold { font-weight: 700 !important; }

/* ---------------------------------------------------------------------
   Advisor cards
   ------------------------------------------------------------------ */
.p4c-card {
    background: var(--p4c-card-bg);
    border-radius: var(--p4c-radius);
    box-shadow: var(--p4c-shadow);
    height: 100%;
    padding: 26px 18px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.p4c-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--p4c-shadow-hover);
}

.p4c-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
}
.p4c-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--p4c-primary);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}
.p4c-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--p4c-primary);
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 34px;
}
.p4c-status-dot {
    position: absolute;
    right: 2px;
    bottom: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #a0aec0;
}
.p4c-status-dot.online { background: var(--p4c-success); }
.p4c-status-dot.busy   { background: var(--p4c-warning); }

.p4c-name {
    font-weight: 700;
    color: var(--p4c-text);
    margin: 0 0 6px;
    font-size: 1.1rem;
}
.p4c-price {
    display: inline-block;
    background: var(--p4c-gradient);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}
.p4c-badges { margin-bottom: 10px; min-height: 22px; }
.p4c-badges .badge { font-size: 11px; letter-spacing: 0.4px; }

.p4c-desc {
    color: var(--p4c-muted);
    font-size: 0.85rem;
    line-height: 1.45;
    flex-grow: 1;
    min-height: 40px;
    margin-bottom: 14px;
}

.p4c-actions { margin-top: auto; }
.p4c-actions .btn { border-radius: 50px; font-weight: 600; }
.p4c-actions .btn-block { width: 100%; }

.p4c-btn-primary {
    background: var(--p4c-gradient);
    border: none;
    color: #fff !important;
}
.p4c-btn-primary:hover { opacity: 0.92; color: #fff; }
.p4c-btn-outline {
    background: transparent;
    border: 1.5px solid var(--p4c-primary) !important;
    color: var(--p4c-primary) !important;
}
.p4c-btn-outline:hover {
    background: var(--p4c-gradient);
    color: #fff !important;
}

.p4c-new-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* ---------------------------------------------------------------------
   Category menu + filters
   ------------------------------------------------------------------ */
.category-menu .btn { border-radius: 50px; margin: 4px; }
.category-menu .btn-primary { background: var(--p4c-gradient); border: none; }
.category-menu .btn-outline-primary {
    border-color: var(--p4c-primary);
    color: var(--p4c-primary);
}
.category-menu .btn-outline-primary:hover {
    background: var(--p4c-gradient);
    color: #fff;
}

/* Mobile: stack category buttons nicely */
@media (max-width: 576px) {
    .category-menu .btn-group,
    .category-menu .btn { display: block; width: 100%; }
    .category-menu .btn { margin: 4px 0; }
    .p4c-card { padding: 20px 14px 16px; }
}
