/*
 * 🚀 Full Potential AI - Visual Enhancement Layer
 * Version: 1.0.0
 * Live on Outbounders.com
 */

/* ========================================
   AI BADGE SYSTEM
   ======================================== */
.fpai-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fpai-badge-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.fpai-badge-ai::before {
    content: "🤖";
    font-size: 12px;
}

.fpai-badge-match {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.3);
}

.fpai-badge-match::before {
    content: "✓";
    font-weight: bold;
}

.fpai-badge-premium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
    animation: fpai-glow 2s ease-in-out infinite;
}

.fpai-badge-premium::before {
    content: "⭐";
}

@keyframes fpai-glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(240, 147, 251, 0.5); }
}

/* ========================================
   AI SCORE INDICATOR
   ======================================== */
.fpai-score {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    color: #fff;
    font-size: 12px;
}

.fpai-score-value {
    font-weight: 700;
    color: #38ef7d;
}

.fpai-score-bar {
    width: 50px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    overflow: hidden;
}

.fpai-score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38ef7d 0%, #667eea 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ========================================
   AI MISSION WIDGET
   ======================================== */
.fpai-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fpai-widget-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fpai-widget-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.fpai-widget-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 20px;
    display: none;
    animation: fpai-slideUp 0.3s ease;
}

.fpai-widget-panel.active {
    display: block;
}

@keyframes fpai-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fpai-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fpai-widget-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.fpai-widget-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.fpai-mission-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    border-left: 3px solid #38ef7d;
}

.fpai-mission-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.fpai-mission-desc {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin-bottom: 8px;
}

.fpai-mission-xp {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.fpai-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.fpai-quick-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}

.fpai-quick-btn:hover {
    background: rgba(255,255,255,0.2);
}

.fpai-quick-btn-icon {
    font-size: 18px;
}

/* ========================================
   ENHANCED JOB CARDS
   ======================================== */
.postBox.fpai-enhanced {
    border-left: 4px solid #667eea !important;
    position: relative;
}

.postBox.fpai-enhanced::after {
    content: "AI-Optimized";
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ========================================
   PREMIUM TIER INDICATORS
   ======================================== */
.fpai-tier-gold {
    border: 2px solid #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.fpai-tier-silver {
    border: 2px solid #c0c0c0 !important;
}

.fpai-tier-bronze {
    border: 2px solid #cd7f32 !important;
}

/* ========================================
   AI BANNER
   ======================================== */
.fpai-banner {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.fpai-banner a {
    color: white;
    text-decoration: underline;
}

/* ========================================
   FEEDBACK BUTTON
   ======================================== */
.fpai-feedback-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    z-index: 99998;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.fpai-feedback-btn:hover {
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .fpai-widget-panel {
        width: 280px;
        right: -10px;
    }
    
    .fpai-banner {
        font-size: 12px;
        padding: 8px 10px;
    }
}
