/**
 * Nesashemp Reward Program - Frontend Styles
 */

/* Points Redemption on Checkout */
.nesashemp-points-redemption {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.nesashemp-points-redemption h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.nesashemp-points-balance {
    margin-bottom: 15px;
    font-size: 16px;
}

.nesashemp-points-redemption input[type="number"] {
    width: 150px;
    margin-right: 10px;
    padding: 8px;
}

.nesashemp-points-redemption .button {
    padding: 8px 15px;
    margin-right: 5px;
}

#nesashemp_points_message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 3px;
}

#nesashemp_points_message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#nesashemp_points_message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Customer Rewards Dashboard - WooCommerce Style */
.woocommerce-account .nesashemp-customer-rewards,
.nesashemp-customer-rewards {
    max-width: 100%;
}

.nesashemp-rewards-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 0 2em 0;
}

.reward-card {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 25px;
    border-radius: 3px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.reward-card:hover {
    border-color: #a46497;
}

.reward-card h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.reward-card .big-number {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1;
    color: #030303;
}

.reward-card .reward-value,
.reward-card .reward-label {
    font-size: 14px;
    margin: 10px 0 0 0;
    color: #515151;
}

.balance-card {
    background: linear-gradient(135deg, rgba(164, 100, 151, 0.05) 0%, rgba(164, 100, 151, 0.1) 100%);
}

.streak-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(102, 126, 234, 0.1) 100%);
}

.earned-card {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(79, 172, 254, 0.1) 100%);
}

/* Streak Info - WooCommerce Style */
.nesashemp-streak-info {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin: 0 0 2em 0;
    border-radius: 3px;
}

.nesashemp-streak-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: #FA8A1C;
    transition: width 0.5s ease;
}

.streak-qualified {
    text-align: center;
}

.streak-qualified h3 {
    color: #28a745;
    font-size: 24px;
}

/* How It Works - WooCommerce Style */
.nesashemp-how-it-works {
    background: #f8f8f8;
    border-left: 4px solid #a46497;
    padding: 20px;
    margin: 0 0 2em 0;
    border-radius: 3px;
}

.nesashemp-how-it-works h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
}

.nesashemp-how-it-works ol {
    line-height: 1.8;
    padding-left: 20px;
}

.nesashemp-how-it-works li {
    margin-bottom: 10px;
}

/* Points History Table - WooCommerce Native Style */
.nesashemp-points-history {
    margin: 0 0 2em 0;
}

.nesashemp-points-history h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2em;
}

.nesashemp-points-history .shop_table {
    border: 1px solid #e0e0e0;
    border-collapse: collapse;
}

.nesashemp-points-history .shop_table th {
    background: #f8f8f8;
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.nesashemp-points-history .shop_table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.points-positive {
    color: #28a745;
    font-weight: bold;
}

.points-negative {
    color: #dc3545;
    font-weight: bold;
}

/* Dashboard Widget - WooCommerce Style */
.nesashemp-dashboard-widget {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin: 0 0 2em 0;
    border-radius: 3px;
}

.nesashemp-dashboard-widget h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.nesashemp-dashboard-widget p {
    margin: 10px 0;
    color: #515151;
    line-height: 1.8;
}

.nesashemp-dashboard-widget p strong {
    color: #333;
}

.nesashemp-dashboard-widget .button {
    background: #a46497;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    text-decoration: none;
    display: inline-block;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.nesashemp-dashboard-widget .button:hover {
    background: #935386;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nesashemp-rewards-summary {
        grid-template-columns: 1fr;
    }
    
    .reward-card .big-number {
        font-size: 36px;
    }
    
    .nesashemp-points-redemption input[type="number"] {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .nesashemp-points-redemption .button {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Referral Stats - Force Dark Grey Numbers */
.nesashemp-refer-friends .nesashemp-referral-stats .stat-card p.stat-number,
.nesashemp-refer-friends .nesashemp-referral-stats .stat-card p[style*="font-size: 32px"],
.woocommerce-account .nesashemp-refer-friends .nesashemp-referral-stats .stat-card p,
.nesashemp-referral-stats .stat-card p.stat-number {
    color: #030303 !important;
}

