/**
 * Milano Eyes Fashion Reward System - Frontend Styles
 * 
 * Premium black and gold design theme
 * 
 * @package Milano_Eyes_Reward
 * @version 1.1.4
 */

/* Global Variables */
:root {
    --mef-primary: #D4AF37;    /* Gold */
    --mef-primary-light: #E5C76B; /* Light gold */
    --mef-primary-dark: #A17C0A; /* Dark gold */
    --mef-background: #0A0A0A; /* Deep black background */
    --mef-background-light: #1A1A1A; /* Lighter black background */
    --mef-secondary: #C5A028;  /* Deep gold */
    --mef-accent: #B8860B;     /* Dark gold */
    --mef-text: #FFFFFF;       /* White text */
    --mef-text-secondary: #FFFFFF; /* Changed to white for better visibility */
    --mef-text-muted: #E0E0E0; /* Lighter muted text */
    --mef-success: #4CAF50;    /* Success green */
    --mef-warning: #FF9800;    /* Warning orange */
    --mef-error: #F44336;      /* Error red */
    --mef-info: #2196F3;       /* Info blue */
    --mef-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); /* Enhanced card shadow */
    --mef-gold-shadow: 0 5px 15px rgba(212, 175, 55, 0.15); /* Gold shadow */
    --mef-border-radius: 8px;  /* Border radius */
    --mef-transition: all 0.3s ease; /* Transition */
}

/* General Styles */
.mef-reward-dashboard,
.mef-rewards-standalone,
.mef-referral-standalone,
.mef-history-standalone,
.mef-notifications-standalone {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--mef-text);
    background-color: var(--mef-background);
    border-radius: var(--mef-border-radius);
    overflow: hidden;
    box-shadow: var(--mef-shadow);
    margin: 20px 0;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

/* Dashboard Header */
.mef-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px 0;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    flex-wrap: wrap;
    position: relative;
}

.mef-dashboard-header:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--mef-gold-gradient);
}

.mef-logo-area h1 {
    color: var(--mef-primary);
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: var(--mef-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mef-user-points-summary {
    display: flex;
    align-items: center;
}

.mef-points-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 30px;
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    border: 2px solid var(--mef-primary);
    border-radius: var(--mef-border-radius);
    box-shadow: var(--mef-gold-shadow), 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.mef-points-display:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.5;
    pointer-events: none;
}

.mef-points-count {
    font-size: 38px;
    font-weight: bold;
    color: var(--mef-primary);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: var(--mef-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.mef-points-label {
    font-size: 14px;
    color: var(--mef-text-secondary);
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Section Headers */
.mef-section-header {
    margin-bottom: 30px;
    position: relative;
    padding-left: 15px;
}

.mef-section-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--mef-gold-gradient);
    border-radius: 2px;
}

.mef-section-header h2 {
    color: var(--mef-primary);
    font-size: 26px;
    margin: 0 0 10px;
    padding-bottom: 12px;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: var(--mef-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mef-section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--mef-gold-gradient);
    box-shadow: 0 1px 3px rgba(212, 175, 55, 0.3);
}

/* Tabs Navigation */
.mef-dashboard-tabs {
    margin-top: 30px;
}

.mef-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

.mef-tabs-nav:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--mef-primary) 0%, rgba(212, 175, 55, 0.1) 100%);
    opacity: 0.5;
}

.mef-tab {
    padding: 14px 24px;
    margin-right: 8px;
    cursor: pointer;
    color: var(--mef-text-secondary);
    font-weight: 600;
    transition: var(--mef-transition);
    border-bottom: 3px solid transparent;
    position: relative;
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.5) 0%, rgba(10, 10, 10, 0.5) 100%);
    border-radius: 8px 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.mef-tab:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.1) 100%);
    opacity: 0;
    transition: var(--mef-transition);
}

.mef-tab:hover {
    color: var(--mef-primary);
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.mef-tab:hover:before {
    opacity: 1;
}

.mef-tab.active {
    color: var(--mef-primary);
    border-bottom-color: var(--mef-primary);
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.9) 0%, rgba(15, 15, 15, 0.9) 100%);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.mef-tab.active:before {
    background: var(--mef-gold-gradient);
    opacity: 1;
}

/* Tab Content */
.mef-tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.mef-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Info Boxes and Stats */
.mef-points-info,
.mef-referral-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
}

.mef-info-box {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--mef-border-radius);
    display: flex;
    align-items: center;
    box-shadow: var(--mef-gold-shadow), 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--mef-transition);
}

.mef-info-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--mef-gold-shadow), 0 12px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--mef-primary);
}

.mef-info-box:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--mef-gold-gradient);
    opacity: 0;
    transition: var(--mef-transition);
}

.mef-info-box:hover:after {
    opacity: 1;
}

.mef-info-icon {
    margin-right: 18px;
    font-size: 28px;
    color: var(--mef-primary);
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.mef-info-content {
    display: flex;
    flex-direction: column;
}

.mef-info-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--mef-text);
    line-height: 1;
    margin-bottom: 5px;
    background: var(--mef-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mef-info-label {
    font-size: 14px;
    color: var(--mef-text-secondary);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    opacity: 0.9;
}

/* Points Summary Card */
.mef-points-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--mef-border-radius);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.mef-points-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mef-point-detail {
    display: flex;
    align-items: center;
}

.mef-detail-label {
    color: var(--mef-text-secondary);
    margin-right: 10px;
}

.mef-detail-value {
    font-weight: bold;
    color: var(--mef-text);
}

/* Redemption Section */
.mef-redeem-section {
    margin-bottom: 40px;
}

.mef-redeem-section h3 {
    color: var(--mef-text);
    font-size: 20px;
    margin-bottom: 15px;
}

.mef-redeem-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Coupon Cards */
.mef-coupon-card {
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 2px solid var(--mef-primary);
    border-radius: var(--mef-border-radius);
    overflow: hidden;
    transition: var(--mef-transition);
    box-shadow: var(--mef-gold-shadow), 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
}

.mef-coupon-card:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.mef-coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mef-gold-shadow), 0 15px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--mef-primary-light);
}

.mef-coupon-card.mef-disabled {
    opacity: 0.6;
    border-color: rgba(212, 175, 55, 0.3);
}

.mef-coupon-header {
    background: var(--mef-gold-gradient);
    color: var(--mef-background);
    padding: 15px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mef-coupon-body {
    padding: 20px;
    text-align: center;
}

.mef-coupon-discount {
    margin-bottom: 20px;
    position: relative;
}

.mef-coupon-discount:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--mef-gold-gradient);
}

.mef-discount-value {
    font-size: 42px;
    font-weight: bold;
    color: var(--mef-primary);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    display: block;
    margin: 10px 0;
    background: var(--mef-gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mef-discount-label {
    font-size: 16px;
    display: block;
    color: var(--mef-text-secondary);
}

.mef-coupon-desc {
    color: var(--mef-text-secondary);
    margin-bottom: 10px;
    font-size: 14px;
}

.mef-coupon-expiry {
    font-size: 12px;
    color: var(--mef-text-muted);
}

.mef-coupon-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.mef-redeem-btn {
    background: var(--mef-gold-gradient);
    color: var(--mef-background);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--mef-transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 5px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.mef-redeem-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--mef-transition);
}

.mef-redeem-btn:hover {
    background: var(--mef-gold-gradient-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.mef-redeem-btn:hover:before {
    left: 100%;
}

.mef-redeem-btn.disabled {
    background-color: rgba(212, 175, 55, 0.3);
    cursor: not-allowed;
}

/* Earning Ways */
.mef-earning-section {
    margin-bottom: 30px;
}

.mef-earning-ways {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mef-earning-way {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--mef-border-radius);
    transition: var(--mef-transition);
}

.mef-earning-way:hover {
    border-color: var(--mef-primary);
    background: rgba(26, 26, 26, 0.5);
}

.mef-way-icon {
    font-size: 24px;
    color: var(--mef-primary);
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.mef-way-content h4 {
    color: var(--mef-text);
    margin: 0 0 10px;
}

.mef-way-content p {
    color: var(--mef-text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Tags and Labels */
.mef-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    background-color: #555;
    color: white;
}

.mef-tag-success {
    background-color: var(--mef-success);
}

.mef-tag-warning {
    background-color: var(--mef-warning);
}

.mef-tag-info {
    background-color: var(--mef-info);
}

.mef-tag-primary {
    background-color: var(--mef-primary);
}

.mef-tag-secondary {
    background-color: #6c757d;
}

/* Points values in transaction history */
.mef-points-positive {
    color: var(--mef-success);
    font-weight: bold;
}

.mef-points-negative {
    color: var(--mef-error);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mef-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mef-user-points-summary {
        margin-top: 20px;
        width: 100%;
    }
    
    .mef-points-display {
        width: 100%;
    }
    
    .mef-tabs-nav {
        flex-wrap: wrap;
    }
    
    .mef-tab {
        padding: 10px 15px;
        margin-right: 2px;
        font-size: 14px;
    }
    
    .mef-info-box {
        min-width: 130px;
    }
    
    .mef-info-value {
        font-size: 20px;
    }
    
    .mef-redeem-options {
        grid-template-columns: 1fr;
    }
}

/* Additional components will be added in subsequent stylesheets */
