/* Scoped styles for Pricing.razor - Complete with all extracted inline styles */

/* === LAYOUT CONTAINERS === */
.pricing-page-container {
    background-color: var(--antologa-white);
    min-height: 100%;
    min-width: 100% !important;
    display: flex;
    flex-direction: column;
}

.pricing-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    width: 100%;
    margin-bottom: 5vh;
}

.pricing-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pricing-grid {
    display: flex;
    flex-direction: row;
    flex: 0;
}

    .pricing-grid .mud-grid {
        flex-wrap: wrap !important;    /* allow wrapping — prevents horizontal overflow */
        width: 100%;
        align-content: center;
    }

/* === HEADER SECTION === */
.pricing-header {
    margin-bottom: 3rem;
    text-align: center;
}

.pricing-header-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    color: var(--antologa-dark) !important;
}

.pricing-header-subtitle {
    font-family: 'Nunito', sans-serif !important;
    color: var(--antologa-gray) !important;
}

/* === TYPOGRAPHY === */
.pricing-font-inter {
    font-family: 'Inter', sans-serif !important;
}

.pricing-font-nunito {
    font-family: 'Nunito', sans-serif !important;
}

.pricing-fw-bold {
    font-weight: 700 !important;
}

/* === COLOR UTILITIES === */
.pricing-text-dark {
    color: var(--antologa-dark) !important;
}

.pricing-text-gray {
    color: var(--antologa-gray) !important;
}

.pricing-text-primary {
    color: var(--antologa-primary) !important;
}

.pricing-bg-light-gray {
    background-color: var(--antologa-light-gray) !important;
}

/* === SPACING UTILITIES === */
.pricing-mt-6 {
    margin-top: 1.5rem;
}

.pricing-mt-4 {
    margin-top: 1rem;
}

.pricing-mt-1 {
    margin-top: 0.25rem;
}

.pricing-mt-auto {
    margin-top: auto;
}

.pricing-mb-12 {
    margin-bottom: 3rem;
}

.pricing-mb-8 {
    margin-bottom: 2rem;
}

.pricing-mb-6 {
    margin-bottom: 1.5rem;
}

.pricing-mb-2 {
    margin-bottom: 0.5rem;
}

.pricing-ml-2 {
    margin-left: 0.5rem;
}

.pricing-py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pricing-py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pricing-py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.pricing-px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pricing-px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.pricing-pa-4 {
    padding: 1rem;
}

.pricing-pb-1 {
    padding-bottom: 0.25rem;
}

/* === FLEXBOX UTILITIES === */
.pricing-d-flex {
    display: flex !important;
}

.pricing-d-block {
    display: block !important;
}

.pricing-flex-column {
    flex-direction: column !important;
}

.pricing-flex-grow-1 {
    flex-grow: 1 !important;
}

.pricing-flex-shrink-0 {
    flex-shrink: 0 !important;
}

.pricing-flex-wrap {
    flex-wrap: wrap !important;
}

.pricing-align-center {
    align-items: center !important;
}

.pricing-align-start {
    align-items: flex-start !important;
}

.pricing-justify-center {
    justify-content: center !important;
}

.pricing-w-100 {
    width: 100% !important;
}

.pricing-text-center {
    text-align: center !important;
}

/* === TOGGLE STYLING === */
.pricing-toggle-container {
    border: 1px solid #e0e0e0;
    border-radius: 9999px;
}

.pricing-toggle-button {
    border-radius: 9999px;
    font-family: 'Inter', sans-serif !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.pricing-transition-fast {
    transition: all 0.3s ease;
}

/* === BILLING TOGGLE === */
.pricing-billing-toggle {
    margin-top: 1rem;
}

.pricing-billing-label {
    font-family: 'Nunito', sans-serif !important;
}

.pricing-billing-label-active {
    color: var(--antologa-dark) !important;
    font-weight: 700;
}

.pricing-billing-label-inactive {
    color: var(--antologa-gray) !important;
}

/* === CARD STYLING === */
.pricing-card {
    border: 1px solid var(--antologa-light-gray);
    border-radius: 1rem;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: visible;   /* keep visible so the badge shows above the card top */
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;        /* allow card to shrink in flex/grid context */
    padding: 1rem;
    box-sizing: border-box;
}

    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border-color: var(--antologa-primary) !important;
    }

/* === POPULAR CARD STYLING === */
.pricing-card-popular {
    border: 2px solid var(--antologa-primary) !important;
    box-shadow: 0 8px 24px rgba(7, 130, 130, 0.1);
}

.pricing-badge-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--antologa-contrast);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    font-family: 'Nunito', sans-serif !important;
}

/* === CARD CONTENT === */
.pricing-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;          /* allow flex children to shrink below content size */
    word-break: break-word;
    overflow-wrap: break-word;
}

.pricing-card-title {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: var(--antologa-gray) !important;
    margin-bottom: 1.5rem;
    font-family: 'Nunito', sans-serif !important;
    min-height: 2.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* === PRICE DISPLAY === */
.pricing-price-container {
    margin-bottom: 1.5rem;
    margin-top: auto;
    flex-wrap: wrap !important;  /* let /month drop below if the card is too narrow */
    align-items: flex-end !important;
    gap: 2px 4px;
    min-width: 0;
}

.pricing-price-amount {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    color: var(--antologa-dark) !important;
    flex-shrink: 0;
}

.pricing-price-period {
    color: var(--antologa-gray) !important;
    padding-bottom: 0.25rem;
    font-family: 'Nunito', sans-serif !important;
    flex-shrink: 0;
    white-space: nowrap;
}

/* === BUTTON STYLING === */
.pricing-btn-action {
    text-transform: none;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
}

    .pricing-btn-action:hover {
        box-shadow: 0 4px 12px rgba(7, 130, 130, 0.2);
    }

/* === FEATURES LIST === */
.pricing-features-list {
    min-width: 0;
}

.pricing-feature-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    min-width: 0;
}

.pricing-feature-icon {
    color: var(--antologa-primary) !important;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.pricing-feature-text {
    font-family: 'Nunito', sans-serif !important;
    color: var(--antologa-dark) !important;
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1279px) {

    .pricing-toggle-container {
        flex-direction: column;
        border-radius: 16px !important;
    }

        .pricing-toggle-container .mud-button-root {
            width: 100%;
            margin-bottom: 4px;
        }
}

@media (max-width: 959px) {
    .pricing-card {
        margin-bottom: 1rem;
    }

    .pricing-header {
        margin-bottom: 2rem;
    }

    .pricing-grid {
        flex-direction: column;
    }
}

/* === ANIMATIONS === */
@keyframes pricing-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pricing-card-popular:hover {
    animation: pricing-pulse 1s ease-in-out infinite;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */

/* === SECTION WRAPPER === */
.pricing-compare-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--antologa-light-gray);
}

.pricing-compare-heading {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700;
    color: var(--antologa-dark) !important;
    margin-bottom: 0.5rem;
}

.pricing-compare-subtitle {
    font-family: 'Nunito', sans-serif !important;
    color: var(--antologa-gray) !important;
    margin-bottom: 2rem;
}

/* === SCROLLABLE WRAPPER (mobile) === */
.pricing-compare-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    border: 1px solid #e0e0e0;
}

/* === TABLE BASE === */
.pricing-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;   /* prevents squish on very small screens */
    font-family: 'Nunito', sans-serif;
}

/* === HEADER COLUMNS === */
.pricing-compare-table thead tr {
    background-color: var(--antologa-light-gray);
}

.pct-col-feature {
    text-align: left;
    padding: 0.875rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--antologa-gray);
    width: 30%;
    min-width: 160px;
}

.pct-col-plan {
    text-align: center;
    padding: 0.875rem 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--antologa-dark);
    border-left: 1px solid #e0e0e0;
}

.pct-col-popular {
    text-align: center;
    padding: 0.875rem 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--antologa-primary);
    border-left: 1px solid #e0e0e0;
    background-color: rgba(7, 130, 130, 0.06);
    position: relative;
}

    /* top accent line on popular column header */
    .pct-col-popular::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background-color: var(--antologa-primary);
        border-radius: 0 0 2px 2px;
    }

/* === PLAN NAME / PRICE IN HEADER === */
.pct-plan-name {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.pct-plan-price {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--antologa-gray);
    font-family: 'Nunito', sans-serif;
}

.pct-col-popular .pct-plan-price {
    color: var(--antologa-primary);
}

/* === BODY ROWS === */
.pricing-compare-table tbody tr {
    border-top: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

.pricing-compare-table tbody tr:hover {
    background-color: #fafafa;
}

.pricing-compare-table tbody tr:nth-child(even) {
    background-color: #fbfbfb;
}

.pricing-compare-table tbody tr:nth-child(even):hover {
    background-color: #f5f5f5;
}

/* === FEATURE NAME CELL (left column) === */
.pct-feature-name {
    padding: 0.75rem 1.25rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--antologa-dark);
    text-align: left;
}

/* === VALUE CELLS === */
.pct-cell {
    padding: 0.75rem 0.75rem;
    text-align: center;
    vertical-align: middle;
    border-left: 1px solid #f0f0f0;
    font-size: 0.875rem;
}

.pct-cell-popular {
    background-color: rgba(7, 130, 130, 0.04);
    border-left: 1px solid rgba(7, 130, 130, 0.12) !important;
}

/* === CELL VALUE INDICATORS === */
.pct-check-icon {
    color: #2e7d32 !important;   /* green check */
    font-size: 1rem !important;
    vertical-align: middle;
}

.pct-cross {
    color: #bdbdbd;              /* light gray X */
    font-size: 1rem;
    font-weight: 400;
}

.pct-dash {
    color: #bdbdbd;              /* light gray dash */
    font-size: 1rem;
}

.pct-text-val {
    color: var(--antologa-dark);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* === FOOTER CAPTION === */
.pricing-footer-text {
    display: block;
    margin-top: 2rem;
    margin-bottom: 2rem;
    color: var(--antologa-gray) !important;
    font-family: 'Nunito', sans-serif !important;
}

/* === RESPONSIVE === */
@media (max-width: 959px) {
    .pricing-compare-section {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
    }

    .pct-col-feature {
        padding: 0.75rem 0.875rem;
        min-width: 130px;
        font-size: 0.72rem;
    }

    .pct-col-plan,
    .pct-col-popular {
        padding: 0.75rem 0.5rem;
    }

    .pct-plan-name {
        font-size: 0.78rem;
    }

    .pct-plan-price {
        font-size: 0.68rem;
    }

    .pct-feature-name {
        padding: 0.6rem 0.875rem;
        font-size: 0.8rem;
    }

    .pct-cell {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 599px) {
    .pricing-compare-wrapper {
        border-radius: 0.5rem;
    }

    .pct-col-feature {
        min-width: 110px;
        font-size: 0.68rem;
    }

    .pct-text-val {
        font-size: 0.72rem;
    }
}
