/* WHMCS Product Cards Enhanced Styles */

.whmcs-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.whmcs-product-card {
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.whmcs-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Product Header */
.product-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.product-image img {
    max-width: 80px;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.1);
}

.product-icon {
    margin-bottom: 15px;
    font-size: 3em;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.product-name {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.product-tagline {
    margin: 8px 0 0 0;
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Product Content */
.product-content {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Info */
.product-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    font-size: 0.9em;
    color: #495057;
}

.product-info > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Pricing Section */
.product-pricing {
    margin-bottom: 25px;
    text-align: center;
}

.price-option {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-option:hover {
    border-color: #0073aa;
    background: #f0f8ff;
    transform: scale(1.02);
}

.price-option.featured {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: 2px solid #28a745;
    color: white;
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.price-period {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.price-option.featured .price-period {
    opacity: 0.9;
}

.price-amount {
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.price-option.featured .price-amount {
    color: white;
}

.setup-fee {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 5px;
}

.price-option.featured .setup-fee {
    opacity: 0.9;
}

.no-pricing {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    text-align: center;
}

/* Features Section */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.feature-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    border-radius: 5px;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    color: #28a745;
    margin-right: 10px;
    font-size: 1.1em;
    animation: checkmark 0.5s ease-in-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.feature-text {
    font-size: 0.9em;
    color: #495057;
    line-height: 1.4;
}

.no-features {
    padding: 15px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

/* Action Buttons */
.product-actions {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

.whmcs-order-button {
    display: inline-block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.whmcs-order-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.whmcs-order-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;
}

.whmcs-order-button:hover::before {
    left: 100%;
}

.contact-button {
    display: inline-block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .whmcs-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .whmcs-product-card {
        min-height: auto;
    }
    
    .product-header {
        padding: 20px 15px;
    }
    
    .product-content {
        padding: 20px 15px;
    }
    
    .price-amount {
        font-size: 1.6em;
    }
    
    .product-info > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .whmcs-products-grid {
        gap: 15px;
    }
    
    .product-header {
        padding: 15px 10px;
    }
    
    .product-content {
        padding: 15px 10px;
    }
    
    .price-option {
        padding: 12px;
    }
    
    .price-amount {
        font-size: 1.4em;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .whmcs-product-card {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .product-info {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .price-option {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
    
    .price-option:hover {
        background: #2d3748;
        border-color: #4299e1;
    }
    
    .feature-item:hover {
        background: #4a5568;
    }
    
    .feature-text {
        color: #e2e8f0;
    }
    
    .no-features {
        background: #4a5568;
        color: #a0aec0;
    }
}

/* Loading States */
.whmcs-product-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.whmcs-product-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error States */
.whmcs-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

.whmcs-notice {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #bee5eb;
    margin: 20px 0;
} 