/* Preview/Demo Page Styles */

:root {
    --primary-color: #0dcaf0;
    --secondary-color: #7c3aed;
    --text-dark: #030303;
    --text-muted: #606060;
    --text-gray: #606060;
    --border-color: #e0e0e0;
    --bg-light: #f8f9fa;
    --success-color: #10b981;
    --admin-color: #6366f1;
}

/* Sticky Section Navigation */
.section-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.5) 0%, rgba(255, 192, 203, 0.5) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.15), 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    margin-bottom: 4rem;
}

.section-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0.5rem 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
    gap: 0.25rem;
    justify-content: center;
}

.section-nav-list::-webkit-scrollbar {
    height: 3px;
}

.section-nav-list::-webkit-scrollbar-track {
    background: transparent;
}

.section-nav-list::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #0dcaf0 0%, #7c3aed 100%);
    border-radius: 10px;
}

.section-nav-item {
    white-space: nowrap;
}

.section-nav-link {
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.section-nav-link:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(13,202,240,0.08) 0%, rgba(124,58,237,0.08) 100%);
}

.section-nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom-color: var(--primary-color);
}

.section-nav-toggle {
    display: none;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0dcaf0 0%, #7c3aed 100%);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.section-nav-toggle:hover {
    background: linear-gradient(135deg, #0bb8d4 0%, #6b32c9 100%);
    box-shadow: 0 2px 8px rgba(13, 202, 240, 0.3);
}

.section-nav-toggle:active {
    transform: scale(0.98);
}

.section-nav-toggle i {
    float: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-nav-toggle.open i {
    transform: rotate(180deg);
}

.section-nav-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-nav-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.section-nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.section-nav-show-btn {
    position: fixed;
    top: 90px;
    right: 20px;
    background: linear-gradient(135deg, #0dcaf0 0%, #7c3aed 100%);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
}

.section-nav-show-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.5);
}

.section-nav-show-btn.visible {
    display: flex;
}

/* Hero Section */
.demo-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -2rem;
    margin-bottom: 0rem;
    position: relative;
}

.demo-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.demo-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.demo-hero .hero-note {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta-buttons {
    margin-top: 2rem;
}

.demo-hero .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.demo-hero .cta-primary {
    background: white;
    color: var(--primary-color);
}

.demo-hero .cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.demo-hero .cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.demo-hero .cta-secondary:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Demo Access Section */
.demo-access-section {
    padding: 4rem 0;
    background: white;
}

.demo-access-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.demo-access-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(13, 202, 240, 0.1);
    transform: translateY(-5px);
}

.demo-access-card-admin:hover {
    border-color: var(--admin-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.demo-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.demo-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.demo-icon-customer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.demo-icon-admin {
    background: linear-gradient(135deg, var(--admin-color), var(--secondary-color));
    color: white;
}

.demo-card-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.demo-card-description {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.demo-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.demo-features-list li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    border-bottom: 1px solid var(--bg-light);
}

.demo-features-list li:last-child {
    border-bottom: none;
}

.demo-features-list i {
    color: var(--success-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.demo-button {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.demo-button-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.demo-button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 202, 240, 0.3);
    color: white;
}

.demo-button-admin {
    background: linear-gradient(135deg, var(--admin-color), var(--secondary-color));
    color: white;
}

.demo-button-admin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.demo-credentials {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.credentials-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.credential-item {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.demo-note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 1rem;
}

.demo-reset-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 2rem;
    text-align: center;
    color: #856404;
}

/* Testable Features Section */
.testable-features-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.testable-feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testable-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.feature-icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
    font-size: 1.75rem;
}

.testable-feature h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.testable-feature p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Screenshots Section */
.screenshots-section {
    padding: 4rem 0;
    background: white;
}

.screenshots-grid {
    display: grid;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 3px solid var(--primary-color);
}

.screenshot-info {
    padding: 1.75rem;
}

.screenshot-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.screenshot-caption {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Demo Walkthrough Section */
.demo-walkthrough-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.walkthrough-steps {
    max-width: 900px;
    margin: 0 auto;
}

.walkthrough-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
}

.step-content {
    flex: 1;
    background: white;
    padding: 1.75rem;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.step-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.step-content a:hover {
    text-decoration: underline;
}

/* Demo Limitations Section */
.demo-limitations-section {
    padding: 4rem 0;
    background: white;
}

.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.limitation-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.limitation-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.limitation-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
    font-size: 1.75rem;
}

.limitation-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.limitation-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Next Steps Section */
.next-steps-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.next-step-card {
    display: block;
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.next-step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.next-step-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.75rem;
}

.next-step-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.next-step-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Soft Conversion Section */
.soft-conversion-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.soft-conversion-section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.conversion-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.conversion-buttons {
    margin-bottom: 2.5rem;
}

.conversion-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.conversion-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.3);
}

.conversion-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.4);
    color: white;
}

.conversion-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.conversion-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.3);
}

.conversion-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.benefit-badge {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.benefit-badge i {
    color: var(--success-color);
}

/* Demo FAQ Section */
.demo-faq-section {
    padding: 4rem 0;
    background: white;
}

.faq-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.1);
}

.faq-item h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 3rem;
}

.faq-item h5::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.open h5::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-icon {
    color: var(--primary-color);
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.faq-item.open p {
    max-height: 500px;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .demo-hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .walkthrough-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .demo-hero h1 {
        font-size: 2rem;
    }
    
    .demo-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .demo-hero .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .demo-access-card {
        margin-bottom: 1.5rem;
    }
    
    .limitations-grid {
        grid-template-columns: 1fr;
    }
    
    .conversion-button {
        display: block;
        margin: 0.75rem auto;
        max-width: 300px;
    }
    
    /* Sticky Navigation Mobile */
    .section-nav-close {
        display: none;
    }
    
    .section-nav-show-btn {
        display: none !important;
    }
    
    .section-nav-toggle {
        display: block;
    }
    
    .section-nav-list {
        display: none;
        flex-direction: column;
        max-height: 60vh;
        overflow-y: auto;
        padding: 0;
    }
    
    .section-nav-list.open {
        display: flex;
    }
    
    .section-nav-link {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .section-nav-link.active {
        color: var(--primary-color);
        background: linear-gradient(135deg, rgba(13,202,240,0.08) 0%, rgba(124,58,237,0.08) 100%);
        border-left-color: var(--primary-color);
        border-bottom-color: transparent;
    }
}
