/**
 * Rewards System Styles
 *
 * @package WeGrowMagic
 */

/* Rewards Page */
.wgm-rewards-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wgm-rewards-balance {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

.wgm-rewards-balance h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.wgm-rewards-balance .points-display {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
}

.wgm-rewards-earn,
.wgm-rewards-redeem,
.wgm-rewards-transactions {
    margin: 30px 0;
}

.wgm-rewards-earn ul,
.wgm-rewards-redeem ul {
    list-style: none;
    padding: 0;
}

.wgm-rewards-earn li,
.wgm-rewards-redeem li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.wgm-redeem-form {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
}

.wgm-redeem-form input[type="number"] {
    width: 150px;
    padding: 8px;
    margin-left: 10px;
}

.wgm-rewards-transactions table {
    width: 100%;
    border-collapse: collapse;
}

.wgm-rewards-transactions th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

.wgm-rewards-transactions td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.wgm-rewards-transactions .points-positive {
    color: #28a745;
    font-weight: bold;
}

.wgm-rewards-transactions .points-negative {
    color: #dc3545;
    font-weight: bold;
}

/* Referrals Page */
.wgm-referrals-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wgm-referral-code-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
}

.wgm-referral-code-card h3 {
    margin: 0 0 20px 0;
}

.wgm-referral-code-display {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.wgm-referral-code-display .code {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
}

.wgm-referral-share {
    margin: 30px 0;
}

.wgm-referral-share input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.wgm-referral-stats {
    margin: 30px 0;
}

.wgm-referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wgm-referral-stat-card {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.wgm-referral-stat-card .stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
}

.wgm-referral-stat-card .stat-label {
    color: #666;
    margin-top: 5px;
}

/* Dashboard Points Card */
.wgm-dashboard-points {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 0 0 30px 0;
}

.wgm-dashboard-points .points-header {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.wgm-dashboard-points .points-value {
    font-size: 36px;
    font-weight: bold;
}

.wgm-dashboard-points .button {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .wgm-rewards-balance .points-display,
    .wgm-dashboard-points .points-value {
        font-size: 32px;
    }
    
    .wgm-referral-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .wgm-referral-code-display .code {
        font-size: 24px;
    }
}