/* Examples Page Specific Styles */

/* Examples Hero Section */
.examples-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    background:
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%),
        radial-gradient(ellipse 80vw 60vh at 30% 30%, var(--glow-primary) 0%, transparent 70%),
        radial-gradient(ellipse 80vw 60vh at 70% 70%, var(--glow-accent) 0%, transparent 70%);
}

.examples-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.examples-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.examples-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.examples-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.example-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.example-stat:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.example-stat i {
    font-size: 2rem;
    color: var(--primary-color);
}

.example-stat span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Live Demos Section */
.live-demos {
    padding: 6rem 0;
    background:
        linear-gradient(180deg, var(--bg-medium) 0%, var(--bg-dark) 100%),
        radial-gradient(ellipse 80vw 60vh at 20% 30%, var(--glow-primary) 0%, transparent 70%),
        radial-gradient(ellipse 80vw 60vh at 80% 70%, var(--glow-accent) 0%, transparent 70%);
}

.demos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Demo Cards */
.demo-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.demo-card.featured {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.demo-card:hover::before {
    transform: scaleX(1);
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 212, 255, 0.5);
}

/* Demo Header */
.demo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.demo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-icon i {
    font-size: 1.5rem;
    color: white;
}

.demo-info {
    flex: 1;
}

.demo-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.demo-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.demo-status {
    flex-shrink: 0;
}

.status-live {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-demo {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-description {
    margin-bottom: 2rem;
}

.demo-description p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Chatbot Styles */
.chatbot-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.chatbot-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: messageSlideIn 0.3s ease-out;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: var(--gradient-primary);
    color: white;
}

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

.user-message .message-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
    max-width: 80%;
}

.user-message .message-content {
    background: rgba(0, 212, 255, 0.1);
}

.message-content p {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}

.chatbot-input {
    display: flex;
    padding: 1rem;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.chatbot-input input {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.chatbot-send-btn {
    padding: 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-light);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-suggestions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Content Generator Styles */
.content-generator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.generator-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.generator-input label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.generator-input input,
.generator-input select {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
}

.generator-input select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 0.5rem;
    border: none;
}

.generator-buttons {
    margin: 1.5rem 0 0 0;
}

.utility-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.utility-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 45px;
}

.utility-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.utility-btn i {
    font-size: 0.9rem;
}

.btn-generate {
    width: 100%;
    margin: 0;
}

.generator-input input:focus,
.generator-input select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.generator-output {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-state {
    text-align: center;
    color: var(--text-secondary);
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.generated-content {
    width: 100%;
    text-align: left;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 150, 255, 0.05));
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
}

.content-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.1rem;
}

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

.copy-btn,
.regenerate-btn,
.retry-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.copy-btn:hover,
.regenerate-btn:hover,
.retry-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.content-text {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 2rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-wrap;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text h1,
.content-text h2,
.content-text h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
}

.content-text strong,
.content-text b {
    color: var(--primary-color);
    font-weight: 600;
}

.content-footer {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.error-message {
    text-align: center;
    color: var(--text-primary);
}

.error-message i {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.error-message h4 {
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
}

.placeholder-content {
    text-align: center;
    color: var(--text-secondary);
}

.placeholder-content i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.output-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.output-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.generated-content {
    color: var(--text-primary);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Automation Demo Styles */
.automation-demo {
    text-align: center;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    transition: var(--transition);
    opacity: 0.5;
}

.workflow-step.active {
    opacity: 1;
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.workflow-step .step-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workflow-step .step-icon i {
    color: white;
    font-size: 1.2rem;
}

.step-content {
    text-align: left;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.workflow-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0.7;
}

/* Data Analysis Styles */
.data-analysis {
    text-align: center;
}

.sample-data-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.sample-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
}

.sample-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.sample-btn.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary-color);
}

.sample-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.sample-btn span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.analysis-results {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.results-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.analysis-content {
    text-align: left;
    width: 100%;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.insight-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-icon i {
    color: white;
    font-size: 1rem;
}

.insight-text h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.insight-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Examples CTA Section */
.examples-cta {
    padding: 6rem 0;
    background:
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-medium) 100%),
        radial-gradient(ellipse 80vw 60vh at 30% 30%, var(--glow-primary) 0%, transparent 70%),
        radial-gradient(ellipse 80vw 60vh at 70% 70%, var(--glow-accent) 0%, transparent 70%);
    text-align: center;
}

.examples-cta .cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.examples-cta .cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.examples-cta .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading-dots {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.loading-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: loadingPulse 1.4s ease-in-out infinite both;
}

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

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

.loading-dot:nth-child(3) {
    animation-delay: 0;
}

@keyframes loadingPulse {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        padding: 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1.5rem 2rem;
        width: 90%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--text-primary) !important;
        text-decoration: none;
        display: block;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-color) !important;
    }

    .nav-link.active {
        color: var(--primary-color) !important;
        background: rgba(0, 212, 255, 0.1);
    }

    .examples-title {
        font-size: 2.5rem;
    }

    .examples-stats {
        gap: 1.5rem;
    }

    .example-stat {
        padding: 1rem;
        min-width: 100px;
    }

    .content-generator {
        grid-template-columns: 1fr;
    }

    .sample-data-buttons {
        gap: 0.75rem;
    }

    .sample-btn {
        min-width: 100px;
        padding: 1rem;
    }

    /* Make chatbot suggestion buttons smaller on mobile */
    .suggestion-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 15px;
    }

    .chatbot-suggestions {
        padding: 0.75rem;
        gap: 0.4rem;
    }

    .examples-cta .cta-title {
        font-size: 2.5rem;
    }

    .examples-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .examples-hero {
        padding-top: 140px;
    }

    .examples-title {
        font-size: 2rem;
    }

    .examples-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .demo-card {
        padding: 1.5rem;
    }

    .demo-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .chatbot-messages {
        height: 250px;
    }

    .message-content {
        max-width: 90%;
    }

    .examples-cta .cta-title {
        font-size: 2rem;
    }
}