/* CannonWMS Feature Demo Shared Styles */
:root {
    --demo-accent: #0d6efd;
    --demo-bg: #f8f9fa;
    --demo-dark: #1a1d23;
    --demo-darker: #0d1117;
}

body { background: var(--demo-bg); }

/* Hero */
.demo-hero {
    background: linear-gradient(135deg, var(--demo-dark) 0%, var(--demo-darker) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}
.demo-hero h1 { font-size: 2.5rem; font-weight: 700; }
.demo-hero .lead { color: #9ca3af; font-size: 1.15rem; }
.demo-hero-icon { font-size: 2.5rem; color: #60a5fa; }

/* Feature badges */
.demo-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e8f4fd;
    color: #0c63e4;
}
.demo-badge-dark {
    background: #1e3a5f;
    color: #60a5fa;
}

/* Step cards */
.demo-step {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 3rem;
}
.demo-step img {
    width: 100%;
    border-bottom: 1px solid #e9ecef;
    cursor: zoom-in;
    transition: opacity 0.15s;
}
.demo-step img:hover { opacity: 0.95; }
.demo-step img.zoomed {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    object-fit: contain;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    border: none;
    cursor: zoom-out;
    border-radius: 0;
}
.demo-step-body { padding: 1.5rem 2rem; }

/* Step number circle */
.demo-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem; height: 2.5rem;
    background: var(--demo-accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.demo-step-title { font-size: 1.25rem; font-weight: 600; }
.demo-step-desc { color: #6c757d; margin-top: 0.5rem; }

/* Table of contents */
.demo-toc a {
    color: #495057;
    text-decoration: none;
    padding: 0.35rem 0;
    display: block;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.demo-toc a:hover { color: var(--demo-accent); }
.demo-toc .num {
    display: inline-block;
    width: 1.5rem;
    color: var(--demo-accent);
    font-weight: 700;
}

/* Sidebar info box */
.demo-info-box {
    padding: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
}

/* Footer */
.demo-footer {
    background: var(--demo-dark);
    color: #9ca3af;
    padding: 2rem 0;
}
.demo-footer a { color: #60a5fa; text-decoration: none; }
.demo-footer a:hover { color: #93c5fd; }

/* Catalog cards */
.demo-catalog-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.demo-catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.demo-catalog-card .card-img-wrap {
    height: 200px;
    overflow: hidden;
    background: var(--demo-darker);
}
.demo-catalog-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.demo-catalog-card:hover .card-img-wrap img { opacity: 1; }
.demo-catalog-card .card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.demo-catalog-card .card-title { font-weight: 700; font-size: 1.1rem; }
.demo-catalog-card .card-text { color: #6c757d; font-size: 0.9rem; flex: 1; }
.demo-catalog-card .price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--demo-accent);
}
.demo-catalog-card .price-period {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
}

/* CTA section */
.demo-cta {
    background: linear-gradient(135deg, #0c63e4 0%, #0a58ca 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
}
.demo-cta h3 { font-weight: 700; }
.demo-cta .btn { font-size: 1.1rem; padding: 0.75rem 2rem; }

/* Navigation bar for demos */
.demo-nav {
    background: var(--demo-dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid #2d333b;
}
.demo-nav a { color: #9ca3af; text-decoration: none; font-size: 0.9rem; }
.demo-nav a:hover { color: #fff; }
.demo-nav .brand { color: #fff; font-weight: 700; font-size: 1.1rem; }

/* Placeholder for pages without screenshots yet */
.demo-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 6rem 2rem;
    text-align: center;
    color: #64748b;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
}
.demo-placeholder i { font-size: 4rem; margin-bottom: 1rem; display: block; }
