/* ========================================
   CSS do componente PlanBadge
   Badge do plano ativo no header
   ======================================== */

.plan-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-decoration: none;
}

.plan-badge:hover {
    transform: translateY(-1px);
}

/* Estilos por tipo */
.plan-badge--outline {
    background: transparent;
    border: 2px solid var(--badge-color);
    color: var(--badge-color);
}

.plan-badge--filled {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #6b7280;
}

.plan-badge--gradient {
    background: linear-gradient(135deg, var(--badge-color), color-mix(in srgb, var(--badge-color) 70%, white));
    color: white;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--badge-color) 40%, transparent);
}

.plan-badge--empty {
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
}

.plan-badge--empty:hover {
    background: #e5e7eb;
}

.plan-badge__icon {
    font-size: 14px;
}

/* Tooltip */
.plan-badge__tooltip {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1000;
}

.plan-badge:hover .plan-badge__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #1e3a5f;
}

.tooltip-content {
    padding: 12px 16px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: #374151;
}

.tooltip-row:last-child {
    margin-bottom: 0;
}

.tooltip-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.tooltip-progress__bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.tooltip-warning {
    background: #fef3c7;
    color: #92400e;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 8px;
}

.tooltip-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.tooltip-footer a {
    font-size: 13px;
    color: #0F766E;
    text-decoration: none;
}

.tooltip-footer a:hover {
    text-decoration: underline;
}
