/* max-loyalty.css */

/* Navigation Badge */
.max-points-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.max-points-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 165, 0, 0.6);
}

.max-star {
    animation: pulse-star 2s infinite;
}

@keyframes pulse-star {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Single Product Badge */
.max-earn-points-badge {
    margin: 15px 0;
    padding: 12px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #b8860b;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fade-in-up 0.5s ease-out forwards;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Checkout UI */
.max-loyalty-checkout-wrapper {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #FFD700;
    border-radius: 12px;
    padding: 20px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 450px;
}

.max-loyalty-checkout-header h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #2d3748;
    font-size: 18px;
}

.max-loyalty-checkout-header p {
    color: #718096;
    margin-bottom: 20px;
    font-size: 14px;
}

.max-loyalty-slider-container {
    margin-bottom: 20px;
}

.max-loyalty-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #edf2f7;
    outline: none;
    padding: 0;
    margin: 0;
}

.max-loyalty-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFD700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.1s;
}

.max-loyalty-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.max-loyalty-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #a0aec0;
    font-size: 13px;
    font-weight: 500;
}

#maxPointsValue {
    color: #d69e2e;
    font-weight: 700;
    font-size: 16px;
}

.max-loyalty-actions button {
    background: #FFD700 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.3s ease !important;
}

.max-loyalty-actions button:hover {
    background: #F6AD55 !important;
}

#maxRemovePointsBtn {
    background: #FC8181 !important;
}

#maxRemovePointsBtn:hover {
    background: #E53E3E !important;
}

#maxLoyaltyMessage {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
}

.max-success-msg { color: #38A169; }
.max-error-msg { color: #E53E3E; }

/* Account Dashboard Card */
.max-loyalty-account-card {
    position: relative;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.max-card-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0) 70%);
    border-radius: 50%;
}

.max-card-content {
    position: relative;
    z-index: 1;
}

.max-card-content h3 {
    color: #cbd5e0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 10px;
}

.max-points-big {
    font-size: 48px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: -webkit-linear-gradient(#FFD700, #F6AD55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.max-card-content p {
    color: #a0aec0;
    font-size: 15px;
    margin: 0;
}
