@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css?family=Raleway');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

@font-face {
    font-family: "PirulenRegular";
    src:
        url("../webFonts/PirulenRegular/font.woff2") format("woff2"),
        url("../webFonts/PirulenRegular/font.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg-primary: #111b20;
    --bg-secondary: #17252b;
    --panel-bg: #1b2d33;
    --border-color: #2c444b;
    --text-primary: #d9e2e6;
    --text-secondary: #bfd8df;
    --accent-green: #8ccf69;
    --accent-yellow: #c8c06a;
    --accent-red: #e05b5b;
    --sidebar-bg: #0e171b;
    --hover-bg: #24373d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Montserrat, Roboto, Geist, Arial, sans-serif;
    background: linear-gradient(180deg, #10191d 0%, #142127 100%);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo.brand-logo {
    display: flex;
    align-items: center;
    gap: 4px;

    width: 100%;
    max-width: 100%;

    font-family: "PirulenRegular", sans-serif;
    font-size: 16px;
    line-height: 1;

    white-space: nowrap;
}

.sidebar .brand-logo svg {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
}

.sidebar .brand-logo .brand-wordmark {
    display: inline-block;
    line-height: 1;
    transform: translateY(-1px);
	cursor: default;
}

.sidebar .brand-logo .brand-soc {
    color: #88b8b8;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-green);
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section h3 {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.nav-section a {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

.nav-section a:hover {
    background: var(--hover-bg);
    border-color: var(--border-color);
}

.main-content {
    margin-left: 260px;
    padding: 40px;
    width: calc(100% - 260px);
}

.hero {
    background: linear-gradient(135deg, #1b2d33 0%, #1d3237 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.hero h1 {
    margin-top: 0;
    font-size: 42px;
    color: white;
}

.hero p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 900px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-green);
}

.card h2 {
    margin-top: 0;
    color: white;
    font-size: 22px;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    background: #2d4950;
    border: 1px solid var(--border-color);
}

.button:hover {
    background: #35575f;
}


/* Clickable documentation cards */
.clickable-card {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.clickable-card:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 3px;
}

.btn-open-documentation {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    background: #2d4950;
    border: 1px solid var(--border-color);
    transition: 0.2s ease;
}

.clickable-card:hover .btn-open-documentation,
.clickable-card:focus-visible .btn-open-documentation {
    background: #35575f;
}

.audio-placeholder {
    margin-top: 24px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
}

code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }

    body {
        flex-direction: column;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

/* Documentation content */
.nav-section a.active {
    background: var(--hover-bg);
    border-color: var(--border-color);
    color: white;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--text-secondary);
    font-size: 13px;
}

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

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

.documentation-article {
    max-width: 1200px;
}

.documentation-header {
    margin-bottom: 24px;
	
	h1 {
		font-size: 24px;
	}
}

.eyebrow {
    display: none;
    margin: 0 0 8px;
    color: var(--accent-green) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.documentation-figure {
    margin: 0 0 30px;
    padding: 14px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.documentation-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.documentation-figure figcaption {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.documentation-section {
    margin-bottom: 22px;
    padding: 28px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.documentation-section h2,
.documentation-note h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 24px;
}

.documentation-section h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 17px;
}

.documentation-section p,
.documentation-note p,
.feature-item p,
.metric-description p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.documentation-section p:last-child,
.documentation-note p:last-child,
.feature-item p:last-child,
.metric-description p:last-child {
    margin-bottom: 0;
}

.feature-grid,
.metric-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.feature-item,
.metric-description {
    padding: 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.documentation-note {
    margin-bottom: 22px;
    padding: 24px 26px;
    background: rgba(140,207,105,0.06);
    border: 1px solid rgba(140,207,105,0.35);
    border-left: 4px solid var(--accent-green);
    border-radius: 12px;
}

.page-navigation {
    display: flex;
    justify-content: flex-start;
    margin-top: 28px;
}

@media (max-width: 700px) {
    .main-content {
        padding: 24px 18px;
    }

    .hero {
        padding: 26px 22px;
    }

    .hero h1 {
        font-size: 34px;
    }

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

    .documentation-section {
        padding: 22px;
    }
}


/* Video placeholders */
.video-placeholder {
    display: none;
    margin-top: 24px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
}

.video-placeholder.is-visible {
    display: block;
}

.video-placeholder p:first-child {
    margin-top: 0;
}

.video-placeholder p:last-child {
    margin-bottom: 0;
}

.video-embed-shell {
    margin-top: 12px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-color);
}

.video-placeholder iframe,
.video-placeholder video {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 10px;
}


/* Home page card grid */
.cards.home-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1050px) {
    .cards.home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cards.home-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* CyberFlow imported documentation */
.cyberflow-topic-cards {
    margin-top: 22px;
}

.cyberflow-doc-content {
    overflow-wrap: anywhere;
}

.cyberflow-doc-content > :first-child {
    margin-top: 0;
}

.cyberflow-doc-content h2,
.cyberflow-doc-content h3,
.cyberflow-doc-content h4,
.cyberflow-doc-content h5 {
    color: white;
    line-height: 1.3;
}

.cyberflow-doc-content h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

.cyberflow-doc-content h3 {
    margin: 26px 0 10px;
    font-size: 20px;
}

.cyberflow-doc-content h4 {
    margin: 22px 0 8px;
    font-size: 17px;
}

.cyberflow-doc-content p,
.cyberflow-doc-content li,
.cyberflow-doc-content dd,
.cyberflow-doc-content dt {
    color: var(--text-secondary);
    line-height: 1.7;
}

.cyberflow-doc-content a {
    color: #8ed5e3;
}

.cyberflow-doc-content a:hover {
    color: var(--accent-green);
}

.cyberflow-doc-content ul,
.cyberflow-doc-content ol {
    padding-left: 24px;
}

.cyberflow-doc-content pre,
.cyberflow-doc-content .highlight {
    max-width: 100%;
    overflow-x: auto;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(0,0,0,0.24);
}

.cyberflow-doc-content pre code {
    padding: 0;
    background: transparent;
    white-space: pre;
}

.cyberflow-doc-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 18px 0;
    border-collapse: collapse;
}

.cyberflow-doc-content th,
.cyberflow-doc-content td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-align: left;
    vertical-align: top;
}

.cyberflow-doc-content th {
    background: rgba(255,255,255,0.05);
    color: white;
}

.cyberflow-doc-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 8px;
}

.cyberflow-doc-content figure {
    margin: 22px 0;
}

.cyberflow-doc-content figcaption,
.cyberflow-doc-content .caption {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.cyberflow-doc-content .doc-callout,
.cyberflow-doc-content blockquote {
    margin: 20px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--accent-green);
    border-radius: 8px;
    background: rgba(140,207,105,0.06);
}

.cyberflow-doc-content dl {
    margin: 18px 0;
}

.cyberflow-doc-content dt {
    margin-top: 14px;
    color: white;
    font-weight: 600;
}

.cyberflow-doc-content dd {
    margin: 6px 0 0 18px;
}

.cyberflow-doc-content .row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.cyberflow-doc-content .column {
    flex: 1 1 280px;
    min-width: 0;
}

.cyberflow-ui-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 28px;
    margin-right: 6px;
    padding: 3px 7px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    background: rgba(255,255,255,0.035);
    font-family: Montserrat, Arial, sans-serif;
    font-style: normal;
}

.cyberflow-media-frame {
    display: block;
    width: 100%;
    min-height: 420px;
    margin: 20px 0;
    border: 0;
    border-radius: 10px;
}

@media (max-width: 700px) {
    .cyberflow-media-frame {
        min-height: 240px;
    }
}


/* SmartIR topic card grid */
.cards.smartir-topic-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1050px) {
    .cards.smartir-topic-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cards.smartir-topic-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}
