/**
 * Komunitas+ Reward System Styles
 * 
 * Styles for reward system frontend elements
 */

/* Reward Shortcode Container */
.komunitas-rewards-shortcode {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.komunitas-rewards-shortcode h3 {
    color: #23282d;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Rewards Grid */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Reward Item */
.reward-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reward-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.reward-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa 0%, #46b450 100%);
}

/* Reward Content */
.reward-content h4 {
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.reward-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.reward-points {
    background: rgba(70,180,80,0.1);
    border: 1px solid rgba(70,180,80,0.2);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    text-align: center;
}

.reward-points strong {
    color: #46b450;
    font-weight: 600;
}

/* Reward Status */
.reward-status {
    text-align: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reward-status.claimed {
    background: rgba(0,115,170,0.1);
    color: #0073aa;
    border: 1px solid rgba(0,115,170,0.2);
}

.reward-status.insufficient {
    background: rgba(220,50,50,0.1);
    color: #dc3232;
    border: 1px solid rgba(220,50,50,0.2);
}

/* Claim Button */
.claim-reward-btn {
    width: 100%;
    background: linear-gradient(135deg, #46b450 0%, #3d8b40 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.claim-reward-btn:hover {
    background: linear-gradient(135deg, #3d8b40 0%, #2d6629 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70,180,80,0.3);
}

.claim-reward-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Reward Tab Styles */
.komunitas-reward-tab {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
}

.komunitas-reward-tab h3 {
    color: #23282d;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    text-align: center;
}

.reward-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    text-align: center;
    font-style: italic;
}

.reward-points,
.user-points {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.reward-points strong,
.user-points strong {
    color: #23282d;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.points-required,
.points-available {
    color: #46b450;
    font-size: 18px;
    font-weight: bold;
}

.insufficient-points {
    background: rgba(220,50,50,0.1);
    border: 1px solid rgba(220,50,50,0.2);
    border-radius: 8px;
    padding: 15px;
    color: #dc3232;
    text-align: center;
    font-weight: 500;
    margin: 15px 0;
}

/* Reward Info Display */
.komunitas-reward-info {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rewards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .reward-item {
        padding: 20px;
    }
    
    .reward-content h4 {
        font-size: 16px;
    }
    
    .claim-reward-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .komunitas-reward-tab {
        padding: 20px;
    }
    
    .komunitas-reward-tab h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .reward-item {
        padding: 15px;
    }
    
    .reward-content h4 {
        font-size: 15px;
    }
    
    .reward-description {
        font-size: 13px;
    }
    
    .reward-points {
        padding: 8px 12px;
    }
    
    .claim-reward-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Loading States */
.reward-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.reward-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.reward-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.reward-empty::before {
    content: '🎁';
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.reward-empty h4 {
    color: #23282d;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.reward-empty p {
    margin: 0;
    font-size: 14px;
}

/* Success/Error Messages */
.reward-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: 500;
}

.reward-message.success {
    background: rgba(70,180,80,0.1);
    border: 1px solid rgba(70,180,80,0.2);
    color: #46b450;
}

.reward-message.error {
    background: rgba(220,50,50,0.1);
    border: 1px solid rgba(220,50,50,0.2);
    color: #dc3232;
}

.reward-message.info {
    background: rgba(0,115,170,0.1);
    border: 1px solid rgba(0,115,170,0.2);
    color: #0073aa;
}
