/* ============================================================
   Pricing Module - Base Styles
   Module Prefix: prc-
   Styles for pricing package cards and layout
   ============================================================ */

/* Hero section overrides */
.hero-section {
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-section h1.display-4 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Package Cards */
.package-card {
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: var(--color-bg, #fff);
    position: relative;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.package-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    padding-top: 2rem;
}

.package-card .card-title {
    color: var(--color-text, #2d3748);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

.price-container {
    text-align: center;
    margin: 0.75rem 0;
    position: relative;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: top;
    margin-right: 0.25rem;
    opacity: 0.8;
}

.price {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
}

.duration {
    color: var(--color-text-secondary, #718096);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.card-text {
    color: var(--color-text, #2d3748);
    margin: 0.5rem 0 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
}

.feature-list {
    flex-grow: 1;
    margin-bottom: 1rem;
    padding-left: 0;
}

.feature-item {
    margin-bottom: 0.5rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    line-height: 1.3;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.feature-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon.included {
    background-color: rgba(var(--color-success-rgb, 40, 167, 69), 0.1);
    color: var(--color-success, #28a745);
}

.feature-icon.not-included {
    background-color: rgba(var(--color-danger-rgb, 229, 62, 62), 0.1);
    color: var(--color-danger, #dc3545);
}

/* Package button */
.btn-package {
    width: 100%;
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-package.btn-outline-primary:hover {
    background-color: var(--color-primary, #3172ae);
    color: white;
}

/* Add-ons section */
.add-ons {
    font-size: 0.875rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.add-ons strong {
    color: var(--color-text, #2d3748);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.add-ons ul li {
    color: var(--color-text-secondary, #718096);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.add-ons ul li:hover {
    background-color: rgba(0, 0, 0, 0.02);
    padding-left: 0.5rem;
}

/* Popular/recommended badge */
.popular-badge {
    position: absolute;
    top: 0;
    right: 1.5rem;
    background: var(--color-warning, #ffc107);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 0 0 0.75rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Package-specific styles */
.package-card.free {
    background: linear-gradient(to bottom right, var(--color-bg, #fff), var(--color-bg-subtle, #f7fafc));
}

.package-card.free .price-container {
    color: var(--color-text, #2d3748);
}

.package-card.silver {
    background: linear-gradient(to bottom right, var(--color-bg, #fff), #edf2f7);
    border: 1px solid var(--color-border, #e2e8f0);
}

.package-card.silver .price-container {
    color: var(--color-primary, #3172ae);
}

.package-card.gold {
    background: linear-gradient(to bottom right, var(--color-bg, #fff), #fefcbf);
    border: 2px solid var(--color-warning, #ffc107);
}

.package-card.gold .price-container {
    color: var(--color-warning, #d69e2e);
}

.package-card.platinum {
    background: linear-gradient(to bottom right, var(--color-bg, #fff), #e6fffa);
    border: 2px solid var(--color-primary, #3172ae);
}

.package-card.platinum .price-container {
    color: var(--color-text-secondary, #718096);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section h1.display-4 {
        font-size: 2.25rem;
    }

    .hero-section p.lead {
        font-size: 1rem;
    }

    .package-card {
        margin-bottom: 1.5rem;
    }

    .price {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }

    .pricing-section {
        padding: 1.5rem 0;
    }

    .package-card {
        height: auto;
        min-height: 300px;
    }

    .price {
        font-size: 2.25rem;
    }

    .feature-item {
        font-size: 0.8125rem;
        margin-bottom: 0.75rem;
        padding: 0.5rem;
    }

    /* Add padding to container on mobile */
    #package-cards-container {
        padding: 0 0.5rem 1rem;
    }
}
