/**
 * Marketing Nexus - Estilos Futuristas
 * Versão: 1.0.0
 */

/* Reset e Base */
.marketing-nexus-container {
    position: relative;
    min-height: 100vh;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

.marketing-nexus-container * {
    box-sizing: border-box;
}

/* Canvas de Partículas */
.mn-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

/* Background Animado */
.mn-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.mn-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #4c1d95 50%, #0f172a 100%);
}

.mn-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.mn-blob-1 {
    top: 20%;
    left: 10%;
    background: rgba(139, 92, 246, 0.2);
}

.mn-blob-2 {
    bottom: 20%;
    right: 10%;
    background: rgba(6, 182, 212, 0.2);
    animation-delay: -4s;
}

.mn-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Header */
.mn-header {
    position: sticky;
    top: 1rem;
    z-index: 50;
    margin-bottom: 2rem;
}

.mn-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mn-logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mn-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.mn-logo:hover {
    transform: rotate(360deg) scale(1.1);
}

.mn-logo-icon {
    width: 2rem;
    height: 2rem;
    color: #a78bfa;
}

.mn-brand-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mn-brand-subtitle {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.mn-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mn-time-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 0.75rem;
    color: #cbd5e1;
    font-size: 0.875rem;
}

/* Buttons */
.mn-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mn-button-primary {
    background: linear-gradient(135deg, #8b5cf6, #FFD700);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.mn-button-primary:hover {
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.mn-button-secondary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    color: #c084fc;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.mn-button-secondary:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    border-color: rgba(139, 92, 246, 0.5);
}

.mn-button-outline {
    background: transparent;
    color: #FFD700;
    border: 1px solid rgba(139, 92, 246, 0.5);
}

.mn-button-outline:hover {
    background: rgba(139, 92, 246, 0.1);
}

.mn-icon {
    width: 1rem;
    height: 1rem;
}

/* Main Content */
.mn-main {
    max-width: 1400px;
    margin: 0 auto;
}

/* Métricas */
.mn-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mn-metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.5s ease forwards;
}

.mn-metric-card[data-delay="0"] { animation-delay: 0.3s; }
.mn-metric-card[data-delay="1"] { animation-delay: 0.4s; }
.mn-metric-card[data-delay="2"] { animation-delay: 0.5s; }
.mn-metric-card[data-delay="3"] { animation-delay: 0.6s; }

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mn-metric-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.mn-metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mn-metric-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.mn-gradient-purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.mn-gradient-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.mn-gradient-green { background: linear-gradient(135deg, #10b981, #059669); }
.mn-gradient-orange { background: linear-gradient(135deg, #f97316, #ef4444); }
.mn-gradient-cyan { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.mn-gradient-red { background: linear-gradient(135deg, #ef4444, #ec4899); }
.mn-gradient-pink { background: linear-gradient(135deg, #ec4899, #f97316); }

.mn-metric-content {
    flex: 1;
}

.mn-metric-label {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

.mn-metric-value-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.mn-metric-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.mn-metric-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.mn-positive { color: #10b981; }
.mn-negative { color: #ef4444; }

/* Campanhas */
.mn-campaigns-section {
    margin-top: 3rem;
}

.mn-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.mn-section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mn-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
}

.mn-section-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #a78bfa;
}

.mn-section-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.mn-section-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

.mn-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.mn-campaign-card {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInSlide 0.5s ease forwards;
}

.mn-campaign-card[data-delay="0"] { animation-delay: 0.7s; }
.mn-campaign-card[data-delay="1"] { animation-delay: 0.8s; }
.mn-campaign-card[data-delay="2"] { animation-delay: 0.9s; }
.mn-campaign-card[data-delay="3"] { animation-delay: 1s; }

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mn-campaign-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.mn-campaign-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mn-campaign-info {
    flex: 1;
}

.mn-campaign-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mn-priority-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mn-priority-badge svg {
    width: 0.75rem;
    height: 0.75rem;
}

.mn-priority-critical { background: linear-gradient(135deg, #ef4444, #ec4899); }
.mn-priority-high { background: linear-gradient(135deg, #f97316, #fbbf24); }
.mn-priority-medium { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.mn-priority-low { background: linear-gradient(135deg, #10b981, #059669); }

.mn-status-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mn-campaign-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.mn-campaign-date {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
}

.mn-campaign-action {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: #a78bfa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mn-campaign-action:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: rotate(90deg);
}

.mn-campaign-action svg {
    width: 1.25rem;
    height: 1.25rem;
}

.mn-campaign-progress {
    margin-bottom: 1rem;
}

.mn-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.mn-progress-label {
    font-size: 0.875rem;
    color: #94a3b8;
}

.mn-progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.mn-progress-bar {
    width: 100%;
    height: 0.5rem;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 0.25rem;
    overflow: hidden;
}

.mn-progress-fill {
    height: 100%;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px currentColor;
    transition: width 1s ease;
}

.mn-campaign-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mn-team-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.mn-avatars {
    display: flex;
    margin-left: -0.5rem;
}

.mn-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: 2px solid rgba(15, 23, 42, 0.8);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-left: -0.5rem;
}

.mn-avatar-more {
    background: #334155;
}

/* Insights */
.mn-insights-section {
    margin-top: 3rem;
}

.mn-insight-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.mn-insight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.6); }
}

.mn-insight-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.mn-insight-content {
    flex: 1;
}

.mn-insight-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.mn-insight-text {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.mn-insight-actions {
    display: flex;
    gap: 1rem;
}

/* Floating Action Button */
.mn-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
    cursor: pointer;
    z-index: 40;
    transition: all 0.3s ease;
    animation: float-fab 2s ease-in-out infinite;
}

@keyframes float-fab {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mn-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.7);
}

.mn-fab svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .marketing-nexus-container {
        padding: 1rem;
    }
    
    .mn-header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .mn-metrics {
        grid-template-columns: 1fr;
    }
    
    .mn-campaigns-grid {
        grid-template-columns: 1fr;
    }
    
    .mn-insight-card {
        flex-direction: column;
    }
    
    .mn-fab {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
    }
    
    .mn-insight-actions {
        flex-direction: column;
    }
    
    .mn-button {
        width: 100%;
        justify-content: center;
    }
}
