/**
 * Frontend styles for MN Affiliate Reward
 */


/* Rewards List */
.mn-affiliate-rewards {
    max-width: 800px;
    margin: 20px 0;
}

.mn-affiliate-rewards h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.mn-rewards-list {
    display: grid;
    gap: 15px;
}

.mn-reward-item {
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.mn-reward-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mn-reward-item.mn-claimed {
    border-color: #27ae60;
    background: #f8fff9;
}

.mn-reward-item.mn-unclaimed {
    border-color: #f39c12;
    background: #fffbf0;
}

.mn-reward-icon {
    font-size: 24px;
    color: #3498db;
}

.mn-reward-item.mn-claimed .mn-reward-icon {
    color: #27ae60;
}

.mn-reward-details h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 16px;
}

.mn-reward-details p {
    margin: 0 0 5px 0;
    color: #5a6c7d;
    font-size: 14px;
}

.mn-achievement-date {
    color: #95a5a6;
    font-size: 12px;
}

.mn-reward-status {
    text-align: right;
}

.mn-status-claimed {
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
}

.mn-claim-reward {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.mn-claim-reward:hover {
    background: #2980b9;
}

.mn-claim-reward:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mn-reward-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .mn-reward-status {
        text-align: center;
    }
}

/* Horizontal Progress Bar Layout */
.mn-affiliate-progress-horizontal {
    max-width: 100%;   
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mn-progress-header-box {
    background-color: #FFB300;
    padding: 10px 20px;
    border-radius: 16px;
    text-align: center;
}

.mn-progress-header-box h4 {
    color: #000;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

/* Continuous Progress Bar */
.mn-continuous-progress {    
    padding: 20px;
    position: relative;
}

.mn-tier-labels-row {
    position: relative;    
    height: 60px;
}

.mn-tier-marker {
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    top: 0;
}

.mn-tier-marker.mn-tier-start {
    left: 0 !important;
    transform: translateX(0);
    text-align: left;
}

.mn-tier-marker.mn-tier-start .mn-tier-label {
	margin-bottom: 7px!important;
}
.mn-tier-marker.mn-tier-last {
    transform: translateX(-100%);
    text-align: right!important;	
}
.mn-tier-marker.mn-tier-last .mn-tier-label{
	min-width: 210px;
	text-align: right!important;	
}
.mn-tier-marker.mn-tier-last .mn-tier-number{
	right:0!important;
	text-align: right!important;	
	position:absolute;
}
.mn-tier-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    white-space: normal;
    max-width: 210px;
    word-wrap: break-word;
    line-height: 1.3;
}

.mn-tier-marker.mn-achieved .mn-tier-label {
    color: #27ae60;
}

.mn-lock-icon, .mn-unlock-icon {
    font-size: 14px;
    margin-left: 3px;
}

.mn-unlock-icon {
    color: #333333;
}

.mn-tier-number {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;        
    width: 30px;
    height: 30px;
    line-height: 26px;
    margin: 0 auto;
}

.mn-tier-marker.mn-achieved .mn-tier-number {    
    color: #27ae60;    
}

/* Continuous Mini Bars */
.mn-continuous-mini-bars {
    display: flex;
    gap: 2px;    
    position: relative;
}

.mn-mini-bar {
    flex: 1;
    height: 16px;
    background: #e1e8ed;
    border-radius: 2px;
    transition: all 0.5s ease;
    position: relative;
}

.mn-mini-bar.mn-filled {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    animation: fillBar 0.8s ease-out;
}

/* Different colors for different segments */
.mn-mini-bar.mn-segment-0.mn-filled {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.mn-mini-bar.mn-segment-1.mn-filled {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.mn-mini-bar.mn-segment-2.mn-filled {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

/* Progress Indicator */
.mn-progress-indicator {
    position: absolute;
    top: -5px;
    transform: translateX(-50%);
    transition: left 0.8s ease;
	display:none;
}

.mn-progress-dot {
    width: 12px;
    height: 12px;
    background: #2c3e50;
    border-radius: 50%;
    margin: 0 auto 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mn-progress-value {
    background: #2c3e50;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.mn-current-progress {
    text-align: center;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 6px;
}

.mn-current-referrals {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* Animations */
@keyframes fillBar {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 12px;
        opacity: 1;
    }
}

/* Responsive Design for Horizontal Layout */
@media (max-width: 768px) {
    .mn-continuous-progress {
        padding: 15px;
    }
    
    .mn-tier-labels-row {
        height: 50px;
        margin-bottom: 15px;
    }
    
    .mn-tier-label {
        font-size: 11px;
        max-width: 80px;
    }
    
    .mn-tier-number {
        width: 25px;
        height: 25px;
        line-height: 21px;
        font-size: 12px;
    }
    
    .mn-mini-bar {
        height: 14px;
    }
}

@media (max-width: 480px) {
    .mn-continuous-progress {
        padding: 10px;
    }
    
    .mn-tier-labels-row {
        height: 40px;
        margin-bottom: 10px;
    }
    
    .mn-tier-label {
        font-size: 10px;
        max-width: 60px;
    }
    
    .mn-tier-number {
        width: 20px;
        height: 20px;
        line-height: 16px;
        font-size: 10px;
    }
    
    .mn-mini-bar {
        height: 12px;
        gap: 1px;
    }
    
    .mn-progress-dot {
        width: 8px;
        height: 8px;
    }
    
    .mn-progress-value {
        font-size: 10px;
        padding: 1px 4px;
    }
}

/* Animation for progress fill */
@keyframes progressFill {
    from {
        width: 0%;
    }
}

.mn-progress-fill {
    animation: progressFill 1.5s ease-out;
}

/* Pulse animation for next tier */
.mn-next-tier .mn-progress-fill {
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
