/* ===== DEMO PAGE STYLES - Based on GettingStarted Design ===== */

/* Modern fonts and base styles */
.docs-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background-color: #f8fafc;
    min-height: 100vh;
}

/* Container Layout */
.docs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 24px 24px;
    display: flex;
    gap: 32px;
    min-height: calc(100vh - 80px);
}

/* Left Sidebar Navigation */
.docs-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.docs-sidebar__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.docs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav__item {
    margin-bottom: 8px;
}

.docs-nav__link {
    display: block;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.docs-nav__link:hover {
    background-color: #f1f5f9;
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.docs-nav__link.active {
    background-color: #eff6ff;
    color: #3b82f6;
    border-left-color: #3b82f6;
    font-weight: 600;
}

/* Main Content Area */
.docs-main {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.docs-content {
    padding: 40px 48px;
}

/* Hero Section */
.docs-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 48px;
    margin: -40px -48px 40px -48px;
}

.docs-hero__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.docs-hero__subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 400;
}

/* Mobile Navigation Toggle */
/* ===== DEMO SECTIONS ===== */
.docs-section {
    margin-bottom: 48px;
}

.docs-section__header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.docs-section__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.docs-section__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.docs-section__title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.docs-section__description {
    font-size: 16px;
    color: #64748b;
    margin: 4px 0 0 0;
}

/* ===== DEMO OPTIONS ===== */
.demo-options__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 1024px) {
    .demo-options__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ===== DEMO CARDS ===== */
.demo-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
}

.demo-card--mobile::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.demo-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.demo-card__header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.demo-card__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.demo-card--mobile .demo-card__icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.demo-card__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.demo-card__title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.demo-card__badge {
    position: absolute;
    top: -4px;
    right: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.demo-card--mobile .demo-card__badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.demo-card__content {
    margin-bottom: 24px;
}

.demo-card__description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.demo-card__credentials {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.demo-card__credentials h4 {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-credential {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.demo-credential:last-child {
    margin-bottom: 0;
}

.demo-credential__label {
    font-size: 12px;
    color: #6b7280;
    margin-right: 8px;
    min-width: 70px;
}

.demo-credential__value {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #1f2937;
    font-weight: 500;
}

.demo-card__actions {
    text-align: center;
}

/* ===== DEMO BUTTONS ===== */
.demo-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
}

.demo-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.demo-btn--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
}

.demo-btn--primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #5b21b6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.demo-btn--secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.demo-btn--secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* ===== DEMO INSTRUCTIONS ===== */
.demo-instructions__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .demo-instructions__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ===== INSTRUCTION CARDS ===== */
.demo-instruction-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.demo-instruction-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.demo-instruction-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.demo-instruction-card__number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.demo-instruction-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.demo-instruction-card__content {
    color: #64748b;
    line-height: 1.6;
}

.demo-instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-instruction-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
}

.demo-instruction-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

.demo-instruction-list ul {
    margin-top: 8px;
    margin-bottom: 0;
}

.demo-instruction-list ul li {
    font-size: 13px;
    color: #6b7280;
}

.demo-instruction-list code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #1f2937;
    font-weight: 500;
}

/* ===== DEMO INFO PANEL ===== */
.demo-info-panel {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: flex-start;
}

.demo-info-panel__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.demo-info-panel__icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.demo-info-panel__content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 8px 0;
}

.demo-info-panel__content p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .docs-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
    
    .docs-content {
        padding: 32px 24px;
    }
    
    .docs-hero {
        margin: -32px -24px 32px -24px;
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .docs-container {
        padding: 16px;
    }
    
    .docs-content {
        padding: 24px 16px;
    }
    
    .docs-hero {
        margin: -24px -16px 24px -16px;
        padding: 24px 16px;
    }
    
    .docs-hero__title {
        font-size: 24px;
    }
    
    .docs-hero__subtitle {
        font-size: 16px;
    }
    
    .docs-section__header {
        flex-direction: column;
        text-align: center;
    }
    
    .docs-section__icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .demo-card {
        padding: 20px;
    }
    
    .demo-card__header {
        flex-direction: column;
        text-align: center;
    }
    
    .demo-card__icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .demo-card__badge {
        position: static;
        margin-top: 8px;
        display: inline-block;
    }
    
    .demo-instruction-card {
        padding: 20px;
    }
    
    .demo-info-panel {
        flex-direction: column;
        text-align: center;
    }
    
    .demo-info-panel__icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .mobile-nav-toggle {
        display: block !important;
    }
    
    .docs-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .docs-sidebar.active {
        left: 0;
    }
}

/* ===== DEMO OPTIONS SECTION ===== */
.demo-options {
    margin-bottom: 4rem;
}

.demo-options__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .demo-options__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* ===== DEMO CARDS ===== */
.demo-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
}

.demo-card--mobile::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.demo-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.demo-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.demo-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.demo-card--mobile .demo-card__icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.demo-card__icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.demo-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.demo-card__badge {
    position: absolute;
    top: -8px;
    right: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.demo-card--mobile .demo-card__badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.demo-card__content {
    margin-bottom: 2rem;
}

.demo-card__description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.demo-card__credentials {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.demo-card__credentials h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-credential {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.demo-credential:last-child {
    margin-bottom: 0;
}

.demo-credential__label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-right: 0.75rem;
    min-width: 80px;
}

.demo-credential__value {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

.demo-card__actions {
    text-align: center;
}

/* ===== DEMO BUTTONS ===== */
.demo-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.demo-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

.demo-btn--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
}

.demo-btn--primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #5b21b6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.demo-btn--secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.demo-btn--secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* ===== DEMO INSTRUCTIONS ===== */
.demo-instructions {
    margin-bottom: 3rem;
}

.demo-instructions__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
}

.demo-instructions__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .demo-instructions__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* ===== INSTRUCTION CARDS ===== */
.demo-instruction-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.demo-instruction-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.demo-instruction-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.demo-instruction-card__number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.demo-instruction-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.demo-instruction-card__content {
    color: #475569;
    line-height: 1.6;
}

.demo-instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-instruction-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.demo-instruction-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: 700;
}

.demo-instruction-list ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.demo-instruction-list ul li {
    font-size: 0.875rem;
    color: #6b7280;
}

.demo-instruction-list code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

/* ===== DEMO INFO PANEL ===== */
.demo-info-panel {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: flex-start;
}

.demo-info-panel__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.demo-info-panel__icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.demo-info-panel__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 0.75rem 0;
}

.demo-info-panel__content p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .demo-card {
        padding: 2rem;
    }
    
    .demo-card__header {
        flex-direction: column;
        text-align: center;
    }
    
    .demo-card__icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .demo-card__badge {
        position: static;
        margin-top: 0.5rem;
        display: inline-block;
    }
    
    .demo-instruction-card {
        padding: 1.5rem;
    }
    
    .demo-info-panel {
        flex-direction: column;
        text-align: center;
    }
    
    .demo-info-panel__icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
