/* Documentation Page Styles */

.documentation-hero {
    background: url('documentation.jpg') center/cover no-repeat;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.documentation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.floating-nav {
    position: fixed;
    left: 2rem;
    top: calc(50vh - 20px);
    transform: translateY(-50%);
    background: rgba(230, 235, 250, 0.95);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    text-align: left;
    display: none;
}

.floating-nav.visible {
    display: block;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.floating-nav h3 {
    margin: 0;
    color: var(--color-text);
    font-size: 1.1rem;
    font-style: italic;
}

.minimize-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.minimize-btn:hover {
    color: var(--color-primary-dark);
}

.floating-nav.minimized {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    top: auto;
    transform: none;
    width: auto;
    padding: 0.8rem 1rem;
}

.floating-nav.minimized .nav-categories {
    display: none;
}

.floating-nav.minimized h3 {
    margin-right: 0.5rem;
}

.documentation-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.documentation-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.documentation-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.nav-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-categories li {
    margin-bottom: 0.5rem;
}

.nav-categories a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: left;
}

.nav-categories a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(3px);
}

.nav-subcategories {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 1rem;
}

.nav-subcategories li {
    margin-bottom: 0.05rem;
}

.nav-subcategories a {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    text-align: left;
}

.nav-subcategories a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
    transform: translateX(2px);
}

.section-title {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-primary);
    text-align: left;
}

.tip-box {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

.tip-box h4 {
    color: #2e7d32;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.tip-box p {
    margin-bottom: 1rem;
    color: #1b5e20;
    font-weight: 500;
}

.tip-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tip-list li {
    color: #2e7d32;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.alert-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ff6b35;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    text-align: center;
}

.alert-box p {
    color: #d63031;
    font-weight: bold;
    margin: 0;
    font-size: 1.1rem;
}

.step-container {
    margin-bottom: 4rem;
}

.step {
    display: flex;
    margin-bottom: 3rem;
    gap: 2rem;
}

.step-number {
    background: var(--gradient-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-content p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.step-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.screenshot-placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    padding: 2rem;
    text-align: center;
    color: #999;
    font-style: italic;
    border-radius: 8px;
    margin-top: 1rem;
}

.faq-section {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.faq-section h2 {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h4 {
    color: var(--color-text);
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    text-align: center;
    padding: 3rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

/* Video Section Styles */
.video-section {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

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

.video-block {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.video-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
}

.video-preview {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.video-block:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(102, 126, 234, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.video-block:hover .play-button {
    background: rgba(102, 126, 234, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 2rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.video-info p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.video-duration {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.close-video-btn {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
}

.close-video-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#modal-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .documentation-hero h1 {
        font-size: 2rem;
    }

    .floating-nav {
        position: static;
        transform: none;
        margin: 2rem auto 0;
        width: fit-content;
    }

    .documentation-content {
        padding: 2rem 1rem;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        margin-bottom: 1rem;
    }

    .faq-section {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .video-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .video-section {
        padding: 2rem 1rem;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .video-modal-content {
        width: 95%;
    }

    .close-video-btn {
        top: -50px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    /* Disable minimized floating nav on mobile */
    .floating-nav.minimized {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        width: auto;
        padding: 0.8rem 1rem;
    }
}
