/* ========================================
   PRICING CARD COMPONENT
   Modern design inspired by listing cards
   ======================================== */

/* Pricing Cards Grid - Now using Bootstrap grid system */
.pricing-cards-grid {
    margin: 40px 0;
}

.pricing-cards-grid--vertical {
    /* Bootstrap grid system handles the layout */
    margin: 40px 0;
}

/* Increase vertical spacing between cards */
.pricing-section .row-cols-1 > .col {
    margin-bottom: 3rem !important;
}

/* Add margin to the last card to prevent extra space */
.pricing-section .row-cols-1 > .col:last-child {
    margin-bottom: 0 !important;
}

.pricing-cards-grid--horizontal {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 40px auto;
}

/* Pricing Section Header */
.pricing-section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.pricing-section-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    font-family: 'Krona One', sans-serif;
}

.pricing-section-header p {
    font-size: 18px;
    color: #6B7280;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Pricing Card Wrapper */
.pricing-card-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Pricing Card Base Styles - Bootstrap card integration */
.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: none;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Override Bootstrap card defaults */
.pricing-card.card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Hover effects removed */

/* Recommended Badge */
.pricing-card__recommended-badge {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF6600, #FF8F47);
    color: white;
    padding: 12px 32px;
    border-radius: 0 0 16px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: none;
    animation: recommendedPulse 2s ease-in-out infinite;
}

@keyframes recommendedPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.pricing-card__recommended-badge i {
    font-size: 12px;
    animation: starRotate 3s linear infinite;
}

@keyframes starRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Current Package Badge */
.pricing-card__current-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
    animation: currentGlow 2s ease-in-out infinite;
}

@keyframes currentGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6); }
}

.pricing-card__current-badge i {
    font-size: 11px;
}

/* Card Header - Bootstrap card-header integration */
.pricing-card .card-header.pricing-card__header {
    padding: 24px 20px 20px;
    text-align: center;
    background: transparent;
    border-bottom: 1px solid rgba(255, 102, 0, 0.15);
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0 !important;
}

/* Header background removed - no pseudo-element needed */

/* Header hover effect removed */

.pricing-card__title {
    font-size: 24px;
    font-weight: 800;
    color: #1F2937;
    margin: 0 0 12px 0;
    font-family: 'Krona One', sans-serif;
    position: relative;
    z-index: 2;
}

/* Bootstrap card-title integration */
.pricing-card .card-title.pricing-card__title {
    font-size: 24px;
    font-weight: 800;
    color: #1F2937;
    margin: 0 0 12px 0;
    font-family: 'Krona One', sans-serif;
    position: relative;
    z-index: 2;
}

.pricing-card__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.pricing-card__price-value {
    font-size: 36px;
    font-weight: 900;
    color: #FF6600;
    line-height: 1;
    font-family: 'Krona One', sans-serif;
    text-shadow: 0 2px 4px rgba(255, 102, 0, 0.2);
    position: relative;
}

.pricing-card__price-value::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.pricing-card__price-duration {
    font-size: 16px;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Body - Bootstrap card-body integration */
.pricing-card .card-body.pricing-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pricing-card__feature {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: none;
    padding: 4px 0;
    border-radius: 8px;
}

/* Feature hover effect removed */

.pricing-card__feature--enabled {
    color: #10B981;
}

.pricing-card__feature--disabled {
    color: #9CA3AF;
    opacity: 0.7;
}

/* Card Footer - Bootstrap card-footer integration */
.pricing-card .card-footer.pricing-card__footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 102, 0, 0.15);
    background: rgba(255, 102, 0, 0.02);
    position: relative;
    border-radius: 0 0 8px 8px !important;
}

.pricing-card__button {
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* Bootstrap button integration */
.pricing-card .btn.pricing-card__button {
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.pricing-card__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

/* Button hover effect removed */

.pricing-card__button--select {
    background: linear-gradient(135deg, #FF6600, #FF8F47);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.3);
}

/* Button select hover effect removed */

.pricing-card__button--current {
    background: linear-gradient(135deg, #10B981, #34D399);
    color: white;
    cursor: not-allowed;
    opacity: 0.9;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.pricing-card__button i {
    font-size: 16px;
    transition: none;
}

/* Button icon hover effect removed */

/* Recommended Card Styles */
.pricing-card--recommended {
    border-color: #FF6600;
    transform: scale(1.05);
    position: relative;
}

/* Recommended card background overlay removed */

/* Recommended card hover effect removed */

/* Current Package Styles */
.pricing-card--current {
    border-color: #10B981;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25);
    position: relative;
}

.pricing-card--current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(52, 211, 153, 0.05));
    border-radius: 24px;
    z-index: -1;
}

/* Hover Background Variants */
/* Orange hover effect removed */

/* Blue hover effect removed */

/* Green hover effect removed */

/* Purple hover effect removed */

/* Gray hover effect removed */

/* Pink hover effect removed */

/* Horizontal Layout */
.pricing-card--horizontal {
    flex-direction: row;
    height: auto;
    min-height: 280px;
}

.pricing-card--horizontal .pricing-card__header {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 102, 0, 0.15);
    border-bottom: none;
}

.pricing-card--horizontal .pricing-card__body {
    flex: 1;
    padding: 32px;
}

.pricing-card--horizontal .pricing-card__footer {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
    border-top: none;
    border-left: 1px solid rgba(255, 102, 0, 0.15);
}

/* No Packages Message */
.no-packages {
    text-align: center;
    padding: 80px 20px;
    color: #6B7280;
    font-size: 18px;
    font-weight: 500;
}

.no-packages i {
    font-size: 48px;
    color: #D1D5DB;
    margin-bottom: 16px;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-section-header h2 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .pricing-card--horizontal {
        flex-direction: column;
        height: auto;
    }
    
    .pricing-card--horizontal .pricing-card__header,
    .pricing-card--horizontal .pricing-card__footer {
        flex: none;
    }
    
    .pricing-card--horizontal .pricing-card__header {
        border-right: none;
        border-bottom: 1px solid rgba(255, 102, 0, 0.15);
    }
    
    .pricing-card--horizontal .pricing-card__footer {
        border-left: none;
        border-top: 1px solid rgba(255, 102, 0, 0.15);
    }
    
    .pricing-card__price-value {
        font-size: 28px;
    }
    
    .pricing-card__title {
        font-size: 24px;
    }
    
    .pricing-card--recommended {
        transform: none;
    }
    
    .pricing-section-header h2 {
        font-size: 32px;
    }
    
    .pricing-section-header p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .pricing-card__header {
        padding: 16px 16px 12px;
    }
    
    .pricing-card__body {
        padding: 16px;
    }
    
    .pricing-card__footer {
        padding: 16px;
    }
    
    .pricing-card__price-value {
        font-size: 24px;
    }
    
    .pricing-card__title {
        font-size: 20px;
    }
    
    .pricing-card__button {
        padding: 16px 24px;
        font-size: 14px;
    }
}

/* Animation for card entrance */
@keyframes pricingCardEntrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pricing-card {
    animation: pricingCardEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered animation for multiple cards */
.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(4) { animation-delay: 0.4s; }
.pricing-card:nth-child(5) { animation-delay: 0.5s; }
.pricing-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading state */
.pricing-card--loading {
    opacity: 0.6;
    pointer-events: none;
}

.pricing-card--loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #F3F4F6;
    border-top: 4px solid #FF6600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
