/* Mom Points System - Frontend Styles */

/* Account page styles */
.mom-points-account-page {
    max-width: 800px;
    margin: 0 auto;
}

.mom-points-balance {
    text-align: center;
    margin-bottom: 40px;
}

.points-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.points-amount {
    font-size: 3em;
    font-weight: bold;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.points-label {
    font-size: 1.2em;
    opacity: 0.9;
}

.points-description {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* History table */
.mom-points-history {
    margin-top: 40px;
}

.mom-points-history h3 {
    margin-bottom: 20px;
    color: #333;
}

.points-value.positive {
    color: #46b450;
    font-weight: bold;
}

.points-value.negative {
    color: #dc3232;
    font-weight: bold;
}

.points-value.zero {
    color: #666;
}

/* Empty state */
.mom-points-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

.mom-points-empty p {
    color: #666;
    margin-bottom: 20px;
}

.mom-points-empty .button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.mom-points-empty .button:hover {
    background: #005a87;
}

/* Dashboard widget */
.mom-points-dashboard-widget {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.mom-points-dashboard-widget h3 {
    margin-top: 0;
    color: #333;
}

.points-balance {
    font-size: 1.4em;
    margin: 15px 0;
}

.points-number {
    font-weight: bold;
    color: #0073aa;
}

/* Cart info */
.mom-points-cart-info th,
.mom-points-cart-info td {
    border-top: 1px solid #e2e2e2;
    padding: 8px 12px;
}

.mom-points-cart-info small {
    display: block;
    color: #46b450;
    font-weight: normal;
    margin-top: 5px;
}

/* Product points info */
.mom-points-product-info {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.points-info {
    margin: 0;
    color: #2e7d32;
    font-weight: 500;
    text-align: center;
}

.points-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Points widget */
.mom-points-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f1f1;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.mom-points-widget .points-value {
    font-weight: bold;
    color: #0073aa;
}

.mom-points-widget a {
    color: #0073aa;
    text-decoration: none;
    font-size: 12px;
}

.mom-points-widget a:hover {
    text-decoration: underline;
}

/* Points card */
.mom-points-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.mom-points-card.gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mom-points-card.simple {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #333;
}

.mom-points-card.modern {
    background: #ffffff;
    border: 1px solid #e3e6f0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    color: #333;
}

/* Earning conditions */
.mom-earning-conditions {
    background: #e7f3ff;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.mom-earning-conditions h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
}

.mom-earning-conditions ul {
    margin: 10px 0 10px 20px;
}

.mom-earning-conditions li {
    margin-bottom: 5px;
    color: #333;
}

/* Leaderboard */
.mom-points-leaderboard {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.mom-points-leaderboard th,
.mom-points-leaderboard td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mom-points-leaderboard th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.mom-points-leaderboard tbody tr:hover {
    background: #f9f9f9;
}

.mom-points-leaderboard img {
    border-radius: 50%;
    vertical-align: middle;
}

/* Notifications */
.mom-points-notification {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    border: 1px solid;
}

.mom-points-notification.success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.mom-points-notification.info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

.mom-points-notification.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.mom-points-notification h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Pagination */
.woocommerce-pagination {
    text-align: center;
    margin-top: 20px;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #f1f1f1;
    text-decoration: none;
    border-radius: 4px;
    color: #333;
}

.woocommerce-pagination a:hover {
    background: #e1e1e1;
}

.woocommerce-pagination a.current,
.woocommerce-pagination span.current {
    background: #0073aa;
    color: white;
}

/* Thank you page */
.mom-points-thankyou {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 4px;
}

.mom-points-thankyou h3 {
    margin-top: 0;
    color: #2e7d32;
}

.mom-points-thankyou p {
    margin: 10px 0;
    color: #333;
}

.mom-points-thankyou .button {
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

.mom-points-thankyou .button:hover {
    background: #45a049;
}

/* Responsive design */
@media (max-width: 768px) {
    .mom-points-account-page {
        padding: 0 15px;
    }
    
    .points-balance-card {
        padding: 20px;
    }
    
    .points-amount {
        font-size: 2.5em;
    }
    
    .mom-points-history table {
        font-size: 14px;
    }
    
    .mom-points-history th,
    .mom-points-history td {
        padding: 6px 8px;
    }
    
    .mom-points-leaderboard {
        font-size: 14px;
    }
    
    .mom-points-leaderboard th,
    .mom-points-leaderboard td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .points-amount {
        font-size: 2em;
    }
    
    .mom-points-product-info {
        padding: 10px;
        font-size: 14px;
    }
    
    .mom-points-widget {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .mom-points-card {
        padding: 20px 15px;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mom-points-notification {
    animation: fadeIn 0.3s ease-out;
}

.mom-points-thankyou {
    animation: fadeIn 0.5s ease-out;
}

/* Print styles */
@media print {
    .mom-points-widget,
    .mom-points-notification {
        display: none;
    }
    
    .mom-points-history table {
        border: 1px solid #000;
    }
    
    .mom-points-history th,
    .mom-points-history td {
        border: 1px solid #000;
        padding: 8px;
    }
} 