/* Beautyworld EPoint Styles */
.beautyworld-epoints-total {
    background: linear-gradient(135deg, #a47e41 0%, #d7be97 100%);
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.beautyworld-epoints-label {
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1em;
}

.beautyworld-epoints-value {
    font-weight: bold;
}


.beautyworld-epoints-value.negative {
    color: #be7e1d;
}

.beautyworld-epoints-history {
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.beautyworld-epoints-history h3 {
    color: #333;
    border-bottom: 2px solid #d7be97;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.beautyworld-epoints-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.beautyworld-epoints-table th,
.beautyworld-epoints-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.beautyworld-epoints-table th {
    background:#d7be97;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.beautyworld-epoints-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.beautyworld-epoints-table tr:hover {
    background-color: #e8f2ff;
    transition: background-color 0.3s ease;
}

.beautyworld-epoints-leaderboard {
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.beautyworld-epoints-leaderboard h3 {
    color: #333;
    border-bottom: 2px solid #d7be97;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.beautyworld-epoints-leaderboard .rank {
    font-weight: bold;
    text-align: center;
    width: 60px;
    background: #d7be97;
    color: white;
    border-radius: 20px;
    padding: 5px 10px;
}

.beautyworld-epoints-leaderboard .user {
    display: flex;
    align-items: center;
}

.beautyworld-epoints-leaderboard .user img {
    margin-right: 15px;
    border-radius: 50%;
    border: 2px solid #d7be97;
}

.beautyworld-epoints-leaderboard .points {
    font-weight: bold;
    text-align: right;
    color: #d7be97;
    font-size: 1.1em;
}

.beautyworld-epoints-error,
.beautyworld-epoints-no-history,
.beautyworld-epoints-no-data {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .beautyworld-epoints-table {
        font-size: 14px;
    }
    
    .beautyworld-epoints-table th,
    .beautyworld-epoints-table td {
        padding: 8px 10px;
    }
    
    .beautyworld-epoints-total {
        padding: 15px;
    }
    
    .beautyworld-epoints-value {
        font-size: 1.5em;
    }
    
    .beautyworld-epoints-leaderboard .user {
        flex-direction: column;
        text-align: center;
    }
    
    .beautyworld-epoints-leaderboard .user img {
        margin: 0 0 10px 0;
    }
}

/* Rewards Shortcode Styles */
.beautyworld-rewards-container {
    margin: 20px 0;
}

.beautyworld-rewards-title {
    color: #333;
    border-bottom: 3px solid #d7be97;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.beautyworld-user-points {
    background: linear-gradient(135deg, #a47e41 0%, #d7be97 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.beautyworld-user-points .points-value {
    font-size: 1.5em;
    font-weight: bold;
}

.beautyworld-rewards-grid {
    display: grid;
    gap: 25px;
    margin: 25px 0;
}

.beautyworld-rewards-grid.columns-1 {
    grid-template-columns: 1fr;
}

.beautyworld-rewards-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.beautyworld-rewards-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.beautyworld-rewards-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.beautyworld-reward-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.beautyworld-reward-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #a47e41 0%, #d7be97 100%);
}


.beautyworld-reward-card.can-redeem:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.beautyworld-reward-card.disabled {
    opacity: 0.5;
    background: #f8f9fa;
}

.beautyworld-reward-card .reward-name {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.3em;
    font-weight: bold;
    line-height: 1.3;
}

.beautyworld-reward-card .reward-points {
    margin-bottom: 15px;
}

.beautyworld-reward-card .points-required {
    background: linear-gradient(135deg, #a47e41 0%, #d7be97 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.beautyworld-reward-card .reward-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.beautyworld-reward-card .reward-period {
    margin-bottom: 20px;
    color: #888;
    font-style: italic;
}

.beautyworld-reward-card .reward-action {
    text-align: center;
    margin-top: auto;
}

.beautyworld-redeem-btn {
    background: linear-gradient(135deg, #46b450 0%, #28a745 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(70, 180, 80, 0.3);
    width: 100%;
}

.beautyworld-redeem-btn:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 180, 80, 0.4);
}

.beautyworld-redeem-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.beautyworld-redeem-btn.disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

.beautyworld-rewards-error,
.beautyworld-rewards-empty {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.1em;
}

.beautyworld-rewards-error a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.beautyworld-rewards-error a:hover {
    text-decoration: underline;
}

/* Responsive design for rewards */
@media (max-width: 1024px) {
    .beautyworld-rewards-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .beautyworld-rewards-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .beautyworld-rewards-grid.columns-4,
    .beautyworld-rewards-grid.columns-3,
    .beautyworld-rewards-grid.columns-2 {
        grid-template-columns: 1fr;
    }
    
    .beautyworld-reward-card {
        padding: 20px;
    }
    
    .beautyworld-rewards-title {
        font-size: 1.5em;
    }
    
    .beautyworld-user-points {
        padding: 15px;
    }
    
    .beautyworld-user-points .points-value {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .beautyworld-rewards-grid {
        gap: 15px;
    }
    
    .beautyworld-reward-card {
        padding: 15px;
    }
    
    .beautyworld-reward-card .reward-name {
        font-size: 1.2em;
    }
    
    .beautyworld-redeem-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}