/* Loyalty Program Page Styles */

.loyalty-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.loyalty-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.loyalty-header h1 {
    margin: 0 0 10px 0;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.loyalty-header p {
    margin: 0;
    font-size: 18px;
    opacity: 0.95;
}

.stamps-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.stamps-card h2 {
    margin: 0 0 24px 0;
    color: #2d3748;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stamps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stamp {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stamp.filled {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    animation: stampPop 0.5s ease-out;
}

.stamp.empty {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    color: #cbd5e0;
}

@keyframes stampPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.progress-bar {
    background: #e2e8f0;
    height: 12px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 20px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.progress-text {
    text-align: center;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.reward-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.reward-banner.ready {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(56, 239, 125, 0.4); }
    50% { box-shadow: 0 8px 24px rgba(56, 239, 125, 0.6); }
}

.reward-banner h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
}

.reward-banner p {
    margin: 0 0 16px 0;
    font-size: 16px;
}

.btn-redeem {
    background: white;
    color: #11998e;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-redeem:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.btn-redeem:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.promo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.promo-card:hover {
    transform: translateY(-4px);
}

.promo-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid white;
}

.promo-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.promo-card p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.redemptions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redemption-item {
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redemption-info {
    flex: 1;
}

.redemption-info .product {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.redemption-info .date {
    font-size: 12px;
    color: #718096;
}

.redemption-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-used {
    background: #c6f6d5;
    color: #22543d;
}

.status-available {
    background: #feebc8;
    color: #7c2d12;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.info-box {
    background: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.info-box h4 {
    margin: 0 0 8px 0;
    color: #2c5282;
    font-size: 16px;
}

.info-box p {
    margin: 0;
    color: #2d3748;
    font-size: 14px;
    line-height: 1.6;
}
