/**
 * Account page styles for Milestone Rewards
 *
 * @package    Clubigo_Milestone_Rewards_Extension
 * @since      1.0.0
 */

/* ==========================================================================
   Main Container
   ========================================================================== */



.clubigo-milestones-account {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    direction: rtl;
    max-width: 1200px;
    margin: 0 auto;
}

.clubigo-milestones-account h2 {
    color: #0073aa;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.clubigo-milestones-account h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* ==========================================================================
   Current Progress Section
   ========================================================================== */

.clubigo-current-progress {
    background: #f5f5f5;
    color: #222;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 3px 6px rgb(145 145 145 / 31%);
}

.clubigo-current-progress h3 {
    color: #222;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    margin: 0 0 15px !important;
}

.clubigo-progress-card {
    display: flex;
    align-items: center;
    gap: 30px;
}

.progress-info {
    flex: 1;
}

.progress-text {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.progress-text .current-orders {
    color: #4facfe;
    font-size: 32px;
}

.progress-text .separator {
    margin: 0 10px;
    opacity: 0.7;
}

.progress-text .target-orders {
    font-size: 28px;
}

.progress-text .label {
    font-size: 18px;
    opacity: 0.9;
    margin-right: 10px;
}

.progress-message {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.5;
}

.progress-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-info {
    text-align: center;
}

.reward-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.reward-points {
    font-size: 16px;
    font-weight: bold;
}

/* ==========================================================================
   No Milestones Section
   ========================================================================== */

.clubigo-no-milestones {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: 40px;
}

.no-milestones-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.clubigo-no-milestones h3 {
    color: #28a745;
    border: none;
    margin-bottom: 15px;
}

.clubigo-no-milestones p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

/* ==========================================================================
   Milestones Grid
   ========================================================================== */

.clubigo-all-milestones {
    margin-bottom: 40px;
}

.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.milestone-card {
    background: white;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.milestone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.milestone-card.completed {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.milestone-card.pending {
    border-color: #b6b6b6;
    background: #f5f5f5;
}

.milestone-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.milestone-icon {
    font-size: 24px;
}

.milestone-title h4 {
    margin: 0 !important;
    font-size: 18px;
    color: #333;
}

.repeatable-badge {
    background: #0073aa;
    color: white;
    font-size: 12px;
    padding: 3px 20px;
    border-radius: 12px;
}

.milestone-body {
    text-align: center;
}

.milestone-reward {
    margin-bottom: 15px;
}

.reward-amount {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.reward-label {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.milestone-status.completed {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

.milestone-progress {
    width: 100%;
}

.progress-bar {
    background: #e1e1e1;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    background: linear-gradient(90deg, #0073aa 0%, #4facfe 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.milestone-progress .progress-text {
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   Statistics Section
   ========================================================================== */

.clubigo-milestone-stats {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #0073aa;
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   Tips Section
   ========================================================================== */

.clubigo-milestone-tips {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.tip-text {
    font-size: 16px;
    color: #333;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .clubigo-progress-card {
        flex-direction: column;
        text-align: center;
    }
    
    .milestones-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-text {
        font-size: 20px;
    }
    
    .progress-text .current-orders {
        font-size: 28px;
    }
    
    .progress-text .target-orders {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .clubigo-current-progress {
        padding: 20px;
    }
    
    .milestone-card {
        padding: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .clubigo-milestone-tips {
        padding: 20px;
    }
}
