/**
 * Documentation & How-to-Use Page Styles
 */

/* ============================================
   DOCUMENTATION PAGE
============================================ */
.docs {
    padding-top: 8rem;
    min-height: 100vh;
}

/* Mobile Sidebar Toggle Button */
.docs__sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-slate-800);
    border: 1px solid var(--bg-slate-700);
    border-radius: 0.5rem;
    color: var(--text-slate-300);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: all var(--transition-fast);
}

.docs__sidebar-toggle:hover {
    background: var(--bg-slate-700);
    color: white;
}

.docs__sidebar-toggle .docs__toggle-close {
    display: none;
}

.docs__sidebar-toggle[aria-expanded="true"] .docs__toggle-open {
    display: none;
}

.docs__sidebar-toggle[aria-expanded="true"] .docs__toggle-close {
    display: block;
}

@media (min-width: 1024px) {
    .docs__sidebar-toggle {
        display: none;
    }
}

/* Sidebar Backdrop (mobile) */
.docs__sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.docs__sidebar-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1023px) {
    .docs__sidebar-backdrop {
        display: block;
    }
}

.docs__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
}

@media (min-width: 1024px) {
    .docs__layout {
        grid-template-columns: 280px 1fr;
        gap: 3rem;
    }
}

/* Sidebar */
.docs__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-slate-900);
    border-right: 1px solid var(--bg-slate-800);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.docs__sidebar.is-open {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .docs__sidebar {
        position: sticky;
        top: 5rem;
        width: auto;
        max-width: none;
        height: fit-content;
        max-height: calc(100vh - 6rem);
        background: transparent;
        border-right: none;
        z-index: auto;
        transform: none;
        padding: 0;
        padding-right: 1rem;
    }
}

/* Sidebar Header (mobile only) */
.docs__sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bg-slate-800);
    font-weight: 600;
    color: white;
}

@media (min-width: 1024px) {
    .docs__sidebar-header {
        display: none;
    }
}

.docs__sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--bg-slate-800);
    border: none;
    border-radius: 0.375rem;
    color: var(--text-slate-400);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.docs__sidebar-close:hover {
    background: var(--bg-slate-700);
    color: white;
}

.docs__nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1.5rem 0 0.5rem;
}

.docs__nav-title:first-child {
    margin-top: 0;
}

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

.docs__nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    margin: 0.125rem 0;
    color: var(--text-slate-400);
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all var(--transition-fast);
}

.docs__nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.docs__nav-link.active {
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.1);
}

/* Content */
.docs__content {
    max-width: 800px;
}

.docs__header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--bg-slate-800);
}

.docs__title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    margin: 0 0 0.5rem;
}

@media (min-width: 640px) {
    .docs__title {
        font-size: 2.5rem;
    }
}

.docs__subtitle {
    font-size: 1rem;
    color: var(--text-slate-400);
    margin: 0;
}

@media (min-width: 640px) {
    .docs__subtitle {
        font-size: 1.125rem;
    }
}

/* Sections */
.docs__section {
    margin-bottom: 4rem;
    scroll-margin-top: 5rem;
}

.docs__section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin: 0 0 1.5rem;
}

.docs__section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin: 2rem 0 1rem;
}

.docs__section p {
    color: var(--text-slate-300);
    line-height: 1.7;
    margin: 0 0 1rem;
}

/* Image Placeholders */
.docs__image-placeholder {
    background: var(--bg-slate-800);
    border: 2px dashed var(--bg-slate-600);
    border-radius: 0.75rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-slate-500);
    margin: 1.5rem 0;
}

.docs__image-placeholder--large {
    padding: 4rem;
    aspect-ratio: 16 / 9;
}

.docs__image-placeholder iconify-icon {
    color: var(--text-slate-600);
}

/* Steps */
.docs__steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.docs__step {
    display: flex;
    gap: 1rem;
}

.docs__step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent-indigo);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.docs__step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem;
}

.docs__step-content p {
    color: var(--text-slate-400);
    margin: 0;
}

/* Requirements */
.docs__requirements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .docs__requirements {
        grid-template-columns: repeat(4, 1fr);
    }
}

.docs__requirement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-slate-800);
    border-radius: 0.5rem;
}

.docs__requirement-icon {
    font-size: 1.25rem;
}

.docs__requirement-icon--success {
    color: var(--accent-green);
}

.docs__requirement strong {
    font-size: 0.875rem;
    color: white;
    display: block;
}

.docs__requirement span {
    font-size: 0.75rem;
    color: var(--text-slate-500);
}

/* Lists */
.docs__list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-slate-300);
}

.docs__list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.docs__list--numbered {
    list-style-type: decimal;
}

/* Cards Grid */
.docs__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .docs__cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.docs__card {
    padding: 1.5rem;
    background: var(--bg-slate-800);
    border-radius: 0.75rem;
    border: 1px solid var(--bg-slate-700);
    transition: border-color var(--transition-base);
}

.docs__card:hover {
    border-color: var(--accent-indigo);
}

.docs__card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.docs__card-icon--red { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); }
.docs__card-icon--indigo { background: rgba(99, 102, 241, 0.1); color: var(--accent-indigo); }
.docs__card-icon--green { background: rgba(34, 197, 94, 0.1); color: var(--accent-green); }
.docs__card-icon--pink { background: rgba(236, 72, 153, 0.1); color: var(--accent-pink); }
.docs__card-icon--yellow { background: rgba(234, 179, 8, 0.1); color: var(--accent-yellow); }

.docs__card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem;
}

.docs__card p {
    font-size: 0.75rem;
    color: var(--text-slate-400);
    margin: 0;
}

/* Code Blocks */
.docs__code {
    background: #0d1117;
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.docs__code pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
	background: transparent;
}

.docs__code code {
    color: var(--text-slate-200);
	max-width: 100%;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
	background: transparent;
}

/* Callout */
.docs__callout {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.docs__callout--info {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.docs__callout iconify-icon {
    color: var(--accent-cyan);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.docs__callout p {
    margin: 0;
    color: var(--text-slate-300);
    font-size: 0.875rem;
}

/* Comparison */
.docs__comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .docs__comparison {
        grid-template-columns: repeat(2, 1fr);
    }
}

.docs__comparison-item {
    padding: 1.5rem;
    background: var(--bg-slate-800);
    border-radius: 0.75rem;
}

.docs__comparison-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem;
}

.docs__comparison-item > p {
    font-size: 0.875rem;
    color: var(--text-slate-400);
    margin-bottom: 1rem;
}

.docs__comparison-item ul {
    margin: 0;
    padding-left: 1rem;
}

.docs__comparison-item li {
    font-size: 0.875rem;
    color: var(--text-slate-300);
}

/* API Table */
.docs__api-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.docs__api-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.docs__api-table th,
.docs__api-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-slate-700);
}

.docs__api-table th {
    background: var(--bg-slate-800);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs__api-table td {
    font-size: 0.875rem;
    color: var(--text-slate-300);
}

.docs__api-table code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    background: var(--bg-slate-800);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

/* ============================================
   HOW TO USE PAGE
============================================ */
.how-to-use {
    padding-top: 8rem;
    padding-bottom: 2rem;
}

.how-to-use__header {
    text-align: center;
    padding: 4rem 0;
}

.how-to-use__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 9999px;
    color: var(--accent-indigo-light);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.how-to-use__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: white;
    margin: 0 0 1rem;
}

.how-to-use__subtitle {
    font-size: 1.125rem;
    color: var(--text-slate-400);
    max-width: 600px;
    margin: 0 auto;
}

/* Video */
.how-to-use__video {
    margin-bottom: 4rem;
}

.how-to-use__video-wrapper {
    border-radius: 1rem;
    overflow: hidden;
}

.how-to-use__video-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--bg-slate-800);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-slate-500);
}

.how-to-use__video-placeholder iconify-icon {
    color: var(--accent-indigo);
    opacity: 0.5;
}

/* Overview */
.how-to-use__overview {
    margin-bottom: 4rem;
}

.how-to-use__section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    text-align: center;
    margin: 0 0 2rem;
}

.how-to-use__overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .how-to-use__overview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.how-to-use__overview-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

.how-to-use__overview-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent-indigo);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.how-to-use__overview-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.5rem;
}

.how-to-use__overview-card p {
    font-size: 0.75rem;
    color: var(--text-slate-400);
    margin: 0;
}

/* Steps */
.how-to-use__steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.how-to-use__step {
    padding: 2rem 0;
    border-top: 1px solid var(--bg-slate-800);
}

.how-to-use__step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.how-to-use__step-badge {
    padding: 0.25rem 0.75rem;
    background: var(--accent-indigo);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.how-to-use__step-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.how-to-use__step-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .how-to-use__step-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .how-to-use__step-content--reverse {
        direction: rtl;
    }
    
    .how-to-use__step-content--reverse > * {
        direction: ltr;
    }
}

.how-to-use__step-text p {
    color: var(--text-slate-300);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.how-to-use__step-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 1.5rem 0 0.5rem;
}

.how-to-use__list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-slate-300);
}

.how-to-use__list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.how-to-use__list ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Image Placeholders */
.how-to-use__image-placeholder {
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-slate-500);
    border: 2px dashed var(--bg-slate-600);
    background: var(--bg-slate-800);

	img {
		border-radius: 0.75rem;
	}
}

.how-to-use__image-placeholder--large {
    aspect-ratio: 16 / 10;
}

/* Tips */
.how-to-use__tip {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.how-to-use__tip iconify-icon {
    color: var(--accent-cyan);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.how-to-use__tip p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-slate-300);
}

.how-to-use__tip--warning {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.2);
}

.how-to-use__tip--warning iconify-icon {
    color: var(--accent-yellow);
}

/* Scenarios */
.how-to-use__scenarios {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.how-to-use__scenario {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-slate-800);
    border-radius: 0.5rem;
}

.how-to-use__scenario-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.how-to-use__scenario-icon--red { color: var(--accent-red); }
.how-to-use__scenario-icon--indigo { color: var(--accent-indigo); }
.how-to-use__scenario-icon--green { color: var(--accent-green); }

.how-to-use__scenario h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem;
}

.how-to-use__scenario p {
    font-size: 0.75rem;
    color: var(--text-slate-400);
    margin: 0;
}

/* Features List */
.how-to-use__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.how-to-use__feature {
    display: flex;
    gap: 0.75rem;
}

.how-to-use__feature iconify-icon {
    font-size: 1.25rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.how-to-use__feature strong {
    display: block;
    font-size: 0.875rem;
    color: white;
    margin-bottom: 0.25rem;
}

.how-to-use__feature p {
    font-size: 0.75rem;
    color: var(--text-slate-400);
    margin: 0;
}

/* Tabs */
.how-to-use__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 767px) {
    .how-to-use__tabs {
        grid-template-columns: 1fr;
    }
}

.how-to-use__tab {
    padding: 1rem;
    border-radius: 0.5rem;
}

.how-to-use__tab h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.75rem;
}

.how-to-use__tab h4 iconify-icon {
    color: var(--accent-cyan);
}

.how-to-use__tab ul {
    margin: 0;
    padding-left: 1rem;
}

.how-to-use__tab li {
    font-size: 0.75rem;
    color: var(--text-slate-400);
    margin-bottom: 0.25rem;
}

/* Breakpoints */
.how-to-use__breakpoints {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.how-to-use__breakpoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-slate-400);
}

.how-to-use__breakpoint iconify-icon {
    color: var(--accent-indigo);
}

.how-to-use__breakpoint span {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.how-to-use__breakpoint small {
    font-size: 0.75rem;
}

/* FAQ */
.how-to-use__faq {
    margin: 4rem 0;
}

.how-to-use__faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .how-to-use__faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.how-to-use__faq-item {
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.how-to-use__faq-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.75rem;
}

.how-to-use__faq-item p {
    font-size: 0.875rem;
    color: var(--text-slate-400);
    margin: 0;
    line-height: 1.6;
}

/* CTA */
.how-to-use__cta {
    margin: 4rem 0;
}

.how-to-use__cta-inner {
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
}

.how-to-use__cta-inner h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    margin: 0 0 0.5rem;
}

.how-to-use__cta-inner > p {
    color: var(--text-slate-400);
    margin: 0 0 1.5rem;
}

.how-to-use__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.how-to-use__cta-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.how-to-use__cta-btn--primary {
    background: var(--accent-indigo);
    color: white;
}

.how-to-use__cta-btn--primary:hover {
    background: #7c3aed;
}

.how-to-use__cta-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.how-to-use__cta-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}


@media (max-width: 768px) {
	.docs__code code {

	}

	.docs__api-table table {
		max-width: 100%;
		table-layout: fixed;
		min-width: 100%;
	}
}