/* Custom styles for VisioForge Help */

/* VisioForge brand colors - matching visioforge.com */
:root {
    /* Primary brand colors */
    --vf-primary: #0ea5e9;          /* Cyan/sky blue - primary accent */
    --vf-primary-dark: #0284c7;     /* Darker cyan for hover states */
    --vf-primary-light: #38bdf8;    /* Lighter cyan */
    
    /* Background colors (dark theme) */
    --vf-bg-dark: #0f172a;          /* Deep slate blue background */
    --vf-bg-card: #1e293b;          /* Card/surface background */
    --vf-bg-elevated: #334155;      /* Elevated surface */
    
    /* Text colors */
    --vf-text-primary: #f1f5f9;     /* Primary text - light */
    --vf-text-secondary: #94a3b8;   /* Secondary text - muted */
    
    /* Accent colors */
    --vf-success: #22c55e;          /* Green for success */
    --vf-warning: #f59e0b;          /* Amber for warnings */
    --vf-error: #ef4444;            /* Red for errors */
}

/* Override Material theme primary color */
[data-md-color-scheme="slate"] {
    --md-primary-fg-color: #0ea5e9;
    --md-primary-fg-color--light: #38bdf8;
    --md-primary-fg-color--dark: #0284c7;
    --md-accent-fg-color: #22d3ee;
    
    /* Darker background to match visioforge.com */
    --md-default-bg-color: #0f172a;
    --md-default-bg-color--light: #1e293b;
    --md-default-bg-color--lighter: #334155;
    --md-default-bg-color--lightest: #475569;
    
    /* Code block styling */
    --md-code-bg-color: #1e293b;
    --md-code-fg-color: #e2e8f0;
    
    /* Footer */
    --md-footer-bg-color: #020617;
    --md-footer-bg-color--dark: #020617;
}

/* Light theme - professional look */
[data-md-color-scheme="default"] {
    --md-primary-fg-color: #0284c7;
    --md-primary-fg-color--light: #0ea5e9;
    --md-primary-fg-color--dark: #0369a1;
    --md-accent-fg-color: #0891b2;
}

/* Header styling */
.md-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

[data-md-color-scheme="slate"] .md-header {
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    border-bottom: 1px solid #1e293b;
}

/* Navigation tabs */
[data-md-color-scheme="slate"] .md-tabs {
    background-color: #0f172a;
    border-bottom: 1px solid #1e293b;
}

/* Sidebar styling */
[data-md-color-scheme="slate"] .md-sidebar {
    background-color: #0f172a;
}

[data-md-color-scheme="slate"] .md-nav__link:hover {
    color: #0ea5e9;
}

[data-md-color-scheme="slate"] .md-nav__link--active {
    color: #0ea5e9;
}

/* Links */
[data-md-color-scheme="slate"] .md-typeset a {
    color: #38bdf8;
}

[data-md-color-scheme="slate"] .md-typeset a:hover {
    color: #0ea5e9;
}

/* ============================================
   MkDocs Material Button Styling
   ============================================ */

/* Base button styling - all buttons */
.md-typeset .md-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Dark theme - Primary button - cyan gradient */
[data-md-color-scheme="slate"] .md-typeset .md-button--primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff !important;
    border-color: #0369a1;
}

[data-md-color-scheme="slate"] .md-typeset .md-button--primary:hover,
[data-md-color-scheme="slate"] .md-typeset .md-button--primary:focus {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    color: #ffffff !important;
}

/* Dark theme - Secondary button */
[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary) {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #e2e8f0 !important;
    border-color: #475569;
}

[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary):hover,
[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary):focus {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.4);
    color: #ffffff !important;
}

/* ============================================
   Responsive Video Embed Wrapper
   ============================================ */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Sample banner style - matching Retype :::sample component */
.sample-banner {
    text-align: center;
    color: #FFFFFF;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: 1px solid #0369a1;
    padding-top: 60px;
    padding-bottom: 60px;
    font-size: 40px;
    font-weight: bold;
}

/* Hero banner for homepage */
.hero-banner {
    text-align: center;
    color: #FFFFFF;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: 1px solid #0369a1;
    padding: 3rem 2rem;
    margin: 1rem 0 2rem 0;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.hero-banner p {
    margin: 0;
    color: #FFFFFF !important;
}

/* Grid cards for feature display */
.grid.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.grid.cards > ul {
    display: contents;
    list-style: none;
    padding: 0;
    margin: 0;
}

.grid.cards > ul > li,
.grid.cards > div {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.grid.cards > ul > li:hover,
.grid.cards > div:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.grid.cards .lg {
    font-size: 2.5rem;
}

.grid.cards .middle {
    vertical-align: middle;
}

/* Light theme grid cards */
[data-md-color-scheme="default"] .grid.cards > ul > li,
[data-md-color-scheme="default"] .grid.cards > div {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
}

[data-md-color-scheme="default"] .hero-banner {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

/* Feature grid for homepage */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.feature-card img {
    margin-bottom: 1rem;
    max-width: 80px;
    height: auto;
}

.feature-card h3 {
    color: #f1f5f9;
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.feature-card p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Light theme feature cards */
[data-md-color-scheme="default"] .feature-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #e2e8f0;
}

[data-md-color-scheme="default"] .feature-card h3 {
    color: #1e293b;
}

[data-md-color-scheme="default"] .feature-card p {
    color: #475569;
}

/* Platform support table icons */
.md-typeset img[alt*="100x100"] {
    width: 100px;
    height: 100px;
}

/* Code block enhancements */
.md-typeset pre > code {
    font-size: 0.85em;
}

[data-md-color-scheme="slate"] .md-typeset pre {
    background-color: #1e293b;
    border: 1px solid #334155;
}

[data-md-color-scheme="slate"] .highlight .hll {
    background-color: #334155;
}

/* Mermaid diagram styling */
.mermaid {
    text-align: center;
    margin: 1em 0;
}

/* Admonition styling */
[data-md-color-scheme="slate"] .md-typeset .admonition {
    border-left-width: 4px;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note {
    border-color: #0ea5e9;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.tip {
    border-color: #22c55e;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.warning {
    border-color: #f59e0b;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.danger {
    border-color: #ef4444;
}

/* Table styling */
[data-md-color-scheme="slate"] .md-typeset table:not([class]) {
    background-color: #1e293b;
    border: 1px solid #334155;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
    background-color: #0f172a;
    border-color: #334155;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
    border-color: #334155;
}

/* Search bar */
[data-md-color-scheme="slate"] .md-search__input {
    background-color: #1e293b;
    border: 1px solid #334155;
}

[data-md-color-scheme="slate"] .md-search__input::placeholder {
    color: #64748b;
}

/* Footer */
[data-md-color-scheme="slate"] .md-footer {
    background-color: #020617;
    border-top: 1px solid #1e293b;
}

/* Content area cards/blocks */
[data-md-color-scheme="slate"] .md-content {
    background-color: #0f172a;
}

/* Scrollbar styling for dark theme */
[data-md-color-scheme="slate"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-md-color-scheme="slate"] ::-webkit-scrollbar-track {
    background: #1e293b;
}

[data-md-color-scheme="slate"] ::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

[data-md-color-scheme="slate"] ::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ============================================
   Product Badge Buttons - VisioForge Style
   ============================================ */

/* Container for product badges */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem 0;
}

/* Base badge style - info variant (cyan/blue) */
.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Info variant - primary product links (cyan) */
.product-badge--info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff !important;
    border-color: #0369a1;
}

.product-badge--info:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    color: #ffffff !important;
}

/* Dark variant - secondary/component badges */
.product-badge--dark {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #e2e8f0 !important;
    border-color: #475569;
}

.product-badge--dark:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.4);
    color: #ffffff !important;
}

/* Success variant - green */
.product-badge--success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff !important;
    border-color: #15803d;
}

.product-badge--success:hover {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    color: #ffffff !important;
}

/* Warning variant - amber/orange */
.product-badge--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    border-color: #b45309;
}

.product-badge--warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: #ffffff !important;
}

/* Danger variant - red */
.product-badge--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    border-color: #b91c1c;
}

.product-badge--danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    color: #ffffff !important;
}

/* Light theme adjustments */
[data-md-color-scheme="default"] .product-badge--dark {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border-color: #334155;
}

/* Badge with icon */
.product-badge .twemoji,
.product-badge svg {
    margin-right: 0.4rem;
    width: 1.1em;
    height: 1.1em;
}
