/* Frontend Styles for Loyalty System */
.loyalty-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.loyalty-header {
    text-align: center;
    margin-bottom: 40px;
}

.loyalty-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}

.loyalty-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.summary-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.summary-label {
    font-size: 14px;
    opacity: 0.95;
}

.loyalty-sections {
    display: grid;
    gap: 30px;
}

.loyalty-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.loyalty-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.loyalty-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.loyalty-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.card-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Stamp Cards */
.stamp-visual {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.stamp-slot {
    aspect-ratio: 1;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #f9f9f9;
}

.stamp-slot.filled {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid #667eea;
    color: white;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    background: linear-gradient(135deg, #667eea, #764ba2);
    height: 100%;
    transition: width 0.5s ease;
}

.stamp-count {
    text-align: center;
    font-size: 16px;
    color: #666;
}

.reward-banner {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
}

/* Points Cards */
.points-display {
    text-align: center;
    margin: 20px 0;
}

.points-balance {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.points-label {
    color: #666;
    font-size: 14px;
}

.lifetime-points {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.reward-tiers h5 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.reward-tiers .tier {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
}

.tier-points {
    font-weight: 600;
    color: #667eea;
}

.tier-reward {
    color: #666;
}

/* QR Code */
.loyalty-qr-section {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.qr-code-display {
    margin: 30px 0;
}

.qr-code-placeholder {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.user-code {
    font-size: 18px;
    color: #333;
}

.user-code strong {
    font-family: 'Courier New', monospace;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 4px;
}

/* Notices */
.loyalty-notice {
    background: #f0f6fc;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.loyalty-notice a {
    color: #0073aa;
    font-weight: 600;
}

.loyalty-empty {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .loyalty-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .loyalty-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stamp-visual {
        grid-template-columns: repeat(3, 1fr);
    }
}
