/**
 * Loyalty Rewards Frontend CSS
 */

/* Navigation Points Display */
.loyalty-nav-points {
    display: inline-block;
    margin: 0 10px;
}

.loyalty-nav-points .loyalty-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.loyalty-nav-points .loyalty-link:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.loyalty-nav-points .points-icon {
    margin-right: 5px;
    color: #ffc107;
}

.loyalty-nav-points .points-info {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.loyalty-nav-points .points-value {
    font-weight: 700;
    font-size: 16px;
}

.loyalty-nav-points .points-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

.loyalty-nav-points .tier-badge {
    padding: 2px 8px;
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Shopping Cart Points */
.loyalty-cart-points {
    background: #f0f8ff;
    border: 1px solid #d4e6f7;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
}

.loyalty-cart-points .points-notification {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #0066cc;
}

.loyalty-cart-points .points-notification i {
    margin-right: 10px;
    color: #ffc107;
}

.loyalty-cart-points .current-points {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Loyalty Dashboard */
.loyalty-dashboard {
    margin-top: 20px;
}

.loyalty-dashboard .panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.loyalty-dashboard h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

.loyalty-dashboard h3 i {
    margin-right: 10px;
    color: #0066cc;
}

/* Points Summary Card */
.points-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.points-circle {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.points-circle .points-value {
    font-size: 36px;
    font-weight: 700;
}

.points-circle .points-label {
    font-size: 14px;
    opacity: 0.9;
}

.tier-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
}

.tier-badge i {
    font-size: 36px;
    margin-bottom: 10px;
}

.tier-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.tier-multiplier {
    font-size: 14px;
    opacity: 0.9;
}

.stat-box {
    padding: 20px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Tier Progress */
.tier-progress {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.tier-progress .progress {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.tier-progress .progress-bar {
    height: 100%;
    background: #fff;
    transition: width 0.3s ease;
}

/* Ways to Earn */
.earn-method {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.earn-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.earn-method.completed {
    background: #e8f5e9;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.method-icon i {
    font-size: 28px;
}

.method-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.points-value {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}

.recurring-badge {
    background: #ffc107;
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.completed-check {
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
}

.completed-check i {
    margin-right: 5px;
}

/* Available Rewards */
.reward-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.reward-card:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.reward-value {
    font-size: 32px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.reward-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.reward-cost {
    color: #666;
    margin-bottom: 15px;
}

/* Referral Program */
.referral-code-box,
.referral-link-box {
    margin: 20px 0;
}

.referral-code-box label,
.referral-link-box label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.referral-list {
    max-height: 200px;
    overflow-y: auto;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.referral-status {
    display: flex;
    align-items: center;
}

.referral-status i {
    margin-right: 5px;
    font-size: 18px;
}

.no-referrals {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-referrals i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

/* Tables */
.loyalty-dashboard .table {
    margin-bottom: 0;
}

.loyalty-dashboard .table-responsive {
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .points-summary-card .row > div {
        margin-bottom: 20px;
    }
    
    .loyalty-nav-points {
        margin: 5px;
    }
    
    .loyalty-nav-points .points-label {
        display: none;
    }
}