/* ===== Manual Page Styles ===== */

/* Page Header */
.page-header {
    margin-top: 70px;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="book-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><rect x="10" y="10" width="10" height="15" fill="%23ccb39a" fill-opacity="0.1"/><rect x="11" y="11" width="8" height="13" fill="%239f7eae" fill-opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23book-pattern)"/></svg>');
    pointer-events: none;
}

.page-header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.separator {
    color: var(--text-muted);
}

.current {
    color: var(--dark-color);
    font-weight: 500;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title i {
    color: var(--primary-color);
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Manual Navigation */
.manual-nav {
    padding: 2rem 0;
    background: var(--white);
}

.nav-card {
    background: var(--background);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.nav-card h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-card h3 i {
    color: var(--primary-color);
}

.nav-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.nav-column h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
}

.nav-column ul {
    list-style: none;
    padding: 0;
}

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

.nav-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
    border-radius: 4px;
}

.nav-column a:hover {
    color: var(--primary-color);
    padding-left: 1rem;
}

/* Manual Content Layout */
.manual-content {
    padding: 3rem 0;
    background: var(--white);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.manual-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-content {
    background: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h4 {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.sidebar-nav .nav-item {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-item:hover {
    background: var(--light-color);
    color: var(--secondary-color);
}

.sidebar-nav .nav-item.active {
    background: var(--primary-color);
    color: var(--white);
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.quick-link:hover {
    background: var(--light-color);
    color: var(--secondary-color);
    transform: translateY(-1px);
}

.quick-link i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Main Content */
.manual-main {
    min-height: 800px;
}

.manual-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2 i {
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
}

.info-card h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.card-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Platform Tabs */
.platform-tabs {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 12px;
}

.platform-header h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.platform-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-tag {
    padding: 0.3rem 0.8rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.info-detail {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Step List */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step-item:hover {
    box-shadow: var(--shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

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

.sub-steps {
    margin: 1rem 0;
}

.sub-step {
    color: var(--text-light);
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

/* Code Block */
.code-block {
    background: var(--dark-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--secondary-color);
}

/* Note Boxes */
.note-box,
.warning-box,
.success-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.note-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #ef6c00;
}

.success-box {
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.note-box i,
.warning-box i,
.success-box i {
    margin-top: 0.1rem;
    font-size: 1.1rem;
}

/* App Link */
.app-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.app-link i {
    font-size: 1.5rem;
}

/* First Run Content */
.first-run-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.run-step {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

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

.step-info h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-info p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.req-card {
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.req-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.req-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.req-header i {
    font-size: 1.5rem;
}

.req-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.req-content {
    padding: 2rem;
}

.req-section {
    margin-bottom: 2rem;
}

.req-section:last-child {
    margin-bottom: 0;
}

.req-section h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.req-section ul {
    list-style: none;
    padding: 0;
}

.req-section li {
    padding: 0.5rem 0;
    color: var(--text-light);
    line-height: 1.5;
    border-bottom: 1px solid rgba(204, 179, 154, 0.1);
}

.req-section li:last-child {
    border-bottom: none;
}

.req-section strong {
    color: var(--dark-color);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    z-index: 999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Help Section */
.help-section {
    padding: 3rem 0;
    background: var(--background);
}

.help-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.help-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.help-content > p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.help-option {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.help-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.help-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.help-text h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-text p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Active Navigation */
.nav-link.active {
    background-color: var(--light-color);
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .manual-sidebar {
        top: 90px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .manual-sidebar {
        position: static;
        order: 2;
    }
    
    .manual-main {
        order: 1;
    }
    
    .nav-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tab-buttons {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-button {
        border-bottom: 1px solid var(--border-color);
        border-right: 3px solid transparent;
        justify-content: center;
    }
    
    .tab-button.active {
        border-bottom-color: var(--border-color);
        border-right-color: var(--primary-color);
    }
    
    .platform-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .run-step {
        flex-direction: column;
        text-align: center;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .help-option {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .step-item {
        padding: 1.5rem;
    }
    
    .run-step {
        padding: 1.5rem;
    }
} 