/**
 * TFV Pricing Embed - Frontend Styles
 *
 * @package TFV_Pricing
 * @version 1.0.0
 */

/* ==========================================================================
   Pricing Wrapper Styles
   ========================================================================== */

.tfv-pricing-wrapper,
.tfv-pricing-persona-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.tfv-pricing-wrapper iframe,
.tfv-pricing-persona-wrapper iframe {
    width: 100%;
    border: none;
    display: block;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Pricing Selector Styles
   ========================================================================== */

.tfv-pricing-selector {
    margin: 40px 0;
    padding: 20px;
}

.tfv-selector-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1f2937;
    line-height: 1.3;
}

.tfv-selector-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tfv-stage-btn {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    padding: 24px;
    background: #ffffff;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.tfv-stage-btn:hover {
    border-color: #0FA35B !important;
    box-shadow: 0 4px 16px rgba(15, 163, 91, 0.3) !important;
    transform: scale(1.02) !important;
}

.tfv-stage-btn:focus {
    outline: 2px solid #0FA35B;
    outline-offset: 2px;
}

.tfv-stage-btn:active {
    transform: scale(0.98) !important;
}

/* ==========================================================================
   Error Messages
   ========================================================================== */

.tfv-error {
    color: #dc2626;
    padding: 12px 16px;
    background: #fee2e2;
    border-radius: 4px;
    border-left: 4px solid #dc2626;
    margin: 20px 0;
    font-weight: 500;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .tfv-pricing-wrapper,
    .tfv-pricing-persona-wrapper {
        padding: 0 12px;
    }

    .tfv-selector-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .tfv-stage-btn {
        max-width: 100% !important;
        min-width: 100%;
    }

    .tfv-selector-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .tfv-pricing-selector {
        padding: 12px;
        margin: 24px 0;
    }
}

@media (max-width: 480px) {
    .tfv-selector-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .tfv-stage-btn {
        padding: 20px 16px;
    }

    .tfv-pricing-wrapper,
    .tfv-pricing-persona-wrapper {
        padding: 0 8px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .tfv-pricing-wrapper iframe,
    .tfv-pricing-persona-wrapper iframe {
        display: none;
    }

    .tfv-pricing-selector {
        display: none;
    }

    .tfv-error::after {
        content: " (Pricing information available at teacherfinancialvibes.com)";
        font-weight: normal;
    }
}

/* ==========================================================================
   Accessibility Enhancements
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .tfv-stage-btn,
    .tfv-pricing-wrapper iframe,
    .tfv-pricing-persona-wrapper iframe {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tfv-stage-btn {
        border-width: 2px;
        border-color: currentColor;
    }

    .tfv-stage-btn:hover {
        background-color: #f0fdf4;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.tfv-pricing-wrapper iframe[src=""],
.tfv-pricing-persona-wrapper iframe[src=""] {
    min-height: 400px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfv-pricing-wrapper iframe[src=""]:after,
.tfv-pricing-persona-wrapper iframe[src=""]:after {
    content: "Loading pricing...";
    color: #6b7280;
    font-size: 14px;
}

/* ==========================================================================
   Dark Mode Support (Optional)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .tfv-stage-btn {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }

    .tfv-stage-btn:hover {
        background: #111827;
        border-color: #10b981 !important;
    }

    .tfv-selector-title {
        color: #f9fafb;
    }

    .tfv-error {
        background: #450a0a;
        color: #fca5a5;
        border-left-color: #dc2626;
    }
}
