/* Loyalty Points - My Account Page Styles */

.loyalty-points-account-page {
    font-family: inherit;
    line-height: 1.6;
}

/* Header Section */
.loyalty-points-header {
    margin-bottom: 2rem;
}

.loyalty-points-header h2 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Frozen Account Alert */
.loyalty-points-frozen-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.loyalty-points-alert-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.loyalty-points-alert-content {
    flex: 1;
}

.loyalty-points-alert-content strong {
    display: block;
    color: #856404;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.loyalty-points-alert-content p {
    margin: 0;
    color: #856404;
}

/* Stats Grid */
.loyalty-points-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.loyalty-points-stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.loyalty-points-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #007cba;
}

.loyalty-points-stat-card.frozen {
    background: #f8f9fa;
    border-color: #dee2e6;
    opacity: 0.7;
}

.loyalty-points-stat-card.expiring {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
}

.loyalty-points-stat-card.expiring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ffc107;
}

.loyalty-points-stat-icon {
    font-size: 2.5rem;
    line-height: 1;
    opacity: 0.8;
}

.loyalty-points-stat-content {
    flex: 1;
}

.loyalty-points-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.loyalty-points-stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.loyalty-points-stat-subtext {
    font-size: 0.85rem;
    color: #999;
}

/* Dashboard Summary (for dashboard page) */
.loyalty-points-dashboard-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.loyalty-points-dashboard-summary h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.2rem;
}

.loyalty-points-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.loyalty-points-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.loyalty-points-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loyalty-points-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007cba;
}

.loyalty-points-frozen-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.loyalty-points-frozen-notice p {
    margin: 0;
    color: #856404;
}

/* Transaction History */
.loyalty-points-history {
    margin-top: 2rem;
}

.loyalty-points-history h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.loyalty-points-transactions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.loyalty-points-transaction {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.loyalty-points-transaction:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.loyalty-points-transaction.earn {
    border-left: 4px solid #28a745;
}

.loyalty-points-transaction.redeem {
    border-left: 4px solid #007cba;
}

.loyalty-points-transaction.expire {
    border-left: 4px solid #dc3545;
    background: #fafafa;
}

.loyalty-points-transaction.adjust {
    border-left: 4px solid #ffc107;
}

.loyalty-points-transaction-icon {
    font-size: 1.5rem;
    line-height: 1;
    opacity: 0.8;
}

.loyalty-points-transaction-details {
    flex: 1;
}

.loyalty-points-transaction-reason {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.loyalty-points-transaction-date {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.loyalty-points-transaction-expiry {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

.loyalty-points-transaction-amount {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
    min-width: 80px;
}

.loyalty-points-transaction-amount.positive {
    color: #28a745;
}

.loyalty-points-transaction-amount.negative {
    color: #dc3545;
}

/* Help Section */
.loyalty-points-help {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.loyalty-points-help h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.loyalty-points-help ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.loyalty-points-help li {
    margin-bottom: 0.5rem;
    color: #555;
}

.loyalty-points-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f0f8ff;
    border: 1px solid #d1ecf1;
    border-radius: 4px;
}

.loyalty-points-note small {
    color: #0c5460;
    font-style: italic;
}

/* Empty State */
.loyalty-points-empty {
    text-align: center;
    padding: 3rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.loyalty-points-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.loyalty-points-empty h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.loyalty-points-empty p {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 1rem;
}

.loyalty-points-empty .button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.loyalty-points-empty .button:hover {
    background: #005a87;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .loyalty-points-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .loyalty-points-stat-card {
        padding: 1rem;
    }
    
    .loyalty-points-stat-value {
        font-size: 1.5rem;
    }
    
    .loyalty-points-transaction {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .loyalty-points-transaction-amount {
        align-self: flex-end;
        text-align: right;
    }
    
    .loyalty-points-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .loyalty-points-header h2 {
        font-size: 1.5rem;
    }
    
    .loyalty-points-stat-value {
        font-size: 1.3rem;
    }
    
    .loyalty-points-frozen-alert {
        flex-direction: column;
        gap: 0.75rem;
    }
}
