/* Zyntro Font Face Declarations */
@font-face {
    font-family: 'Zyntro';
    src: url('../fonts/zyntro-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zyntro';
    src: url('../fonts/zyntro-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zyntro';
    src: url('../fonts/zyntro-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zyntro';
    src: url('../fonts/zyntro-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zyntro';
    src: url('../fonts/zyntro-heavy.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zyntro';
    src: url('../fonts/zyntro-black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-warning: #fd7e14;
}

body {
    background-color: #f8f9fa;
    font-family: 'Zyntro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
}

/* Heading Font Styles */
h1, h2, h3, h4, h5, h6,
.content-title,
.content-subtitle,
.nav-section-title,
.mobile-nav-header h5,
.search-result-title,
.card-title {
    font-family: 'Zyntro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
}

/* Specific heading weights */
h1, .content-title {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3 {
    font-weight: 600;
}

h4, h5, h6 {
    font-weight: 500;
}

/* UI Elements Font */
button, .btn, .nav-link-custom, .mobile-nav-link {
    font-family: 'Zyntro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.main-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 20px;
    min-height: calc(100vh - 40px);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Zyntro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bs-primary);
    text-decoration: none;
}

.version-dropdown {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--bs-secondary);
}

.search-bar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    width: 300px;
    font-size: 0.9rem;
}

.search-bar:focus {
    background: white;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.nav-link-custom {
    font-family: 'Zyntro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--bs-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    color: var(--bs-primary);
    background: #f8f9fa;
}

.btn-signup {
    background: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-signup:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.btn-learn-more {
    background: var(--bs-warning);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-learn-more:hover {
    background: #e8590c;
    transform: translateY(-1px);
}

/* Sidebar Styles */
.sidebar {
    background: white;
    border-right: 1px solid #e9ecef;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 2rem 0;
}

.fast-search {
    padding: 0 2rem 2rem;
}

.fast-search input {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.9rem;
}

.fast-search input:focus {
    background: white;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.nav-section {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--bs-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-item a:hover {
    background: #f8f9fa;
    color: var(--bs-primary);
}

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

.nav-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

/* Accordion Styles */
.accordion-flush .accordion-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.accordion-flush .accordion-button {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--bs-secondary);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.accordion-flush .accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: var(--bs-primary);
    box-shadow: none;
}

.accordion-flush .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.accordion-flush .accordion-body {
    padding: 0.5rem 1rem 1rem;
}

.accordion-flush .accordion-body .nav-item {
    margin-left: 1rem;
    margin-bottom: 0.25rem;
}

.accordion-flush .accordion-body .nav-item a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* Content Area */
.content-area {
    padding: 2rem;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

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

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.content-subtitle {
    color: var(--bs-secondary);
    font-size: 1.1rem;
}

.content-tabs {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.content-tabs .nav-link {
    border: none;
    color: var(--bs-secondary);
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    margin-right: 0.5rem;
}

.content-tabs .nav-link.active {
    background: var(--bs-primary);
    color: white;
}

.code-block {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
    color: #d4d4d4;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
}

.code-actions button {
    background: transparent;
    border: 1px solid #404040;
    color: #d4d4d4;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-actions button:hover {
    background: #404040;
}

.tip-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #e1bee7;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.tip-box .tip-icon {
    color: var(--bs-primary);
    margin-right: 0.75rem;
}

.next-steps {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.next-steps .btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.next-steps .btn:hover {
    transform: translateY(-1px);
}

.accordion-header{
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .header-nav {
        padding: 1rem;
    }
    
    .search-bar {
        width: 200px;
    }
    
    .sidebar {
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .content-area {
        height: auto;
    }
}
.gap-4{
    gap: 1rem;
}

/* Post Content Styles */
.post-content {
    line-height: 1.7;
    font-size: 1.1rem;
}

.post-content h1, .post-content h2, .post-content h3, 
.post-content h4, .post-content h5, .post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #212529;
}

.post-content h1 { font-size: 2.5rem; }
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

.post-content p {
    margin-bottom: 1.5rem;
    color: #495057;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content pre {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    position: relative;
}

.code-copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d4d4d4;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.post-content pre code {
    background: none;
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-content code:not(pre code) {
    background: #f8f9fa;
    color: #e83e8c;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content th, .post-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.post-content th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.post-meta {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--bs-primary);
}

.post-meta .meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.post-meta .meta-item:last-child {
    margin-bottom: 0;
}

.post-meta .meta-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
    min-width: 80px;
}

.post-meta .meta-value {
    color: #6c757d;
}

.pro-tip {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.pro-tip::before {
    content: "💡";
    position: absolute;
    top: -20px;
    left: 20px;
    background-color: rgb(232, 144, 45);
    padding: 0 10px;
    font-size: 1.2rem;
    border-radius: 50%;
    padding: 5px;
    padding-left: 10px;
    width: 37px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.pro-tip h5 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #856404;
    font-weight: 600;
}

.pro-tip p {
    margin-bottom: 0;
    color: #856404;
}

.video-embed {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.post-navigation .btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-navigation .btn:hover {
    transform: translateY(-1px);
}

/* Feedback Section Styles */
.feedback-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.feedback-buttons .btn {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-width: 2px;
}

.feedback-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feedback-buttons .btn:active {
    transform: translateY(0);
}

.feedback-buttons .btn.btn-outline-success:hover {
    background: #198754;
    border-color: #198754;
    color: white;
}

.feedback-buttons .btn.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

#feedbackMessage {
    font-weight: 500;
}

#feedbackMessage.success {
    color: #198754;
}

#feedbackMessage.error {
    color: #dc3545;
}

/* Feedback Modal Styles */
.modal {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    border-bottom: 1px solid #fecaca;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    color: #dc2626;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc2626;
    opacity: 0.8;
    padding: 0.5rem;
    line-height: 1;
}

.btn-close:hover {
    opacity: 1;
    color: #b91c1c;
}

.btn-close::before {
    content: "×";
    font-size: 1.5rem;
    font-weight: bold;
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    border-radius: 8px;
    font-weight: 600;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
}

/* Search Interface Styles */
.search-container {
    position: relative;
    display: inline-block;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.search-result-snippet {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.search-result-breadcrumb {
    font-size: 0.75rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-result-breadcrumb i {
    font-size: 0.7rem;
}

.search-loading {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.search-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
}

.search-no-results i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.search-highlight {
    background: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

.search-stats {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #495057;
    text-align: center;
}

.search-shortcuts {
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

.search-shortcuts kbd {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    margin: 0 0.2rem;
}

/* Mobile Navigation Styles */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.show {
    display: block;
    opacity: 1;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav-overlay.show .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--bs-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: var(--bs-primary);
}

.mobile-sidebar-content {
    margin-top: 2rem;
}

/* Mobile Menu Header Styles */
.mobile-nav-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.mobile-nav-header h5 {
    color: #212529;
    font-weight: 600;
}

#mobileMenuClose {
    border: none !important;
    background: none !important;
    color: #212529 !important;
    padding: 0.5rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#mobileMenuClose:hover {
    background: #f8f9fa !important;
    color: var(--bs-primary) !important;
}

#mobileMenuClose:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1) !important;
    outline: none !important;
}

/* Mobile Menu Button Styles */
#mobileMenuToggle {
    border: none !important;
    background: none !important;
    color: #212529 !important;
    padding: 0.5rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#mobileMenuToggle:hover {
    background: #f8f9fa !important;
    color: var(--bs-primary) !important;
}

#mobileMenuToggle:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1) !important;
    outline: none !important;
}

/* Mobile search adjustments */
@media (max-width: 768px) {
    .main-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .header-nav {
        padding: 1rem 1.5rem;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: white;
        border-bottom: 1px solid #e9ecef;
    }
    
    /* Ensure mobile menu button is visible */
    .d-md-none {
        display: block !important;
    }
    
    .d-none.d-md-flex {
        display: none !important;
    }
    
    .search-results {
        left: -50px;
        right: -50px;
        max-height: 400px;
    }
    
    .search-result-item {
        padding: 0.75rem;
    }
    
    .search-result-title {
        font-size: 0.9rem;
    }
    
    .search-result-snippet {
        font-size: 0.8rem;
    }
    
    .content-area {
        padding: 1.5rem;
        height: auto;
        min-height: calc(100vh - 80px);
    }
    
    .content-title {
        font-size: 1.5rem;
    }
    
    .content-subtitle {
        font-size: 1rem;
    }
    
    /* Hide desktop sidebar on mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Mobile video adjustments */
    iframe {
        width: 100% !important;
        height: 250px !important;
    }
}

@media (max-width: 480px) {
    .header-nav {
        padding: 1rem;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .mobile-nav-content {
        width: 90%;
        padding: 1.5rem 1rem;
    }
}
