/* Campaign-specific styles */

/* Step Container */
.step-container {
    padding: 2rem;
}

.step-description {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Conversation UI */
.conversation-ui {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chat-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #10b981;
}

.message-content {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 70%;
}

.user-message .message-content {
    background: #dcfce7;
}

/* Sample Prompts */
.sample-prompts {
    background: #f0f9ff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0f2fe;
}

.sample-prompts h4 {
    color: #0369a1;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.prompt-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.prompt-example {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #e0f2fe;
}

.prompt-example:hover {
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.prompt-text {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.prompt-label {
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#chat-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

#chat-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Agent Consultation */
.agent-consultation {
    background: #f3f4f6;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.agent-consultation h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.consulting-agents {
    display: grid;
    gap: 1rem;
}

.consulting-agent {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.consulting-agent.active {
    opacity: 1;
    border-left: 4px solid #4f46e5;
    animation: pulse 1s infinite;
}

.consulting-agent.complete {
    opacity: 1;
    border-left: 4px solid #10b981;
    animation: none;
}

.consulting-agent .agent-icon {
    font-size: 1.5rem;
}

.consulting-agent .agent-info {
    flex: 1;
}

.consulting-agent .agent-name {
    font-weight: 600;
    color: #374151;
}

.consulting-agent .agent-task {
    font-size: 0.9rem;
    color: #6b7280;
}

.consulting-agent .agent-status-icon::after {
    content: '⏳';
}

.consulting-agent.active .agent-status-icon::after {
    content: '⚡';
}

.consulting-agent.complete .agent-status-icon::after {
    content: '✅';
}

/* Agent Results */
.agent-results {
    margin: 2rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.result-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid #4f46e5;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.result-header .agent-icon {
    font-size: 1.2rem;
}

.result-header .agent-name {
    font-weight: 600;
    color: #374151;
}

.result-insights {
    list-style: none;
    padding: 0;
}

.result-insights li {
    padding: 0.25rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.result-insights li::before {
    content: '→ ';
    color: #4f46e5;
    font-weight: bold;
}

/* Blueprint Canvas */
.blueprint-canvas {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.blueprint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.blueprint-header h3 {
    color: #374151;
    font-size: 1.5rem;
}

.blueprint-metrics {
    display: flex;
    gap: 2rem;
}

.blueprint-metrics .metric {
    background: #4f46e5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.suite-connections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.suite-node {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.suite-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.suite-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 1rem 1rem 0 0;
}

.node-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.node-header i {
    color: #4f46e5;
    font-size: 1.2rem;
}

.node-header span {
    font-weight: 600;
    color: #374151;
}

.node-content p {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.node-content small {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Journey Designer */
.journey-designer {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.segment-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.segment-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.segment-btn.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.segment-btn:hover:not(.active) {
    background: #f3f4f6;
}

.journey-canvas {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.journey-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
    padding: 1rem 0;
}

.journey-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.journey-node:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.journey-node.entry {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.journey-node .node-icon {
    font-size: 1.5rem;
}

.journey-node .node-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.journey-node .node-detail {
    font-size: 0.8rem;
    color: #6b7280;
}

.journey-node.entry .node-detail {
    color: rgba(255, 255, 255, 0.8);
}

.journey-connector {
    width: 40px;
    height: 2px;
    background: #d1d5db;
    position: relative;
}

.journey-connector::after {
    content: '→';
    position: absolute;
    right: -8px;
    top: -8px;
    color: #6b7280;
    font-weight: bold;
}

.ai-suggestions {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 2px solid #fbbf24;
}

.ai-suggestions h4 {
    color: #374151;
    margin-bottom: 1rem;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fffbeb;
    border-radius: 0.5rem;
    color: #92400e;
}

.suggestion i {
    color: #f59e0b;
}

/* Creative Studio */
.creative-studio {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.asset-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.asset-section h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.asset-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asset-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.asset-preview {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

.asset-preview.logo { background: #4f46e5; }
.asset-preview.colors { background: linear-gradient(45deg, #ef4444, #f59e0b, #10b981, #3b82f6); }
.asset-preview.typography { background: #6b7280; }
.asset-preview.products { background: #8b5cf6; }
.asset-preview.lifestyle { background: #10b981; }
.asset-preview.banners { background: #f59e0b; }
.asset-preview.social { background: #ec4899; }
.asset-preview.email { background: #06b6d4; }

.asset-item span {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

.creative-variants {
    margin: 2rem 0;
}

.creative-variants h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.variant-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.variant-card.top-performer {
    border: 2px solid #f59e0b;
    background: #fffbeb;
}

.variant-preview {
    height: 80px;
    background: #f3f4f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-weight: 600;
}

.variant-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.variant-label span:first-child {
    font-weight: 600;
    color: #374151;
}

.predicted-ctr {
    font-size: 0.8rem;
    color: #6b7280;
}

.creative-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Audience Studio */
.audience-studio {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.segment-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border-left: 4px solid #d1d5db;
    transition: all 0.2s ease;
}

.segment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.segment-card.priority {
    border-left-color: #4f46e5;
}

.segment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.segment-header h4 {
    color: #374151;
    font-size: 1.1rem;
}

.segment-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.segment-card .segment-priority {
    background: #e5e7eb;
    color: #6b7280;
}

.segment-card.priority .segment-priority {
    background: #ddd6fe;
    color: #5b21b6;
}

.segment-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.metric-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.metric-value {
    color: #374151;
    font-weight: 600;
}

.audience-summary {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.audience-summary h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.reach-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.reach-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.reach-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.reach-value {
    color: #4f46e5;
    font-weight: 700;
    font-size: 1.1rem;
}

.audience-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Activation Panel */
.activation-panel {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.platform-status h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.platform-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 4px solid #d1d5db;
}

.platform-item.configured {
    border-left-color: #10b981;
}

.platform-logo {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.platform-info {
    flex: 1;
}

.platform-name {
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 0.5rem;
}

.status-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.check {
    font-size: 0.8rem;
    color: #10b981;
}

.compliance-checks {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.compliance-checks h3 {
    color: #374151;
    margin-bottom: 1rem;
}

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

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.check-item.completed {
    background: #dcfce7;
    color: #166534;
}

.check-item.completed i {
    color: #10b981;
}

.launch-section {
    text-align: center;
    padding: 2rem 0;
}

.launch-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-launch {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-launch.launched {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.launch-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Optimization Dashboard */
.optimization-dashboard {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

.performance-metrics h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.metric-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.ai-recommendations {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 2px solid #3b82f6;
}

.ai-recommendations h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.recommendation-card {
    background: #eff6ff;
    border-radius: 0.5rem;
    padding: 1rem;
}

.recommendation-text {
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.recommendation-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.active-experiments {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.active-experiments h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.experiment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.experiment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.experiment-name {
    color: #374151;
    font-weight: 500;
}

.experiment-result {
    color: #10b981;
    font-size: 0.9rem;
}

.chat-analyst {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.chat-analyst h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.analyst-chat {
    max-height: 300px;
    overflow-y: auto;
}

.chat-message {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
}

.chat-message.user {
    background: #dcfce7;
    color: #166534;
    margin-left: 2rem;
}

.chat-message.agent {
    background: #eff6ff;
    color: #1e40af;
    margin-right: 2rem;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.step-actions .btn {
    min-width: 150px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .suite-connections {
        grid-template-columns: 1fr;
    }

    .journey-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .journey-connector {
        width: 2px;
        height: 40px;
        transform: rotate(90deg);
    }

    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .step-actions .btn {
        width: 100%;
    }
}