/* ═══════════════════════════════════════════════════════════════
   CloudyWP Pricing - Modern Design
   File: assets/css/pricing-modern.css
   ═══════════════════════════════════════════════════════════════ */

/* Reset & Base */
.cloudywp-pricing-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.cloudywp-pricing-container {
    width: 100%;
}

/* Grid Layout */
.cloudywp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 32px;
    width: 100%;
}

/* Individual Card */
.cloudywp-pricing-card {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cloudywp-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

/* Featured Card */
.cloudywp-pricing-card.featured {
    border: 3px solid #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
}

.cloudywp-pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

/* Featured Badge */
.cloudywp-pricing-badge {
    position: absolute;
    top: 20px;
    right: -8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border-radius: 8px 0 0 8px;
}

/* Icon */
.cloudywp-pricing-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.cloudywp-pricing-card.featured .cloudywp-pricing-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.cloudywp-pricing-card:hover .cloudywp-pricing-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Title & Tagline */
.cloudywp-pricing-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.cloudywp-pricing-tagline {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.5;
    min-height: 45px;
}

/* Price */
.cloudywp-pricing-price-wrapper {
    margin: 0 0 32px 0;
    padding: 24px 0;
    border-top: 2px solid #f1f5f9;
    border-bottom: 2px solid #f1f5f9;
}

.cloudywp-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.cloudywp-pricing-currency {
    font-size: 24px;
    font-weight: 700;
    color: #475569;
}

.cloudywp-pricing-amount {
    font-size: 56px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -2px;
}

.cloudywp-pricing-card.featured .cloudywp-pricing-amount {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cloudywp-pricing-period {
    font-size: 18px;
    color: #94a3b8;
    font-weight: 500;
}

.cloudywp-pricing-plan-type {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features List */
.cloudywp-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.cloudywp-pricing-features li {
    padding: 12px 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cloudywp-pricing-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cloudywp-pricing-card.featured .cloudywp-pricing-features li::before {
    content: '★';
}

/* CTA Button */
.cloudywp-pricing-cta-btn {
    width: 100%;
    padding: 18px 32px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Regular Button */
.cloudywp-pricing-card:not(.featured) .cloudywp-pricing-cta-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.cloudywp-pricing-card:not(.featured) .cloudywp-pricing-cta-btn:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Featured Button */
.cloudywp-pricing-card.featured .cloudywp-pricing-cta-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.cloudywp-pricing-card.featured .cloudywp-pricing-cta-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

/* Loading State */
.cloudywp-pricing-cta-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cloudywp-pricing-cta-btn.loading::after {
    content: '→';
    margin-left: 8px;
    display: inline-block;
    animation: cwp-arrow-bounce 1s ease-in-out infinite;
}

@keyframes cwp-arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Secure Checkout Badge */
.cloudywp-pricing-secure {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cloudywp-pricing-secure::before {
    content: '🔒';
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .cloudywp-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .cloudywp-pricing-amount {
        font-size: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .cloudywp-pricing-wrapper {
        margin: 40px auto;
        padding: 0 16px;
    }
    
    .cloudywp-pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cloudywp-pricing-card {
        padding: 32px 24px;
    }
    
    .cloudywp-pricing-amount {
        font-size: 44px;
    }
    
    .cloudywp-pricing-title {
        font-size: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   NO PLANS MESSAGE
   ═══════════════════════════════════════════════════════════════ */

.cwp-no-plans {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.cwp-no-plans p {
    font-size: 18px;
    color: #64748b;
    margin: 0;
}