/**
 * Pricing Section Styles
 * 
 * @package Webshop
 * @version 1.0.0
 */

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.pricing-section .container {
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Admin Notice */
.pricing-admin-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem auto 0;
    max-width: 600px;
    text-align: left;
}

.pricing-admin-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-admin-notice a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
}

.pricing-admin-notice a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Pricing Card */
.pricing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border-color: #007cba;
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Pricing Header */
.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #007cba;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.pricing-subscription {
    margin-bottom: 1rem;
}

.subscription-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
}

.subscription-period {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.trial-info {
    margin-top: 0.5rem;
}

.trial-days {
    background: #e8f5e8;
    color: #28a745;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Pricing Content */
.pricing-content {
    flex: 1;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
}

.feature-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #28a745;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.feature-text {
    color: #495057;
    line-height: 1.5;
}

/* Pricing Actions */
.pricing-actions {
    text-align: center;
}

.pricing-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pricing-card.popular .pricing-btn {
    background: linear-gradient(135deg, #007cba, #0056b3);
    color: white;
    border: none;
}

.pricing-card.popular .pricing-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 124, 186, 0.3);
}

.pricing-card:not(.popular) .pricing-btn {
    background: #f8f9fa;
    color: #007cba;
    border: 2px solid #007cba;
}

.pricing-card:not(.popular) .pricing-btn:hover {
    background: #007cba;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 124, 186, 0.2);
}

/* Pricing Footer */
.pricing-footer {
    text-align: center;
    margin-top: 3rem;
}

.pricing-note {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .pricing-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .pricing-card {
        padding: 1.25rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .pricing-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeInUp 0.6s ease-out;
}

.pricing-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pricing-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Loading state */
.pricing-loading {
    text-align: center;
    padding: 4rem 0;
}

.pricing-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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