/* documentation.css - Styles for Portfolio Pro Documentation */

/* --------------------
   RESET & BASIC SETUP
   -------------------- */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------
   TYPOGRAPHY
   -------------------- */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

a {
    color: #4361ee;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3a0ca3;
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f1f1f1;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #e63946;
}

/* --------------------
   LAYOUT
   -------------------- */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --------------------
   HEADER
   -------------------- */

.doc-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.doc-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #1a1a2e;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 0 0 1.5rem;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4361ee;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: #4361ee;
    text-decoration: none;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 1rem 0;
}

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

.mobile-nav li {
    margin: 0;
}

.mobile-nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
}

.mobile-nav a:hover {
    background-color: #f8f9fa;
    color: #4361ee;
    text-decoration: none;
}

/* --------------------
   HERO SECTION
   -------------------- */

.hero-section {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: #ffffff;
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI3NjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSI3MS42NCUiIHkxPSIyNS4wNzglIiB4Mj0iNzAuNzM1JSIgeTI9IjEwNS4wMDIlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIuMDMiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0wIDBoMTQ0MHY3NjVIMHoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0iZXZlbm9kZCIgb3BhY2l0eT0iLjQiLz48L3N2Zz4=');
    background-size: cover;
    opacity: 0.1;
}

.hero-section .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: #ffffff;
    color: #4361ee;
    border: none;
}

.btn-primary:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.hero-image {
    flex: 1;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

/* --------------------
   MAIN CONTENT
   -------------------- */

.doc-content {
    padding: 3rem 0;
}

.doc-content .container {
    display: flex;
    gap: 2rem;
}

/* --------------------
   SIDEBAR
   -------------------- */

.doc-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    height: calc(100vh - 90px);
    overflow-y: auto;
    padding-right: 1rem;
}

.sidebar-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.sidebar-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f1f1;
}

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

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

.sidebar-nav a {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #4361ee;
}

.sub-nav {
    list-style: none;
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
    border-left: 1px solid #f1f1f1;
}

.sub-nav li {
    margin-bottom: 0.25rem;
}

.sub-nav a {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    color: #666;
}

/* --------------------
   MAIN CONTENT AREA
   -------------------- */

.doc-main {
    flex: 1;
    min-width: 0; /* Prevent flex item from overflowing */
}

.doc-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.section-divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(to right, #4361ee, #3a0ca3);
    margin-top: 0.5rem;
}

.subsection {
    margin-top: 2.5rem;
}

.subsection h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

/* --------------------
   FEATURE GRID
   -------------------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: #4361ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    color: #ffffff;
    font-size: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* --------------------
   INFO BOXES
   -------------------- */

.info-box, .warning-box {
    display: flex;
    background-color: #f0f7ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-icon, .warning-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #4361ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.info-icon i, .warning-icon i {
    color: #ffffff;
    font-size: 1.25rem;
}

.info-content, .warning-content {
    flex: 1;
}

.info-content h4, .warning-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-content p, .warning-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.warning-box {
    background-color: #fff5f5;
}

.warning-icon {
    background-color: #e63946;
}

/* --------------------
   DEMO SHOWCASE
   -------------------- */

.demo-showcase {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f1f1;
}

.demo-showcase:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.demo-showcase h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

.demo-preview {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.demo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.demo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-preview:hover .demo-actions {
    opacity: 1;
}

.demo-description h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
}

.demo-description ul {
    padding-left: 1.25rem;
}

/* --------------------
   STEP BY STEP
   -------------------- */

.step-by-step {
    margin: 1.5rem 0;
}

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

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: #4361ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    margin-right: 1.25rem;
    margin-top: 0.25rem;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.image-container {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------
   CODE BLOCKS
   -------------------- */

.code-block {
    background-color: #1a1a2e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Courier New', Courier, monospace;
    color: #f8f9fa;
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre;
}

/* --------------------
   TABLES
   -------------------- */

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
}

.settings-table th, .settings-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
}

.settings-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #1a1a2e;
}

.settings-table tr:last-child td {
    border-bottom: none;
}

/* --------------------
   ACCORDION
   -------------------- */

.accordion {
    margin: 1.5rem 0;
}

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

.accordion-header {
    padding: 1.25rem;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #1a1a2e;
}

.accordion-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.accordion-icon::before, .accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #4361ee;
    transition: transform 0.3s ease;
}

.accordion-icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.accordion-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.accordion-item.active .accordion-icon::after {
    transform: rotate(90deg);
}

.accordion-content {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 1.25rem;
    max-height: 1000px; /* Arbitrary large value */
}

/* --------------------
   TROUBLESHOOTING
   -------------------- */

.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.troubleshooting-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.troubleshooting-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.problem-solution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.problem h4, .solution h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.problem h4 {
    color: #e63946;
}

.solution h4 {
    color: #4361ee;
}

.problem p, .solution p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.solution ol {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.solution li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* --------------------
   SUPPORT
   -------------------- */

.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.support-option {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.support-icon {
    width: 60px;
    height: 60px;
    background-color: #4361ee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.support-icon i {
    color: #ffffff;
    font-size: 1.5rem;
}

.support-option h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.support-option p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

.support-hours {
    margin: 2rem 0;
}

.support-hours h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.support-hours p {
    font-size: 0.95rem;
}

/* --------------------
   FOOTER
   -------------------- */

.doc-footer {
    background-color: #1a1a2e;
    color: #ffffff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-links, .footer-contact {
    flex: 1 1 200px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #4361ee;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
    color: #4361ee;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* --------------------
   BACK TO TOP BUTTON
   -------------------- */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #4361ee;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 1.25rem;
}

/* --------------------
   RESPONSIVE DESIGN
   -------------------- */

@media (max-width: 992px) {
    .doc-content .container {
        flex-direction: column;
    }

    .doc-sidebar {
        width: 100%;
        position: static;
        height: auto;
        margin-bottom: 2rem;
    }

    .hero-section .container {
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 100%;
    }

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

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-nav.active {
        display: block;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .doc-section {
        padding: 1.5rem;
    }

    .step {
        flex-direction: column;
    }

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