/* DCD Frontend Styles */

.dcd-loyalty-dashboard {
    padding: 20px;
    background: #fff;
}

.dcd-status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.dcd-tier-badge-large {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.dcd-tier-badge-large h3 {
    margin: 0;
    font-size: 24px;
}

.dcd-points-balance h2 {
    font-size: 48px;
    margin: 10px 0;
}

.dcd-tier-progress {
    margin-top: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.dcd-progress-bar {
    background: rgba(255,255,255,0.3);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.dcd-progress-fill {
    background: white;
    height: 100%;
    transition: width 0.3s ease;
}

.dcd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dcd-stat-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.dcd-stat-box h4 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #667eea;
}

.dcd-quick-redeem {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.dcd-redeem-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.dcd-redeem-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#dcd-redeem-result {
    margin-top: 15px;
}

.dcd-rewards-section {
    margin-bottom: 30px;
}

.dcd-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dcd-reward-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dcd-reward-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dcd-reward-card.dcd-reward-locked {
    opacity: 0.6;
}

.dcd-reward-card img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.dcd-reward-cost {
    font-size: 18px;
    color: #667eea;
    margin: 15px 0;
}

.dcd-activity-section {
    margin-bottom: 30px;
}

.dcd-activity-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.dcd-activity-table th,
.dcd-activity-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.dcd-activity-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.points-positive {
    color: #28a745;
    font-weight: 600;
}

.points-negative {
    color: #dc3545;
    font-weight: 600;
}

.dcd-referral-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.dcd-referral-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.dcd-referral-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.dcd-product-points {
    background: #e7f5ff;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid #667eea;
    margin: 15px 0;
}

.dcd-cart-points th,
.dcd-cart-points td {
    padding: 10px;
    color: #667eea;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .dcd-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dcd-rewards-grid {
        grid-template-columns: 1fr;
    }
    
    .dcd-redeem-form {
        flex-direction: column;
    }
}

/* Premium Badge and Upgrade Notice */
.dcd-premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    text-transform: uppercase;
}

.dcd-upgrade-notice {
    background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.dcd-upgrade-notice h4 {
    color: #667eea;
    margin-top: 0;
    font-size: 20px;
}

.dcd-upgrade-notice ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.dcd-upgrade-notice ul li {
    padding: 8px 0;
    font-size: 15px;
}

.dcd-upgrade-notice .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s;
}

.dcd-upgrade-notice .button-primary:hover {
    transform: scale(1.05);
}
