/**
 * Campaign Demo Section Styles
 * Campaign Spine with Translation Pills and Gap Detection
 */

.cn-campaign-demo-section {
    background: linear-gradient(180deg, #06090f 0%, #0a1018 50%, #06090f 100%);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cn-campaign-demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
}

.campaign-demo-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.campaign-demo-header {
    text-align: center;
    margin-bottom: 40px;
}

.demo-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    margin-bottom: 16px;
}

.demo-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.demo-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Budget Selector */
.budget-selector-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.budget-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.budget-pills {
    display: flex;
    gap: 8px;
}

.budget-pill {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.budget-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.budget-pill.active {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(168, 85, 247, 0.15));
    border-color: rgba(0, 255, 255, 0.4);
    color: #00ffff;
}

/* Campaign Info Bar */
.campaign-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 30px;
}

.campaign-artist {
    display: flex;
    align-items: center;
    gap: 14px;
}

.artist-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 255, 255, 0.3);
}

.artist-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.artist-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.campaign-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.campaign-stats {
    display: flex;
    gap: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ffff;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Campaign Spine */
.campaign-spine-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.campaign-spine {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.3) transparent;
}

.campaign-spine::-webkit-scrollbar {
    height: 6px;
}

.campaign-spine::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.campaign-spine::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

/* Spine Event Cards */
.spine-event {
    flex: 0 0 160px;
    min-width: 160px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.9), rgba(10, 15, 25, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.spine-event:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 255, 255, 0.15);
}

.spine-event.is-hovered {
    border-color: rgba(0, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(0, 50, 60, 0.4), rgba(20, 10, 40, 0.4));
}

.spine-event-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 12px;
}

.spine-event-icon svg {
    width: 18px;
    height: 18px;
    stroke: #00ffff;
}

.spine-event-category {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(0, 255, 255, 0.8);
    background: rgba(0, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
}

.spine-event-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 6px;
}

.spine-event-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Courier New', monospace;
}

.spine-event-cost {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(168, 85, 247, 0.9);
    background: rgba(168, 85, 247, 0.15);
    padding: 3px 8px;
    border-radius: 8px;
}

/* Category Colors */
.spine-event[data-category="ANNOUNCEMENT"] .spine-event-category { background: rgba(0, 255, 255, 0.15); color: #00ffff; }
.spine-event[data-category="SINGLE"] .spine-event-category { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.spine-event[data-category="VIDEO"] .spine-event-category { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.spine-event[data-category="SOCIAL"] .spine-event-category { background: rgba(0, 255, 200, 0.15); color: #00ffc8; }
.spine-event[data-category="PRESS"] .spine-event-category { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.spine-event[data-category="RELEASE"] .spine-event-category { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.spine-event[data-category="TV"] .spine-event-category { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.spine-event[data-category="TOUR"] .spine-event-category { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

/* Translation Pill */
.translation-pill {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(0, 30, 40, 0.95), rgba(20, 10, 40, 0.95));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

.translation-pill.is-visible {
    opacity: 1;
    visibility: visible;
    bottom: -90px;
}

.translation-original,
.translation-adapted {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.translation-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.translation-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.translation-adapted .translation-value {
    color: #00ffff;
}

.translation-cost {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00ff88;
    margin-top: 2px;
}

.translation-arrow {
    font-size: 1.5rem;
    color: rgba(0, 255, 255, 0.6);
}

/* Gap Detection */
.gap-detection {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    margin-bottom: 30px;
    margin-top: 100px; /* Space for translation pill */
}

.gap-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 50%;
}

.gap-icon svg {
    stroke: #ffc107;
}

.gap-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gap-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gap-suggestion {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Receipts Row */
.receipts-row {
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 255, 255, 0.03));
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 16px;
    margin-bottom: 40px;
}

.receipts-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.receipts-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ff88;
}

.receipts-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.receipts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.receipt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.receipt-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.receipt-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
}

.receipt-icon svg {
    width: 20px;
    height: 20px;
    stroke: #00ff88;
}

.receipt-metric {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.receipt-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA */
.demo-cta {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 16px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px 0;
}

.cta-button {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, #00ffff, #00ff88);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
    .cn-campaign-demo-section {
        padding: 60px 20px;
    }
    
    .demo-title {
        font-size: 1.8rem;
    }
    
    .budget-selector-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .campaign-info-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .receipts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .translation-pill {
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
    }
    
    .translation-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .budget-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .receipts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .receipt-metric {
        font-size: 1.4rem;
    }
}

