/**
 * Dashboard Usage Card Component
 * Usage tracking card with circular progress and details
 *
 * @package BeepBeep_AI
 * @since 5.0.0
 */

/* ==================================================
   USAGE CARD CIRCULAR (Horizontal Layout)
   ================================================== */

.bbai-usage-card-circular {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 0;
    border: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.bbai-usage-card-circular:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
}

.bbai-usage-circular-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.bbai-usage-circular-link {
    margin-top: 0;
}

/* ==================================================
   USAGE CARD (Vertical Layout)
   ================================================== */

.bbai-usage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 32px;
    justify-content: space-between;
    position: relative;
    align-self: stretch !important;
    height: 100% !important;
}

.bbai-usage-card--full-width {
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

.bbai-usage-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
}

/* ==================================================
   USAGE RING WRAPPER
   ================================================== */

.bbai-usage-ring-wrapper {
    position: relative;
    display: inline-block;
}

.bbai-usage-tooltip {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    color: #6b7280;
    transition: all 0.2s ease;
    padding: 0;
}

.bbai-usage-tooltip:hover {
    background: #e5e7eb;
    color: #374151;
}

.bbai-usage-tooltip svg {
    width: 14px;
    height: 14px;
}

/* ==================================================
   USAGE LINKS
   ================================================== */

.bbai-usage-upgrade-link,
.bbai-usage-billing-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: #7B61FF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    padding-top: 4px;
}

.bbai-usage-upgrade-link:hover,
.bbai-usage-billing-link:hover {
    color: #6B4FE8;
    text-decoration: underline;
}

.bbai-upgrade-inline {
    color: var(--bbai-info);
    text-decoration: none;
    font-weight: var(--bbai-font-semibold);
}

.bbai-upgrade-inline:hover {
    text-decoration: underline;
}

/* ==================================================
   USAGE DETAILS
   ================================================== */

.bbai-usage-details {
    flex: 1;
}

.bbai-usage-text {
    font-size: 15px;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.5;
    font-weight: 500;
}

.bbai-usage-text strong {
    font-weight: 600;
    color: #111827;
}

.bbai-usage-microcopy {
    font-size: 13px;
    color: #677388;
    margin-top: 4px;
}

/* ==================================================
   CIRCULAR PROGRESS OVERRIDES (Dashboard Context)
   ================================================== */

.bbai-usage-card .bbai-circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

/* ==================================================
   GRADIENT DEFINITION
   ================================================== */

.bbai-circular-progress-svg defs {
    display: none;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 768px) {
    .bbai-usage-card-circular {
        padding: 28px 24px;
        margin-bottom: 32px !important;
        width: 100% !important;
    }

    .bbai-usage-circular-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 28px;
    }

    .bbai-usage-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .bbai-usage-card-title {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .bbai-usage-card-circular {
        padding: 24px 20px;
    }
}
