/* Mézes Hűségpont - Frontend Styles */
/* Matching mezesgergo.hu brand: warm honey tones, natural feel */

.mh-loyalty-page {
    font-family: inherit;
}

/* Two Column Layout */
.mh-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.mh-col-left,
.mh-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hero */
.mh-hero {
    background: linear-gradient(135deg, #FFF8E7 0%, #FDF8EE 50%, #fff 100%);
    border: 1px solid #E8DFC8;
    border-radius: 12px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(58, 50, 37, 0.06);
}

.mh-hero::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 167, 69, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.mh-hero-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9A8B72;
    font-weight: 600;
    margin-bottom: 8px;
}

.mh-hero-value {
    font-size: 52px;
    font-weight: 700;
    color: #A07D2E;
    line-height: 1;
    margin-bottom: 8px;
}

.mh-hero-sub {
    font-size: 15px;
    color: #6B5D49;
}

.mh-hero-sub strong {
    color: #3A3225;
    font-weight: 700;
}

/* Info Grid - stacked in right column */
.mh-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mh-info-card {
    background: #fff;
    border: 1px solid #E8DFC8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(58, 50, 37, 0.04);
    position: relative;
    overflow: hidden;
}

.mh-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F5E6B8, #D4A745);
}

.mh-info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9A8B72;
    font-weight: 600;
    margin-bottom: 6px;
}

.mh-info-value {
    font-size: 24px;
    font-weight: 700;
    color: #A07D2E;
}

.mh-info-desc {
    font-size: 12px;
    color: #BFB199;
    margin-top: 4px;
}

/* Redeem Box */
.mh-redeem-box {
    background: #fff;
    border: 1px solid #E8DFC8;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(58, 50, 37, 0.04);
}

.mh-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #3A3225;
    margin-bottom: 8px;
}

.mh-section-desc {
    font-size: 14px;
    color: #9A8B72;
    line-height: 1.6;
    margin-bottom: 0;
}

.mh-redeem-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-top: 18px;
}

.mh-input-group {
    flex: 1;
}

.mh-input-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9A8B72;
    margin-bottom: 6px;
    font-weight: 600;
}

.mh-input-group input {
    width: 100%;
    padding: 12px 16px;
    background: #FBF6EC;
    border: 1.5px solid #E8DFC8;
    border-radius: 8px;
    color: #3A3225;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}

.mh-input-group input:focus {
    border-color: #D4A745;
    box-shadow: 0 0 0 3px rgba(212, 167, 69, 0.15);
    background: #fff;
}

.mh-input-group input::placeholder {
    color: #BFB199;
    font-weight: 400;
    font-size: 14px;
}

.mh-input-hint {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    min-height: 18px;
}

.mh-input-hint.mh-hint-value {
    color: #A07D2E;
}

.mh-input-hint.mh-hint-error {
    color: #C0392B;
}

/* Button */
.mh-btn-honey {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(145deg, #D4A745, #A07D2E);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(212, 167, 69, 0.3);
}

.mh-btn-honey:hover {
    box-shadow: 0 4px 16px rgba(212, 167, 69, 0.4);
    transform: translateY(-1px);
}

.mh-btn-honey:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Coupon Result */
#mh-redeem-result {
    margin-top: 18px;
    padding: 22px;
    background: linear-gradient(135deg, rgba(90, 154, 62, 0.08), #f2f9ef);
    border: 1px solid rgba(90, 154, 62, 0.2);
    border-radius: 8px;
    animation: mhFadeIn 0.3s ease;
}

.mh-coupon-title {
    font-size: 13px;
    color: #5A9A3E;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mh-coupon-code {
    font-size: 26px;
    font-weight: 700;
    color: #3A3225;
    letter-spacing: 3px;
    margin-bottom: 6px;
    font-family: monospace;
}

.mh-coupon-value {
    font-size: 14px;
    color: #6B5D49;
}

#mh-redeem-error {
    margin-top: 14px;
    padding: 14px 18px;
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.15);
    border-radius: 8px;
    color: #C0392B;
    font-size: 14px;
    font-weight: 500;
}

/* History */
.mh-history-box {
    background: #fff;
    border: 1px solid #E8DFC8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(58, 50, 37, 0.04);
}

.mh-history-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #F5E6B8, #E8DFC8, #F5E6B8, transparent);
    margin: 14px 0;
}

.mh-empty-text {
    text-align: center;
    padding: 24px;
    color: #BFB199;
    font-size: 14px;
}

.mh-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #F0E9D8;
}

.mh-history-item:last-child {
    border-bottom: none;
}

.mh-history-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mh-history-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.mh-history-icon--earn {
    background: rgba(90, 154, 62, 0.08);
    color: #5A9A3E;
    border: 1px solid rgba(90, 154, 62, 0.2);
}

.mh-history-icon--redeem {
    background: rgba(212, 167, 69, 0.12);
    color: #A07D2E;
    border: 1px solid rgba(212, 167, 69, 0.25);
}

.mh-history-desc {
    font-size: 14px;
    color: #3A3225;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mh-history-date {
    font-size: 12px;
    color: #BFB199;
    margin-top: 2px;
}

.mh-history-amount {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}

.mh-history-amount--positive {
    color: #5A9A3E;
}

.mh-history-amount--negative {
    color: #A07D2E;
}

/* Responsive: single column on mobile */
@media (max-width: 768px) {
    .mh-two-col {
        grid-template-columns: 1fr;
    }
    .mh-hero { padding: 24px 18px; }
    .mh-hero-value { font-size: 38px; }
    .mh-info-grid { grid-template-columns: 1fr; }
    .mh-redeem-form { flex-direction: column; align-items: stretch; }
}

@keyframes mhFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
