/**
 * Package Cards Styles
 * Module Pricing - SEO Writer
 * 
 * Styles for pricing package cards with multi-currency support
 */

/* ================================
   Package Cards Base
   ================================ */
.package-card {
    position: relative;
    background: white;
    border-radius: 32px;
    padding: 40px 32px;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark .package-card {
    background: #1e293b;
}

.package-card:hover {
    transform: translateY(-8px);
    border-color: #4f46e5;
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
}

.package-card.featured {
    border-color: #4f46e5;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.3);
}

.package-card.featured:hover {
    transform: scale(1.08) translateY(-4px);
}

.package-card.has-discount {
    border-color: #10b981;
}

/* ================================
   Featured Badge
   ================================ */
.featured-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    white-space: nowrap;
}

/* ================================
   Discount Badge Corner
   ================================ */
.discount-badge-corner {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* ================================
   Package Icon
   ================================ */
.package-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.package-icon.starter {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

.package-icon.pro {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.package-icon.business {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.package-icon.enterprise {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f1f5f9;
}

/* ================================
   Price Display
   ================================ */
.package-price {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.package-price .currency,
.package-price .price-amount {
    font-size: inherit;
}

.price-wrapper {
    text-align: left;
}

.price-original {
    font-size: 18px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.price-discounted {
    font-size: 42px;
    font-weight: 900;
    color: #10b981;
    line-height: 1;
}

.dark .price-discounted {
    color: #34d399;
}

.discount-savings {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #10b981;
}

/* ================================
   Credits Badge
   ================================ */
.package-credits {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
}

.dark .package-credits {
    background: rgba(124, 58, 237, 0.2);
}

/* ================================
   Feature List
   ================================ */
.feature-list {
    flex-grow: 1;
    margin: 24px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dark .feature-item {
    border-color: #334155;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.dark .feature-check {
    background: rgba(16, 185, 129, 0.1);
}

/* ================================
   Buy Button
   ================================ */
.buy-btn {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.buy-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

.buy-btn.secondary {
    background: #1e293b;
    color: white;
}

.dark .buy-btn.secondary {
    background: white;
    color: #1e293b;
}

.buy-btn.secondary:hover {
    background: #4f46e5;
    color: white;
}

/* ================================
   Discount Source Tag
   ================================ */
.discount-source-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    border: 1px dashed rgba(16, 185, 129, 0.3);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 1024px) {
    .package-card.featured {
        transform: scale(1);
    }

    .package-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .package-price {
        font-size: 36px;
    }

    .price-discounted {
        font-size: 32px;
    }

    .package-card {
        padding: 32px 24px;
    }
}