/* Demo-specific styles for DeepCompanion testing page */

/* Demo Header */
.demo-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.demo-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.demo-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
}

.demo-subtitle {
    font-size: 1.25rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.demo-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    color: #ffc107;
    font-size: 0.9rem;
    position: relative;
}

.warning-icon {
    font-size: 1.1rem;
}

/* Chat Section */
.chat-section {
    padding: 80px 0;
    background: #0f0f0f;
    min-height: calc(100vh - 200px);
}

.chat-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    height: 80vh;
}

/* Model Selector */
.model-selector {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    height: fit-content;
    backdrop-filter: blur(10px);
}

.model-selector h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.model-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.model-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.model-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.model-tab.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    border-color: #ff6b35;
    color: #ffffff;
}

.model-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.model-name {
    font-weight: 600;
    font-size: 1rem;
    color: inherit;
}

.model-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Chat Interface */
.chat-interface {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
}

/* Status Bar */
.chat-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.status-indicator {
    font-size: 1.1rem;
}

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

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Chat Display */
.chat-display {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-display::-webkit-scrollbar {
    width: 6px;
}

.chat-display::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.chat-display::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.chat-display::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Messages */
.message {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.user-message {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    border-color: rgba(255, 107, 53, 0.2);
    margin-left: 2rem;
}

.assistant-message {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    margin-right: 2rem;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.message-avatar {
    font-size: 1.5rem;
}

.message-sender {
    font-weight: 600;
    color: #ffffff;
}

.message-time {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

.message-content {
    color: #e0e0e0;
    line-height: 1.6;
}

.message-content h3 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.message-content p {
    margin-bottom: 0.75rem;
}

.message-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.message-content li {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

.demo-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ffc107;
}

.note-icon {
    font-size: 1.1rem;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-style: italic;
    padding: 1rem 1.5rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #ff6b35;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input Area */
.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.input-wrapper {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

#messageInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: all 0.2s ease;
}

#messageInput:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.08);
}

#messageInput::placeholder {
    color: #666;
}

.send-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8555);
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    min-width: 100px;
    justify-content: center;
}

.send-btn:hover {
    background: linear-gradient(135deg, #ff7a45, #ff9565);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.send-btn:active {
    transform: translateY(0);
}

.send-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.send-icon {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.send-btn:hover .send-icon {
    transform: translateX(2px) translateY(-2px);
}

.input-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #666;
}

.char-counter {
    color: #888;
}

.shortcuts {
    color: #666;
}

/* Demo Features */
.demo-features {
    margin-top: 3rem;
    text-align: center;
}

.demo-features h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

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

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Demo CTA */
.demo-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: inline-block;
    text-align: left;
}

.cta-features li {
    color: #e0e0e0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1.5rem;
    }
    
    .model-selector {
        order: 2;
    }
    
    .chat-interface {
        order: 1;
        height: 60vh;
    }
    
    .model-tabs {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
    }
    
    .model-tab {
        min-width: 200px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .demo-title {
        font-size: 2.5rem;
    }
    
    .demo-subtitle {
        font-size: 1.1rem;
    }
    
    .chat-section {
        padding: 40px 0;
    }
    
    .chat-interface {
        height: 50vh;
    }
    
    .user-message {
        margin-left: 0;
    }
    
    .assistant-message {
        margin-right: 0;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .send-btn {
        align-self: stretch;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .demo-header {
        padding: 100px 0 60px;
    }
    
    .demo-title {
        font-size: 2rem;
    }
    
    .demo-warning {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .model-tabs {
        flex-direction: column;
    }
    
    .model-tab {
        min-width: auto;
    }
    
    .chat-display {
        padding: 1rem;
    }
    
    .message {
        padding: 1rem;
    }
}
