/**
 * ChapterSphere Documentation - Modern Professional Design
 * Clean, modern, and professional styling for documentation pages
 */

/* Documentation Hero Section */
.documentation-hero {
    background: linear-gradient(135deg, var(--bni-maroon) 0%, var(--bni-maroon-dark) 100%);
    color: var(--bni-white);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.documentation-hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    letter-spacing: -0.01em;
    color:#fff;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--bni-white);
    margin: 0 auto 2rem;
    border-radius: 2px;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Documentation Content */
.documentation-content {
    padding: 4rem 0;
    background: var(--neutral-50);
}

/* Navigation Dashboard */
.nav-dashboard {
    margin-bottom: 3rem;
}

.nav-card {
    display: block;
    background: var(--bni-white);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bni-maroon) 0%, var(--bni-maroon-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bni-maroon) 0%, var(--bni-maroon-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.nav-card-icon i {
    font-size: 1.5rem;
    color: var(--bni-white);
}

.nav-card:hover .nav-card-icon {
    transform: scale(1.1);
}

.nav-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.nav-card-desc {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.nav-card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    background: var(--neutral-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-card-arrow i {
    font-size: 0.875rem;
    color: var(--neutral-600);
    transition: all 0.3s ease;
}

.nav-card:hover .nav-card-arrow {
    background: var(--bni-maroon);
    transform: translateX(4px);
}

.nav-card:hover .nav-card-arrow i {
    color: var(--bni-white);
}

/* Section Container */
.section-container {
    background: var(--bni-white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.section-header {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--bni-white) 100%);
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.section-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bni-maroon) 0%, var(--bni-maroon-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon i {
    font-size: 2rem;
    color: var(--bni-white);
}

.section-title-group {
    flex: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    line-height: 1.5;
    margin: 0;
}

.section-content {
    padding: 3rem;
}

/* Content Blocks */
.content-block {
    margin-bottom: 3rem;
}

.content-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
}

.content-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--bni-maroon) 0%, var(--bni-maroon-light) 100%);
    border-radius: 2px;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--neutral-50);
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: var(--bni-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

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

.step-content h5 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

.link-primary {
    color: var(--bni-maroon);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.link-primary:hover {
    color: var(--bni-maroon-dark);
    text-decoration: underline;
}

/* Checklist Grid */
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bni-white);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.checklist-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--info-color) 0%, #0EA5E9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checklist-icon i {
    font-size: 1.125rem;
    color: var(--bni-white);
}

.checklist-content h5 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.checklist-content p {
    color: var(--neutral-600);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

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

.requirement-card {
    background: var(--bni-white);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.requirement-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.requirement-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neutral-200);
}

.requirement-header i {
    font-size: 1.5rem;
    color: var(--bni-maroon);
}

.requirement-header h5 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 0;
}

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

.requirement-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-100);
    color: var(--neutral-700);
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
}

.requirement-list li:last-child {
    border-bottom: none;
}

.requirement-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Guide Categories */
.guide-categories {
    margin-bottom: 3rem;
}

.category-card {
    background: var(--bni-white);
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.admin-category {
    border-top: 4px solid var(--bni-maroon);
}

.member-category {
    border-top: 4px solid var(--info-color);
}

.category-header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--bni-white) 100%);
    text-align: center;
    border-bottom: 1px solid var(--neutral-200);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.admin-category .category-icon {
    background: linear-gradient(135deg, var(--bni-maroon) 0%, var(--bni-maroon-light) 100%);
}

.member-category .category-icon {
    background: linear-gradient(135deg, var(--info-color) 0%, #0EA5E9 100%);
}

.category-icon i {
    font-size: 1.75rem;
    color: var(--bni-white);
}

.category-header h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.category-header p {
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.5;
}

.guide-list {
    padding: 1rem;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.guide-item:hover {
    background: var(--neutral-50);
    text-decoration: none;
    color: inherit;
    transform: translateX(4px);
}

.guide-icon {
    width: 40px;
    height: 40px;
    background: var(--neutral-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.guide-icon i {
    font-size: 1rem;
    color: var(--neutral-600);
    transition: all 0.3s ease;
}

.admin-category .guide-item:hover .guide-icon {
    background: var(--bni-maroon);
}

.member-category .guide-item:hover .guide-icon {
    background: var(--info-color);
}

.guide-item:hover .guide-icon i {
    color: var(--bni-white);
}

.guide-content {
    flex: 1;
}

.guide-content h6 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.guide-content p {
    color: var(--neutral-600);
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.guide-badge {
    flex-shrink: 0;
}

.guide-badge .badge {
    background: var(--success-color);
    color: var(--bni-white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: none;
}

/* Features Showcase */
.features-showcase {
    margin-top: 3rem;
}

.feature-card {
    background: var(--bni-white);
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bni-maroon) 0%, var(--info-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bni-maroon) 0%, var(--bni-maroon-light) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--bni-white);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h5 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--neutral-100);
    color: var(--neutral-700);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--neutral-200);
}

/* Mobile App Section Styles */
.mobile-section {
    background: linear-gradient(135deg, var(--bni-maroon) 0%, var(--bni-maroon-dark) 100%);
    color: var(--bni-white);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.mobile-section::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="mobile-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23mobile-grid)"/></svg>');
    opacity: 0.3;
}

.mobile-section .section-title {
    color: var(--bni-white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.mobile-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.mobile-section .section-icon {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.mobile-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.mobile-feature-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mobile-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-feature-item:hover::before {
    opacity: 1;
}

.mobile-feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-feature-item h5,
.mobile-feature-item h6 {
    color: var(--bni-white);
    font-weight: 600;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.mobile-feature-item h5 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-feature-item p,
.mobile-feature-item ol,
.mobile-feature-item li {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.mobile-feature-item ol {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.mobile-feature-item li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.mobile-feature-item li:last-child {
    margin-bottom: 0;
}

.mobile-feature-item i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}



.method-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.method-get {
    background: var(--success-color);
    color: var(--bni-white);
}

.method-post {
    background: var(--warning-color);
    color: var(--bni-white);
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, var(--bni-white) 0%, var(--neutral-50) 100%);
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.support-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-btn-primary {
    background: var(--bni-maroon);
    color: var(--bni-white);
}

.support-btn-primary:hover {
    background: var(--bni-maroon-dark);
    color: var(--bni-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.3);
}

.support-btn-outline {
    background: transparent;
    color: var(--bni-maroon);
    border-color: var(--bni-maroon);
}

.support-btn-outline:hover {
    background: var(--bni-maroon);
    color: var(--bni-white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .section-content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .documentation-hero {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

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

    .nav-card {
        padding: 1.5rem;
    }

    .nav-card-title {
        font-size: 1.125rem;
    }

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

    .section-icon {
        width: 64px;
        height: 64px;
    }

    .section-icon i {
        font-size: 1.5rem;
    }

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

    .section-content {
        padding: 1.5rem;
    }

    .process-steps {
        gap: 1rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .checklist-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .mobile-section,
    .support-section {
        padding: 2rem 1.5rem;
    }

    .support-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .nav-card {
        padding: 1rem;
    }

    .section-header {
        padding: 1.5rem 1rem;
    }

    .section-content {
        padding: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .documentation-hero,
    .nav-dashboard,
    .support-section {
        display: none;
    }

    .section-container {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }

    .section-header {
        background: none;
        border-bottom: 2px solid #ddd;
    }

    .feature-card,
    .guide-item,
    .checklist-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
