/* Platinum Membership Credit System - Frontend Styles */

.pmcs-credit-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.pmcs-credit-info h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2em;
}

.pmcs-credit-info p {
    margin: 8px 0;
    font-size: 14px;
}

.pmcs-warning {
    color: #d63384 !important;
    font-weight: bold;
    background: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #dc3545;
}

.pmcs-dashboard {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pmcs-dashboard h3 {
    color: #333;
    border-bottom: 2px solid #gold;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.pmcs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pmcs-stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pmcs-stat-box h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.9;
}

.pmcs-big-number {
    font-size: 2em;
    font-weight: bold;
    display: block;
}

.pmcs-credit-balance {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.pmcs-credit-balance strong {
    color: #2d5a2d;
}

.pmcs-order-restriction {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    color: #856404;
}

.pmcs-membership-expired {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .pmcs-stats {
        grid-template-columns: 1fr;
    }
    
    .pmcs-stat-box {
        padding: 15px;
    }
    
    .pmcs-big-number {
        font-size: 1.5em;
    }
}

/* WooCommerce integration */
.woocommerce .pmcs-credit-info {
    margin-bottom: 20px;
}

.woocommerce-account .pmcs-dashboard {
    margin-top: 0;
}

/* Loading states */
.pmcs-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pmcs-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: pmcs-spin 1s linear infinite;
}

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

/* Credit Price Display Styles */
.pmcs-credit-price-shop {
    margin-top: 8px;
}

.pmcs-credit-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.pmcs-credit-price-single {
    margin: 15px 0;
}

.pmcs-credit-info-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.pmcs-credit-info-box h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.pmcs-credit-amount {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    display: block;
    margin-bottom: 10px;
}

.pmcs-credit-status {
    font-size: 14px;
}

.pmcs-status-ok {
    color: #28a745;
    font-weight: bold;
}

.pmcs-status-no {
    color: #dc3545;
    font-weight: bold;
}

.pmcs-status-warning {
    color: #ffc107;
    font-weight: bold;
}

.pmcs-credit-price-cart {
    color: #667eea;
    font-weight: bold;
}

/* Enhanced Credit Info Styles */
.pmcs-credit-info h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.pmcs-credit-summary {
    background: white;
    border-radius: 6px;
    padding: 15px;
}

.pmcs-credit-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pmcs-credit-row:last-child {
    border-bottom: none;
}

.pmcs-label {
    font-weight: 600;
    color: #495057;
}

.pmcs-value {
    font-weight: bold;
    color: #212529;
}

.pmcs-credit-cost {
    color: #2196f3;
}

.pmcs-cash-cost {
    color: #ff9800;
}

.pmcs-credits-used {
    color: #4caf50;
}

.pmcs-cash-needed {
    color: #f44336;
}

.pmcs-highlight {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 4px;
    margin: 5px 0;
    border-left: 4px solid #2196f3;
}

.pmcs-success {
    background: #e8f5e8;
    padding: 12px;
    border-radius: 4px;
    margin: 5px 0;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.pmcs-divider {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

/* Membership status indicators */
.pmcs-status-active {
    color: #28a745;
    font-weight: bold;
}

.pmcs-status-expired {
    color: #dc3545;
    font-weight: bold;
}

.pmcs-status-cancelled {
    color: #6c757d;
    font-weight: bold;
}