/**
 * Pricing Component Styles
 * Multi-tier pricing cards and comparison table
 *
 * Extracted from _pricing_plans.html for better maintainability
 */

/* Pricing Section Container */
.pricing-section {
    min-height: calc(100vh - 120px);
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.pricing-section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.pricing-header-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .pricing-main-title {
        font-size: 3rem;
    }
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Billing Toggle */
.billing-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.billing-toggle-wrapper {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.billing-toggle {
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #94a3b8;
}

.billing-toggle:hover {
    color: white;
}

.billing-toggle.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.save-badge {
    display: inline-block;
    background: #059669;
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    margin-left: 0.25rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .pricing-grid {
        gap: 1.5rem;
    }
}

/* Pricing Card */
.pricing-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

/* Card color variants */
.pricing-card-basic {
    border-color: rgba(59, 130, 246, 0.3);
}

.pricing-card-basic:hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.pricing-card-premium {
    border-color: rgba(16, 185, 129, 0.3);
}

.pricing-card-premium:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.pricing-card-pro {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.pricing-card-pro:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

/* Top accent line */
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 1rem 1rem 0 0;
}

.pricing-card-basic::before {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.pricing-card-premium::before {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.pricing-card-pro::before {
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 100%);
}

/* Badge styles */
.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.tier-badge-popular {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.tier-badge-powerful {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Card header */
.card-tier-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-tier-name-basic { color: #60a5fa; }
.card-tier-name-premium { color: #34d399; }
.card-tier-name-pro { color: #34d399; }

.card-tier-description {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

/* Price display */
.card-price-container {
    margin-bottom: 1.5rem;
}

.card-price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.card-price-period {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
}

.card-price-savings {
    font-size: 0.8125rem;
    color: #10b981;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Feature list */
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.card-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #e2e8f0;
}

.card-feature-icon {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
}

.card-feature-icon-check {
    color: #10b981;
}

.card-feature-icon-coming {
    color: #fbbf24;
}

.card-feature-text {
    flex: 1;
}

.feature-coming-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    margin-left: 0.375rem;
}

/* CTA buttons */
.card-cta {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}

.card-cta-basic {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.card-cta-basic:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.card-cta-premium {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.card-cta-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.card-cta-pro {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.card-cta-pro:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.card-cta-current {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
    cursor: default;
    box-shadow: none;
}

.card-cta-current:hover {
    transform: none;
    box-shadow: none;
}

.card-trial-note {
    text-align: center;
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: #64748b;
}

/* Trust section */
.pricing-trust-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.8125rem;
}

.trust-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
}

/* Feature comparison section */
.feature-comparison-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    text-align: left;
    color: #e2e8f0;
    font-size: 0.9375rem;
}

.comparison-feature-name {
    font-weight: 500;
}

.comparison-feature-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.comparison-check {
    color: #10b981;
}

.comparison-x {
    color: #475569;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Category headers in comparison */
.comparison-category-header {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-category-header td {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1rem;
}

/* All tiers include section */
.all-tiers-section {
    margin-top: 3rem;
    text-align: center;
}

.all-tiers-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.all-tiers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .all-tiers-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
    }
}

.all-tiers-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.all-tiers-item svg {
    width: 1rem;
    height: 1rem;
    color: #10b981;
}
