/**
 * WinWin Shop - Tutorial Page Styles
 * עיצוב דף ההדרכה
 */

:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary: #14B8A6;
    --secondary-dark: #0D9488;
    --dark: #1F2937;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Assistant', Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ============ HEADER ============ */
.tutorial-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tutorial-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tutorial-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.3rem;
}

.tutorial-header .logo img {
    height: 40px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-nav .nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav .nav-link:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ============ HERO ============ */
.tutorial-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.tutorial-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* User Type Selector */
.user-type-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.type-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.type-btn i {
    font-size: 1.3rem;
}

.type-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.type-btn.active {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============ TOC NAV ============ */
.toc-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    transition: all 0.3s ease;
}

.toc-nav.sticky {
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    z-index: 90;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.toc-content {
    display: flex;
    gap: 5px;
    padding: 15px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.toc-content::-webkit-scrollbar {
    display: none;
}

.toc-link {
    display: inline-block;
    padding: 10px 18px;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.toc-link:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.toc-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

/* ============ MAIN CONTENT ============ */
.tutorial-content {
    padding: 60px 0;
    min-height: 60vh;
}

/* ============ STEP SECTIONS ============ */
.step-section {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    scroll-margin-top: 180px;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--gray-100);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 15px;
    flex-shrink: 0;
}

.step-info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-info p {
    color: var(--gray-500);
    font-size: 1rem;
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Video Placeholder */
.video-placeholder {
    background: linear-gradient(145deg, var(--gray-100), var(--gray-200));
    border-radius: 16px;
    padding: 60px 30px;
    text-align: center;
    border: 2px dashed var(--gray-300);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-height: 250px;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: var(--primary);
    background: linear-gradient(145deg, #f3f0ff, var(--gray-100));
}

.video-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.7;
}

.video-placeholder span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
}

.video-placeholder small {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Step Text Content */
.step-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.step-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-list li {
    position: relative;
    padding-right: 45px;
    padding-bottom: 25px;
    margin-bottom: 5px;
}

.step-list li:last-child {
    padding-bottom: 0;
}

.step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--gray-100);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-list li strong {
    display: block;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.step-list li p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

.step-list li code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--primary-dark);
}

/* Feature List */
.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--gray-700);
}

.feature-list li i {
    color: var(--success);
    font-size: 1rem;
}

.feature-list li i.fa-bell {
    color: var(--warning);
}

/* Info Boxes */
.tip-box,
.warning-box,
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    border-radius: 12px;
    margin-top: 25px;
    font-size: 0.95rem;
}

.tip-box {
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border: 1px solid #fcd34d;
}

.tip-box i {
    color: var(--warning);
    font-size: 1.3rem;
}

.warning-box {
    background: linear-gradient(135deg, #fee2e2, #fef2f2);
    border: 1px solid #fca5a5;
}

.warning-box i {
    color: var(--danger);
    font-size: 1.3rem;
}

.info-box {
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    border: 1px solid #7dd3fc;
}

.info-box i {
    color: var(--info);
    font-size: 1.3rem;
}

.tip-box strong,
.warning-box strong,
.info-box strong {
    font-weight: 700;
}

/* ============ FAQ SECTION ============ */
.faq-section {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    margin-top: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.faq-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-section h2 i {
    color: var(--primary);
}

.faq-grid {
    display: grid;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--gray-50);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-900);
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question i {
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question {
    background: var(--primary);
    color: var(--white);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--white);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--gray-600);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    padding: 20px 25px;
    max-height: 500px;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ============ CTA SECTION ============ */
.tutorial-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.tutorial-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.tutorial-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.05rem;
}

/* ============ FOOTER ============ */
.tutorial-footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-brand img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.footer-brand span {
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .step-content {
        grid-template-columns: 1fr;
    }
    
    .video-placeholder {
        min-height: 200px;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .tutorial-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-nav {
        gap: 15px;
    }
    
    .tutorial-hero {
        padding: 50px 0 40px;
    }
    
    .tutorial-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .user-type-selector {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .type-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .toc-nav.sticky {
        top: 0;
    }
    
    .toc-content {
        padding: 10px 0;
        gap: 8px;
    }
    
    .toc-link {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .step-section {
        padding: 25px 20px;
        border-radius: 15px;
        scroll-margin-top: 130px;
    }
    
    .step-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .step-info h2 {
        font-size: 1.3rem;
    }
    
    .video-placeholder {
        min-height: 180px;
    }
    
    .video-icon {
        font-size: 3rem;
    }
    
    .faq-section {
        padding: 30px 20px;
    }
    
    .faq-question {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
    
    .tutorial-cta {
        padding: 50px 0;
    }
    
    .tutorial-cta h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============ SMOOTH ANIMATIONS ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-section {
    animation: fadeIn 0.5s ease-out;
}

/* Video placeholder hover effect */
.video-placeholder::after {
    content: 'לחץ להפעלה';
    position: absolute;
    bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.85rem;
    color: var(--primary);
}

.video-placeholder {
    position: relative;
}

.video-placeholder:hover::after {
    opacity: 1;
}
