/**
 * Loyalty Points System CSS
 * Hűségpont rendszer stílusok - Mimiko piros-fehér minimalista design
 * Version: 1.0.0
 */

/* ============================================
   Loyalty Points Section - Rendelési oldal
   ============================================ */

.loyalty-points-section {
    margin: 20px 0;
    padding: 0;
}

.loyalty-points-card {
    background: #ffffff;
    border: 2px solid #e7e7e7;
    border-radius: 0;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.loyalty-points-card:hover {
    border-color: #BC0006;
    box-shadow: 0 4px 12px rgba(188, 0, 6, 0.15);
}

.loyalty-points-card.loyalty-no-points {
    background: #f9f9f9;
    border-color: #e0e0e0;
}

.loyalty-points-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #BC0006;
}

.loyalty-points-header i {
    font-size: 24px;
    color: #BC0006;
}

.loyalty-points-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #202020;
    text-transform: uppercase;
    font-family: "Inter", sans-serif;
}

.loyalty-points-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Balance Info */
.loyalty-balance-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background: #f9f9f9;
    padding: 18px;
    border-radius: 0;
    border-left: 4px solid #BC0006;
}

.balance-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.balance-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 22px;
    font-weight: 700;
    color: #BC0006;
    font-family: "Inter", sans-serif;
}

.balance-value.text-success {
    color: #BC0006 !important;
}

/* Redeem Option */
.loyalty-redeem-option {
    background: #ffffff;
    padding: 18px;
    border-radius: 0;
    border: 2px solid #e7e7e7;
    transition: all 0.3s ease;
}

.loyalty-redeem-option:hover {
    border-color: #BC0006;
    background: #fff5f5;
}

.loyalty-checkbox-label {
    margin: 0;
    cursor: pointer;
    width: 100%;
}

.loyalty-custom-checkbox {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.loyalty-custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.loyalty-custom-checkbox .checkmark {
    position: relative;
    height: 28px;
    width: 28px;
    background-color: #ffffff;
    border-radius: 0;
    border: 2px solid #BC0006;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.loyalty-custom-checkbox:hover .checkmark {
    background-color: #fff5f5;
    border-color: #D20209;
}

.loyalty-custom-checkbox input:checked ~ .checkmark {
    background-color: #BC0006;
    border-color: #BC0006;
}

.loyalty-custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.loyalty-custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-text strong {
    font-size: 16px;
    color: #202020;
    font-weight: 700;
    font-family: "Inter", sans-serif;
}

.checkbox-text small {
    font-size: 13px;
    color: #BC0006;
    font-weight: 600;
}

/* Info Text */
.loyalty-info-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 0;
    border-left: 3px solid #BC0006;
    font-size: 13px;
    line-height: 1.6;
}

.loyalty-info-text i {
    margin-top: 2px;
    flex-shrink: 0;
    color: #BC0006;
}

.loyalty-info-text small {
    color: #666;
}

/* No Points Card */
.loyalty-no-points .loyalty-points-body {
    padding: 10px 0;
    text-align: center;
}

.loyalty-no-points i.fa-star-o {
    color: #ccc;
}

.loyalty-no-points p {
    color: #202020;
    margin-bottom: 8px;
    font-weight: 600;
}

.loyalty-no-points small {
    color: #666;
    line-height: 1.5;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .loyalty-points-card {
        padding: 20px 15px;
    }
    
    .loyalty-balance-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .balance-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 12px;
        border-bottom: 1px solid #e7e7e7;
    }
    
    .balance-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .balance-value {
        font-size: 20px;
    }
    
    .loyalty-points-header h4 {
        font-size: 18px;
    }
    
    .checkbox-text strong {
        font-size: 15px;
    }
    
    .checkbox-text small {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .loyalty-points-section {
        padding: 0;
        margin: 15px 0;
    }
    
    .loyalty-points-card {
        padding: 15px;
    }
    
    .loyalty-custom-checkbox {
        gap: 12px;
    }
    
    .loyalty-custom-checkbox .checkmark {
        height: 24px;
        width: 24px;
    }
    
    .loyalty-custom-checkbox .checkmark:after {
        left: 7px;
        top: 3px;
        width: 5px;
        height: 10px;
    }
    
    .loyalty-balance-info {
        padding: 15px;
    }
    
    .balance-label {
        font-size: 12px;
    }
    
    .balance-value {
        font-size: 18px;
    }
}

/* ============================================
   Integration with Existing Styles
   ============================================ */

/* Illeszkedés a kupon szekcióhoz */
.loyalty-points-section + .col-sm-12 .kupon-divinder {
    margin-top: 10px;
}

/* Konzisztens spacing */
.loyalty-points-section {
    margin-bottom: 20px;
}

/* ============================================
   Animation Effects
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loyalty-points-section {
    animation: fadeInUp 0.4s ease-out;
}

/* Checkbox Animation */
.loyalty-custom-checkbox input:checked ~ .checkmark {
    animation: checkboxCheck 0.3s ease;
}

@keyframes checkboxCheck {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   Accessibility
   ============================================ */

.loyalty-checkbox-label:focus-within .checkmark {
    outline: 2px solid #BC0006;
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .loyalty-points-section {
        display: none;
    }
}