/**
 * Leto's Angels Tech-Docs
 * Designed and Developed by XcaliburMoon
 * 
 * Base:      #27D8D1
 * Analog -30: #27d878
 * Analog +30: #2787d8 (thin borders only)
 * Background: #fff
 * Text:       #000
 *
 * No border radius. No emojis.
 * Modern futuristic morphism feel.
 */

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #27D8D1;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #27d878;
}


/* ===== HEADER ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #2787d8;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(39, 216, 209, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #000;
}

.brand-link:hover {
    color: #000;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.7rem;
    color: #27D8D1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid #2787d8;
    color: #000;
    transition: all 0.2s ease;
    background: transparent;
}

.nav-link:hover {
    background: #27D8D1;
    color: #fff;
    border-color: #27D8D1;
}

.nav-link--admin {
    background: #27D8D1;
    color: #fff;
    border-color: #27D8D1;
}

.nav-link--admin:hover {
    background: #27d878;
    border-color: #27d878;
    color: #fff;
}

/* ===== MENU BUTTON & DROPDOWN ===== */
.menu-container {
    position: relative;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #2787d8;
    padding: 6px 14px;
    cursor: pointer;
    height: 36px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.menu-btn:hover {
    background: #f5f5f5;
}

.menu-btn.active {
    border-color: #27D8D1;
    background: #f5f5f5;
}

.menu-btn-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    letter-spacing: 0.02em;
}

.menu-btn-arrow {
    font-size: 0.65rem;
    color: #888;
    transition: transform 0.2s ease;
}

.menu-btn.active .menu-btn-arrow {
    transform: rotate(180deg);
}

.menu-btn-lines {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
    height: 18px;
}

.menu-btn-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn.active .menu-btn-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.menu-btn.active .menu-btn-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 180px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 200;
    flex-direction: column;
}

.menu-dropdown.open {
    display: flex;
}

.menu-dropdown .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    background: #fff;
    white-space: nowrap;
}

.menu-dropdown .nav-link:last-child {
    border-bottom: none;
}

.menu-dropdown .nav-link:hover {
    background: #f5f5f5;
    color: #27D8D1;
}

.menu-dropdown .nav-link--admin {
    background: #27D8D1;
    color: #fff;
    border-color: transparent;
}

.menu-dropdown .nav-link--admin:hover {
    background: #27d878;
    color: #fff;
}


/* ===== SEARCH ===== */
.search-container {
    position: relative;
    width: 280px;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid #2787d8;
    background: #fafafa;
    color: #000;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: #27D8D1;
    box-shadow: 0 0 0 3px rgba(39, 216, 209, 0.15);
}

.search-input::placeholder {
    color: #999;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #2787d8;
    border-top: none;
    max-height: 360px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.search-dropdown.hidden {
    display: none;
}

.search-results-list {
    list-style: none;
}

.search-result-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.search-result-link {
    display: block;
    padding: 12px 14px;
    color: #000;
    transition: background 0.15s ease;
}

.search-result-link:hover {
    background: rgba(39, 216, 209, 0.06);
    color: #000;
}

.search-result-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-summary {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.search-no-results {
    padding: 14px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}


/* ===== SITE CONTENT ===== */
.site-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    width: 100%;
}


/* ===== MAIN LISTING ===== */
.listing-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2787d8;
}

.listing-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000;
}

.listing-count {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.listing-empty {
    padding: 60px 0;
    text-align: center;
    color: #999;
    font-size: 0.95rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #27D8D1;
    transform: scaleY(0);
    transition: transform 0.25s ease;
    transform-origin: top;
}

.article-card:hover {
    border-color: #2787d8;
    box-shadow: 0 8px 32px rgba(39, 216, 209, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.article-card:hover::before {
    transform: scaleY(1);
}

.article-card-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-date {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border: 1px solid #27D8D1;
    color: #27D8D1;
    background: rgba(39, 216, 209, 0.04);
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.article-title a {
    color: #000;
}

.article-title a:hover {
    color: #27D8D1;
}

.article-summary {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.6;
}

.article-read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: #27D8D1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 4px;
    display: inline-block;
    transition: color 0.2s ease;
}

.article-read-more:hover {
    color: #27d878;
}

/* ===== SHOWCASE CARD ===== */
.showcase-card {
    background: #fff;
    border: 1px solid #27D8D1;
    border-left: 4px solid #27D8D1;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    transition: all 0.25s ease;
}

.showcase-card:hover {
    border-color: #2787d8;
    border-left-color: #2787d8;
    box-shadow: 0 8px 32px rgba(39, 216, 209, 0.1), 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.showcase-label {
    position: absolute;
    top: 0;
    right: 0;
    background: #27D8D1;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
}

.showcase-inner {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ===== PAGINATION ===== */
.pagination {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e8e8e8;
    color: #000;
    background: #fff;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    border-color: #27D8D1;
    color: #27D8D1;
}

.pagination-current {
    background: #27D8D1;
    color: #fff;
    border-color: #27D8D1;
}


/* ===== ARTICLE VIEW (BODY) ===== */
.article-view {
    max-width: 800px;
    margin: 0 auto;
}

.draft-preview-banner {
    background: #2d2d2d;
    color: #f0c040;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 10px 16px;
    margin-bottom: 24px;
    border: 1px solid #f0c040;
}

.back-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #27D8D1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.back-link:hover {
    border-bottom-color: #27D8D1;
    color: #27d878;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2787d8;
}

.article-full-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #000;
    margin-bottom: 12px;
}

.article-full-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.meta-separator {
    color: #ccc;
}

.article-full-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #222;
}

.section-text.md-rendered {
    line-height: 1.6;
}


/* ===== CODE BLOCKS ===== */
.code-block {
    background: #0a0a0a;
    border: 1px solid #2787d8;
    overflow: hidden;
    position: relative;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #111;
    border-bottom: 1px solid #222;
}

.code-language {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #27D8D1;
}

.copy-btn {
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border: 1px solid #333;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: #27D8D1;
    color: #27D8D1;
}

.copy-btn.copied {
    border-color: #27d878;
    color: #27d878;
}

.code-pre {
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.code-content {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e0e0e0;
    white-space: pre;
    tab-size: 4;
}


/* ===== VIDEO EMBED ===== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 1px solid #2787d8;
}

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

.video-caption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}


/* ===== EXTERNAL LINKS ===== */
.external-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border: 1px solid #e8e8e8;
    color: #000;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fafafa;
}

.external-link:hover {
    border-color: #27D8D1;
    background: rgba(39, 216, 209, 0.03);
    color: #000;
}

.link-arrow {
    color: #27D8D1;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.external-link:hover .link-arrow {
    transform: translateX(4px);
}


/* ===== ADMIN ===== */
.admin-section {
    max-width: 900px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2787d8;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.login-form {
    max-width: 380px;
    margin: 60px auto;
    padding: 40px;
    border: 1px solid #e8e8e8;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.login-form h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #000;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: #27D8D1;
    box-shadow: 0 0 0 3px rgba(39, 216, 209, 0.15);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid #ddd;
    background: #fafafa;
    color: #000;
    outline: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: #27D8D1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid #27D8D1;
    background: #27D8D1;
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #27d878;
    border-color: #27d878;
    color: #fff;
}

.btn--full {
    width: 100%;
}

.btn--outline {
    background: transparent;
    color: #27D8D1;
}

.btn--outline:hover {
    background: #27D8D1;
    color: #fff;
    border-color: #27D8D1;
}

.btn--danger {
    background: transparent;
    border-color: #FFA600;
    color: #FFA600;
}

.btn--danger:hover {
    background: #FFA600;
    color: #fff;
}

.btn--small {
    padding: 6px 14px;
    font-size: 0.75rem;
}

.error-message {
    color: #FFA600;
    font-size: 0.85rem;
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px solid #FFA600;
    background: rgba(255, 166, 0, 0.06);
}

.success-message {
    color: #27d878;
    font-size: 0.85rem;
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px solid #27d878;
    background: rgba(39, 216, 120, 0.04);
}


/* ===== ADMIN DASHBOARD ===== */
.admin-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.admin-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 1px solid #e8e8e8;
    background: #fff;
    transition: border-color 0.2s ease;
}

.admin-post-item:hover {
    border-color: #2787d8;
}

.admin-post-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-post-info span {
    font-size: 0.75rem;
    color: #999;
}

.admin-post-actions {
    display: flex;
    gap: 8px;
}

/* ===== ADMIN TAB BAR ===== */
.admin-tab-bar {
    display: flex;
    gap: 0;
    margin-top: 24px;
    margin-bottom: 0;
    border-bottom: 2px solid #e8e8e8;
}

.admin-tab {
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.admin-tab:hover {
    color: #000;
}

.admin-tab.active {
    color: #000;
    border-bottom-color: #27D8D1;
}

.admin-draft-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: #d88027;
    margin-right: 8px;
    vertical-align: middle;
}

.admin-post-item--draft {
    border-left: 3px solid #d88027;
}

.admin-post-item--showcase {
    border-left: 3px solid #27D8D1;
    background: rgba(39, 216, 209, 0.03);
}

.admin-showcase-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    color: #fff;
    background: #27D8D1;
    margin-right: 8px;
    vertical-align: middle;
}

.btn--showcase-active {
    border-color: #27D8D1;
    color: #27D8D1;
}

.admin-empty-state {
    color: #999;
    margin-top: 24px;
    font-size: 0.85rem;
}

.admin-create-form {
    margin-top: 24px;
    padding: 32px;
    border: 1px solid #e8e8e8;
    background: #fff;
}

.sections-builder {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-builder-item {
    padding: 20px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    position: relative;
}

.section-builder-item .form-group:last-child {
    margin-bottom: 0;
}

.section-actions-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px dashed #d0d0d0;
    background: #fcfcfc;
}

.section-actions-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-right: 4px;
}

.section-item-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.section-move-btn {
    background: transparent;
    border: 1px solid #2787d8;
    color: #2787d8;
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-family: inherit;
}

.section-move-btn:hover {
    background: #2787d8;
    color: #fff;
}

.remove-section-btn {
    background: transparent;
    border: 1px solid #FFA600;
    color: #FFA600;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.remove-section-btn:hover {
    background: #FFA600;
    color: #fff;
}


/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid #2787d8;
    padding: 24px;
    text-align: center;
    background: #fff;
}

.footer-credit {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.04em;
}

.footer-notice {
    margin-top: 16px;
    padding: 14px 20px;
    border-top: 2px solid #CC5500;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.footer-notice-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #CC5500;
    margin-bottom: 6px;
}

.footer-notice-text {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 4px;
}

.footer-notice-text:last-child {
    margin-bottom: 0;
}

.footer-notice-link {
    color: #CC5500;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.15s ease;
}

.footer-notice-link:hover {
    color: #E06600;
    border-bottom-color: #E06600;
}


/* ===== AI ASSISTANT PANEL ===== */
.ai-panel {
    margin-top: 40px;
    border: 1px solid #2787d8;
    background: #fff;
    box-shadow: 0 4px 24px rgba(39, 216, 209, 0.06);
}

.ai-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.ai-panel-header:hover {
    background: #f4f4f4;
}

.ai-panel-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #000;
}

.ai-panel-toggle-icon {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27D8D1;
    line-height: 1;
}

.ai-panel-body {
    padding: 20px;
}

.ai-panel-body.hidden {
    display: none;
}

.ai-controls {
    margin-bottom: 16px;
}

.ai-control-row {
    display: flex;
    gap: 16px;
}

.ai-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-status {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

.ai-status.loading {
    color: #27D8D1;
}

.ai-status.error {
    color: #FFA600;
}

.ai-response-container {
    border: 1px solid #e8e8e8;
    background: #fafafa;
}

.ai-response-container.hidden {
    display: none;
}

.ai-response-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e8e8e8;
    background: #f4f4f4;
}

.ai-response-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #27D8D1;
}

.ai-response-actions {
    display: flex;
    gap: 8px;
}

.ai-response-body {
    padding: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #222;
    white-space: normal;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.ai-response-meta {
    padding: 8px 16px;
    font-size: 0.7rem;
    color: #999;
    border-top: 1px solid #e8e8e8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ===== ARTICLE IMAGE SECTIONS ===== */
.section-image {
    margin: 0;
}

.section-image-img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e8e8e8;
}

.section-image-caption {
    font-size: 0.8rem;
    color: #888;
    margin-top: 8px;
    font-style: italic;
}


/* ===== ADMIN ACTIONS ROW ===== */
.admin-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}


/* ===== MEDIA GALLERY ===== */
.media-gallery-section {
    margin-top: 24px;
}

.media-upload-area {
    padding: 24px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    margin-bottom: 24px;
}

.media-upload-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.media-upload-row .form-input {
    flex: 1;
    min-width: 160px;
}

.media-search-row {
    margin-bottom: 20px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.media-card {
    border: 1px solid #e8e8e8;
    background: #fff;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s ease;
}

.media-card:hover {
    border-color: #2787d8;
}

.media-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #e8e8e8;
}

.media-card-info {
    padding: 10px 12px;
}

.media-card-name {
    font-size: 0.7rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.media-card-date {
    font-size: 0.65rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.media-card-actions {
    display: flex;
    gap: 4px;
    padding: 0 12px 10px;
}

.media-card-actions .btn--small {
    font-size: 0.65rem;
    padding: 4px 8px;
}


/* ===== IMAGE URL ROW (in section builder) ===== */
.image-url-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.image-url-row .form-input {
    flex: 1;
}

.image-preview-small {
    margin: 8px 0;
}

.image-preview-small img {
    max-width: 200px;
    max-height: 120px;
    border: 1px solid #e8e8e8;
    display: block;
}


/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: #fff;
    width: 90%;
    max-width: 860px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #2787d8;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
}

.modal-close {
    background: transparent;
    border: 1px solid #FFA600;
    color: #FFA600;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #FFA600;
    color: #fff;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-search-row {
    margin-bottom: 16px;
}

.modal-search-row .search-input {
    width: 100%;
}

.media-card--selectable {
    cursor: pointer;
}

.media-card--selectable:hover {
    border-color: #27D8D1;
    box-shadow: 0 4px 16px rgba(39, 216, 209, 0.12);
}


/* ===== FORMAT TOOLBAR ===== */
.format-toolbar-wrap {
    margin-bottom: 6px;
}

.format-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #e0e0e0;
    background: #f6f6f6;
    padding: 4px 6px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.format-toolbar-btn {
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #333;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.format-toolbar-btn:hover {
    background: #fff;
    border-color: #27D8D1;
    color: #27D8D1;
}

.format-toolbar-btn:active {
    background: #27D8D1;
    color: #fff;
    border-color: #27D8D1;
}

.format-toolbar-btn--preview {
    margin-left: auto;
    color: #2787d8;
    border-color: #2787d8;
}

.format-toolbar-btn--preview:hover {
    background: #2787d8;
    color: #fff;
    border-color: #2787d8;
}

.format-preview-pane {
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-top: none;
    background: #fff;
    min-height: 120px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #222;
}

.format-preview-pane.hidden {
    display: none;
}


/* ===== MARKDOWN RENDERED STYLES (shared) ===== */
.md-rendered .md-p,
.ai-response-body .md-p,
.format-preview-pane .md-p {
    margin: 0 0 6px 0;
    line-height: 1.6;
}

.md-rendered .md-p:last-child,
.ai-response-body .md-p:last-child,
.format-preview-pane .md-p:last-child {
    margin-bottom: 0;
}

.md-rendered .md-heading,
.ai-response-body .md-heading,
.format-preview-pane .md-heading {
    margin: 16px 0 6px 0;
    color: #000;
    font-weight: 700;
    line-height: 1.3;
}

.md-rendered .md-heading:first-child,
.ai-response-body .md-heading:first-child,
.format-preview-pane .md-heading:first-child {
    margin-top: 0;
}

.md-rendered .md-h1,
.ai-response-body .md-h1,
.format-preview-pane .md-h1 {
    font-size: 1.3rem;
    border-bottom: 2px solid #27D8D1;
    padding-bottom: 6px;
}

.md-rendered .md-h2,
.ai-response-body .md-h2,
.format-preview-pane .md-h2 {
    font-size: 1.1rem;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 4px;
    color: #27D8D1;
}

.md-rendered .md-h3,
.ai-response-body .md-h3,
.format-preview-pane .md-h3 {
    font-size: 1rem;
    color: #2787d8;
}

.md-rendered .md-h4,
.ai-response-body .md-h4,
.format-preview-pane .md-h4 {
    font-size: 0.9rem;
    color: #555;
}

.md-rendered strong,
.ai-response-body strong,
.format-preview-pane strong {
    font-weight: 700;
    color: #000;
}

.md-rendered em,
.ai-response-body em,
.format-preview-pane em {
    font-style: italic;
}

.md-rendered .md-ul,
.md-rendered .md-ol,
.ai-response-body .md-ul,
.ai-response-body .md-ol,
.format-preview-pane .md-ul,
.format-preview-pane .md-ol {
    margin: 6px 0;
    padding-left: 24px;
}

.md-rendered .md-li,
.md-rendered .md-oli,
.ai-response-body .md-li,
.ai-response-body .md-oli,
.format-preview-pane .md-li,
.format-preview-pane .md-oli {
    line-height: 1.5;
    margin-bottom: 2px;
}

.md-rendered .md-code-block,
.ai-response-body .md-code-block,
.format-preview-pane .md-code-block {
    position: relative;
    margin: 12px 0;
    background: #0a0a0a;
    border: 1px solid #2787d8;
    overflow: hidden;
}

.md-rendered .md-code-lang,
.ai-response-body .md-code-lang,
.format-preview-pane .md-code-lang {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 10px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #27D8D1;
    color: #fff;
}

.md-rendered .md-code-block pre,
.ai-response-body .md-code-block pre,
.format-preview-pane .md-code-block pre {
    margin: 0;
    padding: 14px 16px;
    overflow-x: auto;
}

.md-rendered .md-code-block code,
.ai-response-body .md-code-block code,
.format-preview-pane .md-code-block code {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #e0e0e0;
}

.md-rendered .md-inline-code,
.ai-response-body .md-inline-code,
.format-preview-pane .md-inline-code {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.8rem;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    padding: 1px 5px;
    color: #d63384;
}

.md-rendered .md-hr,
.ai-response-body .md-hr,
.format-preview-pane .md-hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 16px 0;
}

.md-rendered .md-link,
.ai-response-body .md-link,
.format-preview-pane .md-link {
    color: #27D8D1;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.md-rendered .md-link:hover,
.ai-response-body .md-link:hover,
.format-preview-pane .md-link:hover {
    color: #CC5500;
}


/* ===== CONFIRM REMOVE MODAL ===== */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-overlay.hidden {
    display: none;
}

.confirm-modal {
    background: #fff;
    border: 1px solid #FFA600;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.confirm-modal-header {
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.confirm-modal-body {
    padding: 20px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #333;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 0 20px 16px;
}


/* ===== PREVIEW BADGE ===== */
.preview-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border: 2px solid #FFA600;
    color: #FFA600;
    background: transparent;
}


/* ===== SITE NOTICE ===== */
.site-notice {
    background: #f7fffe;
    border-bottom: 1px solid #27D8D1;
}

.site-notice-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
}

.site-notice-text {
    font-size: 0.82rem;
    color: #444;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.site-notice-link {
    color: #27D8D1;
    font-weight: 600;
    margin-left: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.site-notice-link:hover {
    color: #27d878;
    border-bottom-color: #27d878;
}


/* ===== ADMIN NOTICE EDITOR ===== */
.admin-notice-editor {
    border: 1px solid #eee;
    margin-bottom: 24px;
}

.admin-notice-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    transition: background 0.15s ease;
}

.admin-notice-editor-header:hover {
    background: #f5f5f5;
}

.admin-notice-editor-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
}

.admin-notice-editor-toggle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #27D8D1;
    user-select: none;
}

.admin-notice-editor-body {
    padding: 16px;
}

.admin-notice-editor-body .form-group {
    margin-bottom: 12px;
}


/* ===== REUSABLE ADMIN PANEL EDITOR ===== */
.admin-panel-editor {
    border: 1px solid #eee;
    margin-bottom: 24px;
}

.admin-panel-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    transition: background 0.15s ease;
}

.admin-panel-editor-header:hover {
    background: #f5f5f5;
}

.admin-panel-editor-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
}

.admin-panel-editor-toggle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #27D8D1;
    user-select: none;
}

.admin-panel-editor-body {
    padding: 16px;
}

.admin-panel-editor-body .form-group {
    margin-bottom: 12px;
}

.about-provider-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.about-provider-row .form-input {
    flex: 1;
    min-width: 0;
}


/* ===== ABOUT PAGE ===== */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.about-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
    letter-spacing: -0.01em;
}

.about-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 32px;
}

.about-subheading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
    margin-top: 32px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.about-providers-note {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    margin-bottom: 16px;
}

.about-providers-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.about-provider-item {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-provider-item:last-child {
    border-bottom: none;
}

.about-provider-name {
    color: #111;
    font-size: 1rem;
}

.about-provider-desc {
    color: #555;
    font-size: 0.9rem;
}

.about-provider-link {
    color: #CC5500;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px solid transparent;
    transition: all 0.15s ease;
    width: fit-content;
}

.about-provider-link:hover {
    color: #E06600;
    border-bottom-color: #E06600;
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 24px;
}

.about-email-link {
    color: #CC5500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.about-email-link:hover {
    border-bottom-color: #E06600;
    color: #E06600;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-nav {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: flex-end;
    }

    .header-brand {
        flex-shrink: 0;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.6rem;
    }

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

    .search-input {
        width: 100%;
    }

    .menu-container {
        position: static;
    }

    .menu-btn-label,
    .menu-btn-arrow {
        display: none;
    }

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

    .menu-btn {
        padding: 8px 10px;
    }

    .menu-dropdown {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        margin-top: 0;
        min-width: 0;
        width: 100%;
        border: none;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .menu-dropdown .nav-link {
        text-align: center;
        padding: 14px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .showcase-inner {
        padding: 20px;
    }

    .article-full-title {
        font-size: 1.5rem;
    }

    .admin-post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .modal {
        width: 96%;
        max-height: 90vh;
    }

    .media-upload-row {
        flex-direction: column;
    }

    .admin-actions-row {
        flex-wrap: wrap;
    }

    .format-toolbar {
        gap: 2px;
        padding: 3px 4px;
    }

    .format-toolbar-btn {
        font-size: 0.62rem;
        padding: 3px 7px;
    }

    .about-section {
        padding: 12px 0;
    }

    .about-heading {
        font-size: 1.3rem;
    }

    .about-provider-row {
        flex-direction: column;
    }
}
