/* Prime Market Information Portal - Shared Styles */

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-bg-color: #1e2936;
    --secondary-bg-color: #151d27;
    --code-block-bg: #0f1419;
    --primary-text-color: #d4d8e0;
    --secondary-text-color: #b0b7c5;
    --muted-text-color: #75808f;
    --primary-accent: #5ba3d8;
    --primary-accent-hover: #4287b8;
    --main-border-color: rgba(200, 210, 220, 0.08);
    --code-success-color: #98c379;
    --code-warning-color: #e5c07b;
}

body {
    font-family: 'Segoe UI', -apple-system, system-ui, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-bg-color);
    color: var(--secondary-text-color);
    line-height: 1.65;
    min-height: 100vh;
}

/* ============ HEADER & NAVIGATION ============ */
.page-header {
    background: rgba(26, 31, 46, 0.95);
    border-bottom: 1px solid var(--main-border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-text-color);
    font-size: 20px;
    font-weight: 600;
}

.brand-logo img {
    width: 32px;
    height: 32px;
}

.nav-list {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-list a {
    color: var(--secondary-text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a.selected {
    color: var(--primary-accent);
}

.hamburger-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-toggle span {
    width: 24px;
    height: 2px;
    background: var(--secondary-text-color);
    transition: all 0.3s;
}

/* ============ FOOTER ============ */
.site-footer {
    text-align: center;
    padding: 56px 28px;
    border-top: 1px solid rgba(200, 210, 220, 0.08);
}

.site-footer p {
    color: #75808f;
    font-size: 14px;
    margin: 0;
}

.site-footer em {
    color: #6a6f80;
}

/* ============ MOBILE MENU ============ */
.mobile-nav {
    display: none;
}

/* ============ MAIN CONTENT ============ */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 28px;
}

.breadcrumbs {
    font-size: 14px;
    color: var(--muted-text-color);
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--muted-text-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-accent);
}

.breadcrumbs span {
    margin: 0 8px;
}

/* ============ TYPOGRAPHY ============ */
h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 16px;
    line-height: 1.2;
}

h2 {
    font-size: 34px;
    font-weight: 600;
    color: var(--primary-text-color);
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.3;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-text-color);
    margin-top: 32px;
    margin-bottom: 12px;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text-color);
    margin-top: 24px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 16px;
    max-width: 800px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--muted-text-color);
    margin-bottom: 32px;
}

/* ============ LISTS ============ */
ul, ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
}

.arrow-list {
    list-style: none;
    margin-left: 0;
}

.arrow-list li::before {
    content: "→ ";
    color: var(--primary-accent);
    font-weight: bold;
    margin-right: 8px;
}

/* ============ CODE BLOCKS ============ */
.code-box {
    position: relative;
    background: var(--code-block-bg);
    border: 1px solid var(--main-border-color);
    border-radius: 6px;
    margin: 24px 0;
    overflow: hidden;
}

.btn-copy {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary-accent);
    color: #fff;
}

pre {
    padding: 48px 20px 20px 20px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

code {
    color: var(--code-success-color);
}

pre code {
    color: var(--secondary-text-color);
}

/* Inline code */
p code, li code {
    background: var(--code-block-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--code-warning-color);
}

/* ============ LINKS ============ */
a {
    color: var(--primary-accent);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-accent-hover);
}

.external-link::after {
    content: " ↗";
    font-size: 0.8em;
}

.github-link::after {
    content: " 🔗";
}

.youtube-link::after {
    content: " ▶️";
}

/* ============ CARDS ============ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.card {
    background: var(--secondary-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: 6px;
    padding: 24px;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card h3 {
    margin-top: 0;
    font-size: 20px;
}

.card p {
    margin-bottom: 16px;
    color: var(--muted-text-color);
}

.card a {
    display: inline-block;
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 500;
}

/* ============ MARKET LINKS SECTION ============ */
.links-section {
    background: rgba(34, 40, 51, 0.4);
    padding: 48px 32px;
    border-radius: 10px;
    margin: 48px 0;
}

.primary-mirror-box {
    background: var(--secondary-bg-color);
    border: 2px solid var(--primary-accent);
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 32px;
}

.mirror-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.onion-address {
    display: block;
    background: var(--code-block-bg);
    color: var(--code-success-color);
    padding: 16px 20px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
    margin-bottom: 16px;
    word-break: break-all;
    border: 1px solid var(--main-border-color);
}

.copy-mirror-btn {
    background: var(--primary-accent);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-mirror-btn:hover {
    background: var(--primary-accent-hover);
    transform: translateY(-2px);
}

.mirrors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.mirror-card {
    background: var(--secondary-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: 6px;
    padding: 20px;
    position: relative;
}

.mirror-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mirror-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-text-color);
    text-transform: uppercase;
}

.link-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-active {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.status-inactive {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.mirror-url-small {
    display: block;
    background: var(--code-block-bg);
    color: var(--code-warning-color);
    padding: 10px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    word-break: break-all;
    margin-bottom: 12px;
}

.copy-mirror-btn-small {
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary-accent);
    border: 1px solid var(--primary-accent);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-mirror-btn-small:hover {
    background: var(--primary-accent);
    color: white;
}

.links-warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--secondary-text-color);
}

.links-warning strong {
    color: #ef4444;
}

/* ============ PLATFORM SLIDER ============ */
.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 32px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 600px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
}

.carousel-slide.selected {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--primary-text-color);
    padding: 32px 24px 24px;
    font-size: 16px;
    text-align: center;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 16px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(74, 144, 226, 0.8);
}

.carousel-control-prev {
    left: 16px;
    border-radius: 0 4px 4px 0;
}

.carousel-control-next {
    right: 16px;
    border-radius: 4px 0 0 4px;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.selected {
    background: var(--primary-accent);
    width: 32px;
    border-radius: 6px;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ============ VIDEOS ============ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.video-item {
    background: var(--secondary-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-accent);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.8);
    border: 4px solid var(--primary-accent);
    border-radius: 50%;
    color: white;
    font-size: 34px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.video-play-btn:hover {
    background: var(--primary-accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-caption {
    padding: 16px;
    font-size: 14px;
    color: var(--secondary-text-color);
    text-align: center;
    margin: 0;
}

/* ============ IMAGES ============ */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.image-gallery img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid var(--main-border-color);
    cursor: pointer;
    transition: transform 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: var(--muted-text-color);
    margin-top: 8px;
}

.content-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--main-border-color);
    margin: 24px 0;
    display: block;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin: 48px 0;
}

/* ============ HERO SECTION ============ */
.hero-banner {
    text-align: center;
    padding: 48px 28px 32px;
}

.hero-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.hero-banner h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.hero-banner .section-subtitle {
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto 20px;
    color: var(--muted-text-color);
}

.button-access-mirrors {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary-accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.button-access-mirrors:hover {
    background: var(--primary-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    color: white;
}

/* ============ RESOURCE LINKS ============ */
.resource-section {
    margin: 48px 0;
}

.resource-section h3 {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--main-border-color);
}

.resource-list {
    list-style: none;
    margin-left: 0;
}

.resource-list li {
    margin-bottom: 20px;
    padding-left: 24px;
    position: relative;
}

.resource-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-accent);
    font-weight: bold;
}

.resource-list a {
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.resource-list .description {
    font-size: 14px;
    color: var(--muted-text-color);
    margin-left: 0;
}

/* ============ NEWS ITEMS ============ */
.news-item {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--main-border-color);
}

.news-date {
    font-size: 14px;
    color: var(--muted-text-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    /* Slider optimization for mobile */
    .carousel-track {
        height: 300px;
    }

    .carousel-control {
        padding: 12px 16px;
        font-size: 20px;
        min-width: 44px;
        min-height: 44px;
    }

    .carousel-control-prev {
        left: 8px;
    }

    .carousel-control-next {
        right: 8px;
    }

    .carousel-caption {
        font-size: 13px;
        padding: 16px 12px 12px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
        min-width: 32px;
        min-height: 32px;
        padding: 10px;
    }

    .carousel-indicator.selected {
        width: 40px;
    }

    /* Navigation - hide desktop, show mobile */
    .header-content-wrapper {
        padding: 0 20px;
    }

    .primary-navigation {
        display: none;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        z-index: 9999;
        flex-direction: column;
        gap: 8px;
        padding: 16px 20px;
        background: #0f1419;
        border-bottom: 2px solid var(--primary-accent);
    }

    .mobile-nav.selected,
    .mobile-nav.is-active {
        display: flex;
    }

    .mobile-nav a {
        display: block;
        padding: 14px 16px;
        font-size: 16px;
        color: var(--secondary-text-color);
        text-decoration: none;
        background: var(--secondary-bg-color);
        border-radius: 6px;
    }

    .mobile-nav a:hover,
    .mobile-nav a.selected {
        background: var(--primary-accent);
        color: white;
    }

    .hamburger-toggle {
        display: flex;
    }

    .hamburger-toggle.selected span:nth-child(1),
    .hamburger-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger-toggle.selected span:nth-child(2),
    .hamburger-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-toggle.selected span:nth-child(3),
    .hamburger-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Typography */
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }

    .hero-banner h1 {
        font-size: 24px;
    }

    .hero-banner .section-subtitle {
        font-size: 13px;
    }

    .hero-icon {
        width: 32px;
        height: 32px;
    }

    .hero-banner {
        padding: 24px 20px 20px;
    }

    body {
        overflow-x: hidden;
    }

    main {
        width: 100%;
        overflow-x: hidden;
    }

    /* Prevent code blocks from causing horizontal scroll */
    pre, code {
        max-width: 100%;
        overflow-x: auto;
        word-wrap: break-word;
        white-space: pre-wrap;
    }

    /* Prevent images from overflowing */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Prevent tables from overflowing */
    table {
        max-width: 100%;
        overflow-x: auto;
        display: block;
    }

    /* Links section - KEEP PROMINENT */
    .links-section {
        padding: 32px 20px;
        margin: 24px 0;
        background: rgba(34, 40, 51, 0.6);
        border: 1px solid var(--primary-accent);
        margin-left: -4px;
        margin-right: -4px;
    }

    .links-section h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .primary-mirror-box {
        padding: 20px 16px;
        margin-bottom: 24px;
    }

    .onion-address {
        font-size: 13px;
        padding: 12px 16px;
        word-break: break-all;
        line-height: 1.5;
    }

    /* Code copy buttons - prevent overlap with text */
    .btn-copy {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 0;
        padding: 10px 16px;
        min-height: 44px;
        font-size: 14px;
        touch-action: manipulation;
        border-radius: 4px 4px 0 0;
    }

    pre {
        padding: 16px;
        border-radius: 0 0 4px 4px;
    }

    /* Make mirror copy buttons touch-friendly (minimum 44px) */
    .copy-mirror-btn {
        min-height: 48px;
        min-width: 120px;
        font-size: 15px;
        padding: 12px 24px;
        touch-action: manipulation;
    }

    .copy-mirror-btn-small {
        min-height: 44px;
        min-width: 44px;
        font-size: 18px;
        padding: 12px;
        touch-action: manipulation;
    }

    .mirror-card {
        padding: 16px;
    }

    .mirrors-grid {
        gap: 16px;
    }

    .button-access-mirrors {
        min-height: 48px;
        padding: 14px 32px;
        font-size: 16px;
        touch-action: manipulation;
    }

    /* Hide or simplify content on mobile */
    .split-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Hide "Getting Started" section with login image on mobile */
    .split-content .content-image {
        display: none;
    }

    /* Hide video section completely on mobile */
    .video-section {
        display: none;
    }

    /* Hide registration/getting started section on mobile */
    .registration-section {
        display: none;
    }

    /* Simplify "About" section on mobile */
    section h3 {
        font-size: 16px;
        margin-top: 20px;
    }

    section ul {
        margin-left: 20px;
        padding-left: 0;
    }

    section ul li {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .arrow-list {
        margin-left: 0;
        padding-left: 20px;
    }

    /* Optimize "Quick Start" cards for mobile */
    .card h3 {
        font-size: 18px;
    }

    .card p {
        font-size: 14px;
    }

    .card a {
        font-size: 14px;
        padding: 8px 0;
    }

    /* Important notice card */
    section .card h4 {
        font-size: 16px;
        margin-top: 16px;
    }

    /* Simplify cards - keep but single column */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 20px 16px;
    }

    /* Container adjustments */
    .page-content {
        padding: 24px 20px;
        width: 100%;
        overflow-x: hidden;
    }

    section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Image gallery */
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 13px;
        margin-bottom: 16px;
        padding-left: 0;
        overflow-wrap: break-word;
    }

    /* Resources page */
    .resource-section {
        margin: 32px 0;
    }

    .resource-list li {
        padding-left: 20px;
        margin-bottom: 16px;
    }

    .resource-list a {
        font-size: 15px;
    }

    .resource-list .description {
        font-size: 13px;
    }

    /* News items */
    .news-item {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    /* Links warning */
    .links-warning {
        font-size: 13px;
        padding: 12px 16px;
    }

    /* Footer */
    .site-footer {
        padding: 24px 16px;
    }

    .site-footer p {
        font-size: 13px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .carousel-track {
        height: 250px;
    }

    .hero-banner h1 {
        font-size: 20px;
    }

    .hero-banner .section-subtitle {
        font-size: 12px;
    }

    .hero-banner {
        padding: 20px 16px 16px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .page-content {
        padding: 20px 16px;
        width: 100%;
    }

    .links-section {
        padding: 24px 16px;
        margin-left: -4px;
        margin-right: -4px;
    }

    .primary-mirror-box {
        padding: 16px 12px;
    }

    .onion-address {
        font-size: 12px;
        padding: 10px 12px;
        word-break: break-all;
        overflow-wrap: break-word;
    }

    .copy-mirror-btn {
        width: 100%;
        margin-top: 8px;
    }

    .card {
        padding: 16px 12px;
    }

    section {
        padding-left: 0;
        padding-right: 0;
    }

    .header-content-wrapper {
        padding: 0 16px;
    }

    .nav-list {
        padding: 24px 16px;
    }

    pre, code {
        font-size: 12px;
        padding: 8px;
    }
}

/* ============ TABS INTERFACE ============ */
.interface-tabs {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--secondary-bg-color);
    border: 2px solid var(--main-border-color);
    border-radius: 6px;
    color: var(--secondary-text-color);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--code-block-bg);
    border-color: var(--primary-accent);
}

.tab-btn.is-active {
    background: var(--primary-accent);
    color: var(--primary-bg-color);
    border-color: var(--primary-accent);
}

.tab-content-wrapper {
    margin-top: 24px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s;
}

.tab-panel.is-active {
    display: block;
}

.tab-panel img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.tab-description {
    margin-top: 16px;
    font-size: 16px;
    color: var(--muted-text-color);
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ============ NEW MODERN HEADER ============ */
.site-header-main {
    background: linear-gradient(135deg, #1e2936 0%, #151d27 100%);
    border-bottom: 1px solid rgba(91, 163, 216, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-wrapper-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.header-left {
    flex: 0 0 auto;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo-brand:hover {
    transform: translateY(-2px);
}

.logo-brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: #d4d8e0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 12px;
    font-weight: 500;
    color: #75808f;
    letter-spacing: 0.5px;
}

.header-navigation {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #b0b7c5;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    background: rgba(91, 163, 216, 0.1);
    color: #5ba3d8;
    transform: translateY(-1px);
}

.nav-link.active {
    background: #5ba3d8;
    color: #1e2936;
    box-shadow: 0 4px 8px rgba(91, 163, 216, 0.3);
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(91, 163, 216, 0.1);
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: #d4d8e0;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 81px;
    left: 0;
    right: 0;
    background: #0f1419;
    border-top: none;
    border-bottom: 2px solid #5ba3d8;
    z-index: 999;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    margin-top: 0;
}

.mobile-nav-menu.is-active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    display: block;
    padding: 16px 20px;
    margin-bottom: 8px;
    background: #151d27;
    border-radius: 8px;
    color: #b0b7c5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.selected {
    background: #5ba3d8;
    color: #1e2936;
    transform: translateX(8px);
}

@media (max-width: 768px) {
    .header-wrapper-container {
        padding: 0 20px;
        min-height: 70px;
    }

    .logo-brand img {
        width: 36px;
        height: 36px;
    }

    .logo-title {
        font-size: 18px;
    }

    .logo-subtitle {
        font-size: 11px;
    }

    .header-navigation {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}
