﻿:root {
    --bg-color: #ffffff;
    --text-primary: #333d4b;
    --text-secondary: #6b7684;
    --accent: #3182f6;
    --border-color: #e2e8f0;
    /* 議곌툑 ??吏숈? ?뚯깋?쇰줈 蹂寃?*/
    --card-bg: #f5faff;
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --btn-bg: #f2f4f6;
    --btn-hover: #e5e8eb;
    --tag-bg: #f1f5f9;
    --code-bg: #f1f5f9;
    --quote-bg: #f8fafc;
    --font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    --container-w: 1000px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --scrollbar-thumb: #d1d5db;
    --scrollbar-hover: #9ca3af;
    --accent-rgb: 49, 130, 246;
    --reply-bg: rgba(var(--accent-rgb), 0.05);
    --skeleton-bg: #f2f4f6;
    --skeleton-shimmer: linear-gradient(90deg, #f2f4f6 0%, #e5e8eb 50%, #f2f4f6 100%);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-primary: #ebebeb;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    /* 다크모드에서 좀 더 선명한 테두리 */
    --card-bg: #1e293b;
    --navbar-bg: rgba(15, 23, 42, 0.8);
    --btn-bg: #1e293b;
    --btn-hover: #334155;
    --tag-bg: rgba(49, 130, 246, 0.1);
    --code-bg: #1e293b;
    --quote-bg: #1e293b;
    --scrollbar-thumb: #334155;
    --scrollbar-hover: #475569;
    --reply-bg: rgba(var(--accent-rgb), 0.15);
    --skeleton-bg: #1e293b;
    --skeleton-shimmer: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
}

/* Skeleton Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: var(--skeleton-shimmer);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-title {
    height: 1.5rem;
    margin-bottom: 1rem;
    width: 60%;
}

.skeleton-img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.post-card-skeleton {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.625;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: var(--container-w);
    margin: 0 auto;
}

.navbar {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    font-weight: 700;
}

.page-header {
    padding: 0 0 3rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem;
    padding-top: 4rem;
    margin-bottom: 5rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Trending Slider */
.trending-container {
    margin: 4rem 0 0;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.trending-slider {
    position: relative;
    height: 280px;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.trending-item.active {
    opacity: 1;
    visibility: visible;
}

.trending-content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 1.5rem;
}

.trending-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    word-break: keep-all;
    letter-spacing: -0.02em;
}

.trending-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-image {
    flex: 1 1 0;
    min-width: 0;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This will "crop" the image centrally */
}

.trending-nav {
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    display: flex;
    gap: 1rem;
}

.nav-prev,
.nav-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--btn-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-prev:hover,
.nav-next:hover {
    background: var(--btn-hover);
    color: var(--text-primary);
    transform: scale(1.05);
}

.nav-prev:active,
.nav-next:active {
    transform: scale(0.95);
}

.post-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-8px);
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: keep-all;
    /* Keep typical words together but allow break if needed */
}

.post-card p {
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-all;
    /* Safer for summaries that might contain remnants of base64 */
}

.post-meta {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-meta-left {
    display: flex;
    align-items: center;
}

.post-meta-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-stats-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
}

.post-stats-item i {
    width: 14px;
    height: 14px;
}

.like-btn-grid {
    cursor: pointer;
    transition: var(--transition);
}

.like-btn-grid:hover {
    color: #ff4d4f;
    transform: scale(1.1);
}

.like-btn-grid.liked {
    color: #ff4d4f;
}

.like-btn-grid.liked i {
    fill: #ff4d4f;
    stroke: #ff4d4f;
}

.tag-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--tag-bg);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.775rem;
    font-weight: 700;
}

.post-detail {
    max-width: 800px;
    margin: 4rem auto;
}

.post-detail-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-content strong {
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(49, 130, 246, 0.05);
    padding: 0 2px;
    border-radius: 2px;
}

.post-content em {
    font-style: italic;
    color: var(--text-secondary);
}

.post-content p {
    margin-bottom: 0.5rem;
}

.post-content h1,
.post-content h2,
.post-content h3 {
    margin: 1.5rem 0 0.5rem;
    font-weight: 800;
}

.post-content h1 {
    font-size: 2.2rem;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.4rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--quote-bg);
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 1.8rem;
}

.post-content code {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.9em;
    padding: 0.2rem 0.4rem;
    background: var(--code-bg);
    border-radius: 4px;
    color: #e91e63;
}

.post-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0.5rem 0;
}

.sun-editor-editable img,
.se-component img,
.se-image-container img {
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.post-content hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    opacity: 0.6;
    margin: 2.5rem 0;
}

.post-content table {
    width: max-content;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 1rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: block;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.post-content th,
.post-content td {
    padding: 0.5rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-width: 120px;
}

.post-content th {
    background-color: var(--btn-bg);
    font-weight: 700;
    white-space: nowrap;
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tbody tr {
    transition: var(--transition);
}

.post-content tbody tr:hover td {
    background-color: var(--btn-hover);
}

.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-container {
    width: 90%;
    max-width: var(--container-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.footer-greeting {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-email i,
.footer-email svg {
    width: 11px !important;
    height: 11px !important;
    color: var(--text-secondary);
    opacity: 0.6;
    display: inline-block;
    vertical-align: middle;
}

.footer-email a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1;
    /* ?쇨????뺣젹???꾪빐 異붽? */
}

.footer-email a:hover {
    color: var(--accent);
}

.email-refusal-link {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition);
}

.email-refusal-link:hover {
    color: var(--accent);
    opacity: 1;
    text-decoration: underline;
}

.back-to-top {
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--btn-hover);
    color: var(--accent);
    transform: translateY(-3px);
}

.back-to-top i,
.back-to-top svg {
    width: 20px !important;
    height: 20px !important;
    opacity: 1 !important;
}

/* Sidebar & Popular Posts */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-intro-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
}

.blog-intro-card h3 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    word-break: keep-all;
}

.blog-intro-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.popular-posts-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 24px;
}

.popular-posts-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    word-break: keep-all;
    letter-spacing: -0.01em;
}

.popular-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.popular-item:hover {
    opacity: 0.7;
}

.popular-item:last-child {
    margin-bottom: 0;
}

.popular-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--bg-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.popular-info h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0.4rem;
    word-break: keep-all;
    letter-spacing: -0.01em;
}

.popular-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-btn:hover:not(.active) {
    background: var(--btn-bg);
    border-color: var(--accent);
}

@media (max-width: 1024px) {
    .container {
        width: 92%;
    }
}

.mobile-toggle {
    display: none;
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--btn-hover);
    color: var(--accent);
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem 5%;
        width: 100%;
    }

    .logo {
        font-size: 0.95rem;
    }

    .page-header {
        padding: 0 0 1.25rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header h2 {
        font-size: 1.1rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Trending Slider Mobile */
    .trending-container {
        margin: 2rem 0 0;
    }

    .trending-slider {
        height: 340px !important;
    }

    .trending-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        /* Default state for JS control */
    }

    .trending-item.active {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .trending-image {
        display: block !important;
        width: 100% !important;
        height: 200px !important;
        flex: none !important;
        border-radius: 12px !important;
        order: -1 !important;
        margin-bottom: 1rem !important;
        overflow: hidden !important;
    }

    .trending-image img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .trending-content {
        flex: none !important;
        width: 100% !important;
        padding: 0 !important;
        min-height: 120px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .trending-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .trending-content p {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .trending-nav {
        position: relative;
        margin-top: 1.5rem;
        bottom: 0;
        justify-content: center;
    }

    .nav-prev,
    .nav-next {
        width: 40px;
        height: 40px;
    }

    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 2rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-card h3 {
        font-size: 1.125rem;
    }

    .post-detail-header h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h1 {
        font-size: 1.55rem;
        margin: 2rem 0 1rem;
    }

    .post-content h2 {
        font-size: 1.4rem;
        margin: 1.8rem 0 0.8rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.6rem;
    }

    .tag-badge {
        font-size: 0.725rem;
        padding: 0.15rem 0.45rem;
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.theme-toggle-btn i,
.theme-toggle-btn svg {
    width: 18px !important;
    height: 18px !important;
}

.theme-toggle-btn:hover {
    background: var(--btn-hover);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Search Styles */
.search-toggle-btn {
    background: var(--btn-bg);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.search-toggle-btn i,
.search-toggle-btn svg {
    width: 18px !important;
    height: 18px !important;
}

.search-toggle-btn:hover {
    background: var(--btn-hover);
    color: var(--accent);
    transform: translateY(-2px);
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.search-overlay.active {
    display: block;
    opacity: 1;
}

.search-container {
    max-width: 800px;
    margin: 100px auto;
    width: 90%;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.search-box input {
    flex: 1;
    min-width: 0;
    /* Crucial: allows input to shrink in flex containers */
    border: none;
    background: transparent;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.search-box input::placeholder {
    transition: var(--transition);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.search-box i {
    color: var(--accent);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    /* Prevent icon from being squashed */
}

.search-close {
    background: var(--btn-bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-results {
    margin-top: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.search-result-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    transform: translateX(10px);
    background: var(--btn-hover);
}

/* Post Interactions */
.post-interactions {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.empathy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.empathy-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-3px);
}

.empathy-btn.liked {
    border-color: #ff4d4f;
    background: rgba(255, 77, 79, 0.05);
}

.empathy-btn svg {
    stroke: #ff8080;
    fill: #fff0f0;
    transition: var(--transition);
}

.empathy-btn:hover svg {
    stroke: #ff4d4f;
    fill: #ffb3b3;
}

.empathy-btn.liked svg {
    stroke: #ff4d4f;
    fill: #ff4d4f;
}

.empathy-count {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Comments Section */
.comment-section {
    margin-top: 2rem;
    max-width: 800px;
}

.comment-count {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.comment-list {
    margin-bottom: 4rem;
}

/* Comment Item with Icon */
.comment-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff8e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* AI Loading Animation - Premium Sophisticated Version */
.ai-loading-placeholder {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
    margin-left: 3.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 100, 108, 255), 0.08), rgba(var(--accent-rgb, 100, 108, 255), 0.02));
    border: 1px solid rgba(var(--accent-rgb, 100, 108, 255), 0.2);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    width: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    animation: ai-slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ai-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-loading-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-loading-robot {
    font-size: 2rem;
    /* Larger icon */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(var(--accent-rgb, 100, 108, 255), 0.4));
}

.ai-loading-robot::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.3;
    z-index: -1;
    animation: ai-halo-pulse 2.5s infinite ease-in-out;
}

@keyframes ai-halo-pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.2;
    }
}

.ai-loading-text {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.ai-loading-dots {
    display: flex;
    gap: 6px;
}

.ai-loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(var(--accent-rgb, 100, 108, 255), 0.5);
    animation: ai-dot-wave 1.5s infinite ease-in-out both;
}

.ai-loading-dots span:nth-child(1) {
    animation-delay: -0.3s;
}

.ai-loading-dots span:nth-child(2) {
    animation-delay: -0.15s;
}

@keyframes ai-dot-wave {

    0%,
    80%,
    100% {
        transform: translateY(0) scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: translateY(-8px) scale(1.2);
        opacity: 1;
    }
}


/* Comment Form (Integrated, no card) */
.comment-form {
    padding: 0;
    margin-bottom: 2rem;
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-randomizer {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 0 1.25rem;
    height: 48px;
    gap: 0.75rem;
}

.random-name-display {
    flex: 1;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.random-btn {
    background: #f1f3f5;
    color: #495057;
    border: 1.5px solid var(--border-color);
    height: 48px;
    padding: 0 1.25rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.random-btn:hover {
    background: #e9ecef;
    color: var(--accent);
}

.comment-avatar-preview {
    width: 50px;
    height: 50px;
    background: #fff8e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Delete Button */
.delete-comment-btn {
    background: none;
    border: none;
    color: #fa5252;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
}

.delete-comment-btn:hover {
    background: #fff5f5;
    text-decoration: underline;
}

.comment-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--border-color);
    /* ?뚮몢由щ? 議곌툑 ???먭퍖怨??좊챸?섍쾶 */
    background: var(--bg-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    resize: none;
    overflow-y: auto;
}

/* Custom Scrollbar Styles */
.form-row textarea::-webkit-scrollbar {
    width: 8px;
}

.form-row textarea::-webkit-scrollbar-track {
    background: transparent;
}

.form-row textarea::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

.form-row textarea::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-hover);
}

/* Firefox support */
.form-row textarea {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.1);
}

.submit-comment-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-size: 1rem;
}

.submit-comment-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .comment-form {
        margin-bottom: 2rem;
    }

    .comment-item {
        display: grid;
        grid-template-columns: 32px 1fr;
        gap: 0.5rem 0.75rem;
        padding: 1.25rem 0;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        grid-column: 1;
        grid-row: 1;
    }

    .comment-body {
        display: contents;
    }

    .comment-header {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        width: 100%;
    }

    .comment-header-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .comment-date {
        font-size: 0.65rem;
        opacity: 0.7;
        white-space: nowrap;
    }

    .comment-content {
        grid-column: 1 / span 2;
        padding-top: 0.25rem;
        width: 100%;
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 600px) {
    .search-container {
        margin: 40px auto;
        width: 94%;
    }

    .search-box {
        padding: 0.25rem 0.75rem;
    }

    .search-box input {
        font-size: 0.95rem;
    }

    .search-box input::placeholder {
        font-size: 0.85rem;
    }
}

/* ============================
   About ?섏씠吏
   ============================ */
.about-page {
    padding: 4rem 0 6rem;
}

/* ?덉뼱濡?*/
.about-hero {
    text-align: center;
    border-radius: 28px;
    margin-bottom: 4rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 58, 138, 0.55) 100%),
        url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?w=1400&q=80') center/cover no-repeat;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .about-hero {
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.82) 0%, rgba(219, 234, 254, 0.75) 100%),
        url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?w=1400&q=80') center/cover no-repeat;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    padding: 4.5rem 2rem 5rem;
}

.about-hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(147, 197, 253, 0.4);
    border-radius: 100px;
    padding: 0.4rem 1.1rem;
    margin-bottom: 1.6rem;
}

[data-theme="light"] .about-hero-badge {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.about-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 1.4rem;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .about-hero-title {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.about-hero-sub {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.about-hero-sub strong {
    color: #fff;
}

.about-hero-sub em {
    font-style: italic;
    color: #93c5fd;
}

[data-theme="light"] .about-hero-sub {
    color: var(--text-secondary);
}

[data-theme="light"] .about-hero-sub strong {
    color: var(--text);
}

[data-theme="light"] .about-hero-sub em {
    color: var(--primary);
}

/* 泥좏븰 移대뱶 3媛?- 媛濡?諛곗튂 */
.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 5rem;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.about-card-icon {
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card-icon i,
.about-card-icon svg {
    width: 2.2rem !important;
    height: 2.2rem !important;
    stroke-width: 1.2px;
    /* ??援듦린瑜????뉕쾶 ?섏뿬 ?붿슧 誘몃땲硫?섍퀬 ?몃젴???먮굦 遺??*/
}

/* 媛?移대뱶蹂??몃젴??怨좎쑀 而щ윭 ?곸슜 */
.about-card:nth-child(1) .about-card-icon {
    color: #60a5fa;
}

/* AI - Blue */
.about-card:nth-child(2) .about-card-icon {
    color: #f472b6;
}

/* Human - Pink/Rose */
.about-card:nth-child(3) .about-card-icon {
    color: #fbbf24;
}

/* Info - Amber */

.about-card-body {
    flex: 1;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

/* 肄섑뀗痢?釉붾줉 */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 5rem;
}

.about-content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content-block.reverse {
    direction: rtl;
}

.about-content-block.reverse>* {
    direction: ltr;
}

.about-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 0.85rem;
}

.about-content-text h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.1rem;
    line-height: 1.25;
}

.about-content-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 0.85rem;
}

/* ?꾨줈?몄뒪 ?쒓컖?? ?덉씠 ?몄븞?섍퀬 紐낇솗??媛뺤“ */
@keyframes processSnap {

    0%,
    5%,
    30%,
    100% {
        color: var(--text-secondary);
        opacity: 0.7;
    }

    10%,
    25% {
        color: var(--text-primary);
        opacity: 1;
    }
}

.about-process {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.about-process-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-color);
    /* 移대뱶 諛뺤뒪 諛곌꼍 */
    border: 1px solid var(--border-color);
    /* 移대뱶 諛뺤뒪 ?뚮몢由?*/
    border-radius: 16px;
    color: var(--text-secondary);
    animation: processSnap 5s infinite;
    transition: all 0.3s ease;
}

/* ?쒖꽦????移대뱶 諛뺤뒪 媛뺤“ */
@keyframes stepCardHighlight {

    10%,
    25% {
        border-color: var(--step-color);
        background: var(--card-bg);
        transform: scale(1.02);
    }
}

.about-process-step[data-step="0"] {
    animation-name: processSnap, stepCardHighlight;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-delay: 0s;
    --step-color: var(--accent);
}

.about-process-step[data-step="1"] {
    animation-name: processSnap, stepCardHighlight;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-delay: 1.25s;
    --step-color: #8b5cf6;
}

.about-process-step[data-step="2"] {
    animation-name: processSnap, stepCardHighlight;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-delay: 2.5s;
    --step-color: #f59e0b;
}

.about-process-step[data-step="3"] {
    animation-name: processSnap, stepCardHighlight;
    animation-duration: 5s;
    animation-iteration-count: infinite;
    animation-delay: 3.75s;
    --step-color: #10b981;
}

.about-process-step[data-step] span {
    transition: all 0.3s;
}

@keyframes stepNumberHighlight {

    0%,
    5%,
    30%,
    100% {
        color: var(--text-secondary);
        border-color: var(--border-color);
    }

    10%,
    25% {
        color: var(--step-color);
        border-color: var(--step-color);
        transform: scale(1.05);
    }
}

.about-process-step span {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.2rem 0.6rem;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;
    animation: stepNumberHighlight 5s infinite;
}

.about-process-step[data-step="0"] span {
    animation-delay: 0s;
}

.about-process-step[data-step="1"] span {
    animation-delay: 1.25s;
}

.about-process-step[data-step="2"] span {
    animation-delay: 2.5s;
}

.about-process-step[data-step="3"] span {
    animation-delay: 3.75s;
}

.about-process-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.about-process-info strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: inherit;
}

.about-process-info small {
    font-size: 0.78rem;
    color: var(--text-secondary);
    opacity: 0.85;
    line-height: 1.5;
}

.about-process-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    opacity: 0.9;
    /* ????蹂댁씠寃?媛뺤“ */
}

.about-process-arrow i,
.about-process-arrow svg {
    width: 20px !important;
    height: 20px !important;
}

/* ?좏뵿 ?쒓렇 - 怨쇨컧?섍퀬 ?몃젴???쒕뜡 吏??Jitter) ?좊땲硫붿씠??*/
@keyframes tagJitter1 {

    0%,
    92%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    94% {
        transform: translate(5px, -4px) rotate(3deg);
    }

    96% {
        transform: translate(-4px, 5px) rotate(-3deg);
    }

    98% {
        transform: translate(2px, 2px) rotate(1deg);
    }
}

@keyframes tagJitter2 {

    0%,
    88%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    91% {
        transform: translate(-6px, 3px) scale(1.15);
    }

    94% {
        transform: translate(4px, -5px) scale(0.85);
    }

    97% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes tagJitter3 {

    0%,
    84%,
    100% {
        transform: skew(0deg) translate(0, 0);
    }

    88% {
        transform: skew(5deg, 3deg) translate(2px, 2px);
    }

    92% {
        transform: skew(-5deg, -3deg) translate(-2px, -2px);
    }

    96% {
        transform: skew(0deg) translate(0, 0);
    }
}

@keyframes tagJitter4 {

    0%,
    90%,
    100% {
        transform: translateY(0);
    }

    93% {
        transform: translateY(-8px) rotate(2deg);
    }

    96% {
        transform: translateY(2px) rotate(-2deg);
    }
}

@keyframes tagJitter5 {

    0%,
    86%,
    100% {
        transform: rotate(0deg);
    }

    89% {
        transform: rotate(10deg);
    }

    92% {
        transform: rotate(-10deg);
    }

    95% {
        transform: rotate(5deg);
    }
}

.about-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.about-topic-tag {
    background: rgba(59, 130, 246, 0.08);
    /* ?몃젴??諛섑닾紐?諛곌꼍 */
    border: none;
    /* ?꾩썐?쇱씤 ?쒓굅 */
    box-shadow: none;
    border-radius: 12px;
    /* ?댁쭩 媛곸쭊 ?먮굦?쇰줈 ?몃젴誘??곹뼢 */
    padding: 0.6rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: default;
    transition: all 0.2s ease;
    display: inline-block;
}

/* ?쒕뜡 ?좊땲硫붿씠??諛?怨좎쑀 而щ윭 遺꾩궛 諛곗튂 (?꾨꼍???쒕뜡?깆쓣 ?꾪빐 ?몃텇?? */
.about-topic-tag:nth-child(5n+1) {
    animation: tagJitter1 7s infinite;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    animation-delay: -0.5s;
}

.about-topic-tag:nth-child(5n+2) {
    animation: tagJitter2 8.5s infinite;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    animation-delay: -3.1s;
}

.about-topic-tag:nth-child(5n+3) {
    animation: tagJitter3 6.2s infinite;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    animation-delay: -1.5s;
}

.about-topic-tag:nth-child(5n+4) {
    animation: tagJitter4 9.3s infinite;
    background: rgba(244, 114, 182, 0.12);
    color: #f472b6;
    animation-delay: -4.8s;
}

.about-topic-tag:nth-child(5n) {
    animation: tagJitter5 10s infinite;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    animation-delay: -2.7s;
}

/* 異붽??곸씤 ?쒕뜡 媛꾩꽠 ?④낵 */
.about-topic-tag:nth-child(3n) {
    animation-duration: 5.7s;
}

.about-topic-tag:nth-child(7n) {
    animation-delay: 0.8s;
    animation-duration: 11s;
}

.about-topic-tag:hover {
    transform: scale(1.15) rotate(1deg) !important;
    background: var(--text-primary) !important;
    /* 怨좊?鍮?諛곌꼍 */
    color: var(--bg-color) !important;
    /* 諛곌꼍?됯낵 諛섏쟾??湲?먯깋 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* ?댁쁺??硫붿떆吏 */
.about-message {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}

.about-message-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-message h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.about-message blockquote {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
    max-width: 680px;
    margin: 0 auto 1.25rem;
    font-style: italic;
    quotes: none;
}

.about-message cite {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    font-style: normal;
    display: block;
    margin-bottom: 2rem;
}

.about-contact {
    display: flex;
    justify-content: center;
}

.about-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--primary);
    color: #fff;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.about-contact-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.about-contact-btn svg {
    width: 16px;
    height: 16px;
}

/* About 紐⑤컮??*/
@media (max-width: 768px) {
    .about-cards {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 1.75rem 1.5rem;
    }

    .about-content-block,
    .about-content-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 2rem;
    }

    .about-hero-content {
        padding: 2.5rem 1.25rem 3rem;
    }

    .about-message {
        padding: 2rem 1.25rem;
    }

    .about-content-text h2 {
        font-size: 1.5rem;
    }

    .about-topics {
        padding: 1rem;
        gap: 0.4rem;
        justify-content: center;
    }

    .about-topic-tag {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 8px;
    }
}

/* ?뚯씪 ??*/

/* ============================
   Footer 媛쒖꽑 (footer-left/nav)
   ============================ */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-brand-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-bottom: -0.1rem;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav a {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-sep {
    font-size: 0.75rem;
    color: var(--border);
}

/* ============================
   媛쒖씤?뺣낫泥섎━諛⑹묠 ?섏씠吏
   ============================ */
.privacy-page {
    padding: 4rem 0 6rem;
    max-width: 860px;
    margin: 0 auto;
}

/* Notice List Compact Style */
.notice-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0 5rem;
}

.notice-item-tight {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.notice-item-tight:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.notice-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.notice-views {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notice-title-compact {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0.2rem 0;
    word-break: keep-all;
}

.notice-footer-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.notice-footer-compact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .notice-list-compact {
        gap: 0.5rem;
        padding-top: 0.5rem;
    }

    .notice-item-tight {
        padding: 0.85rem 1rem;
        border-radius: 10px;
    }

    .notice-title-compact {
        font-size: 0.95rem;
    }

    .notice-footer-compact {
        font-size: 0.75rem;
    }
}

/* App Header Hidden Adjustment */
body.app-no-header .privacy-page {
    padding-top: 1rem;
}

/* ?덉뼱濡?*/
.privacy-hero {
    text-align: center;
    padding: 2.25rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.privacy-hero .about-hero-badge {
    margin-bottom: 1rem;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
}

.privacy-hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0.5rem 0;
}

.privacy-hero p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 蹂몃Ц */
.privacy-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.privacy-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem 2.25rem;
}

.privacy-section h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: -0.01em;
}

.privacy-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.privacy-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 0.75rem;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-note {
    font-size: 0.85rem !important;
    background: rgba(59, 130, 246, 0.06);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem !important;
    color: var(--text-secondary);
    margin-top: 1rem !important;
}

/* 由ъ뒪??*/
.privacy-list {
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.privacy-list li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.privacy-list li::marker {
    color: var(--primary);
}

/* ??*/
.privacy-table-wrap {
    overflow-x: auto;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.privacy-table th {
    background: rgba(59, 130, 246, 0.07);
    color: var(--primary);
    font-weight: 700;
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.privacy-table td {
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
    vertical-align: top;
}

.privacy-table tr:last-child td {
    border-bottom: none;
}

.privacy-table a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-table a:hover {
    text-decoration: underline;
}

/* 臾몄쓽 移대뱶 */
.privacy-contact-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.privacy-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9rem;
}

.privacy-contact-label {
    font-weight: 700;
    color: var(--text);
    min-width: 72px;
    flex-shrink: 0;
}

.privacy-contact-row a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-contact-row a:hover {
    text-decoration: underline;
}

/* 留곹겕 怨듯넻 */
.privacy-section a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

/* 紐⑤컮??*/
@media (max-width: 768px) {
    .privacy-page {
        padding: 2rem 0 4rem;
    }

    .privacy-section {
        padding: 1.5rem 1.25rem;
    }

    .privacy-hero {
        padding: 2rem 1.25rem 1.75rem;
    }
}

/* Error Page Styles */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    text-align: center;
    min-height: 60vh;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: error-bounce 2s infinite ease-in-out;
}

@keyframes error-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.error-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-home {
    background: var(--accent);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 246, 0.3);
}

.btn-back {
    background: var(--btn-bg);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-back:hover {
    background: var(--btn-hover);
}

/* Recent Comments Area - Premium Styling */
.recent-comments-area {
    margin-top: 4rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.comment-tab-info {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-tertiary, #8a94a1);
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    padding-left: 2px;
}

.comment-tab-info i,
.comment-tab-info i svg {
    width: 12px !important;
    height: 12px !important;
    color: var(--accent);
    opacity: 0.8;
}

.section-title-row h3 {
    font-size: 1.25rem;
    /* Matched sidebar h3 */
    font-weight: 700;
    color: var(--text-primary);
    word-break: keep-all;
    letter-spacing: -0.01em;
}

.comment-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 4px 0;
    border-radius: 12px;
}

.comment-tab {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-color);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.comment-tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Specific styles for each tab */
.comment-tab.tab-all.active {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}

.comment-tab.tab-general.active {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

.comment-tab.tab-ai.active {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #7c3aed;
}

/* Dark mode overrides for tabs */
[data-theme="dark"] .comment-tab {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .comment-tab.tab-all.active {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

[data-theme="dark"] .comment-tab.tab-general.active {
    background: rgba(3, 105, 161, 0.2);
    border-color: #0ea5e9;
    color: #7dd3fc;
}

[data-theme="dark"] .comment-tab.tab-ai.active {
    background: rgba(124, 58, 237, 0.2);
    border-color: #a78bfa;
    color: #ddd6fe;
}

.recent-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-comment-item {
    position: relative;
    padding: 0.5rem 0;
    /* Reduced and no sides */
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.recent-comment-item:last-child {
    border-bottom: none;
}

.recent-comment-item:hover {
    background: rgba(var(--accent-rgb, 100, 108, 255), 0.02);
}

.recent-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.recent-comment-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.recent-author-icon {
    font-size: 1.2rem;
    /* Reduced */
}

.recent-author-name {
    font-weight: 700;
    font-size: 0.9rem;
    /* Reduced */
    color: var(--text-primary);
}

.recent-ai-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    margin-left: 0.4rem;
    box-shadow: 0 0 8px rgba(var(--accent-rgb, 100, 108, 255), 0.3);
}

.recent-ai-badge i,
.recent-ai-badge svg {
    width: 10px !important;
    height: 10px !important;
    stroke-width: 3px;
}

.recent-post-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.7;
    background: rgba(var(--accent-rgb, 100, 108, 255), 0.05);
    padding: 4px 10px;
    border-radius: 16px;
    transition: var(--transition);
}

.recent-post-link:hover {
    opacity: 1;
    background: rgba(var(--accent-rgb, 100, 108, 255), 0.1);
    transform: translateY(-1px);
}

.recent-comment-content {
    font-size: 0.9rem;
    /* Reduced */
    color: var(--text-primary);
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 0.3rem;
    /* Reduced */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.2rem;
    /* Reduced */
}

.recent-comment-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.show-replies-btn {
    background: rgba(var(--accent-rgb, 100, 108, 255), 0.05);
    border: 1px solid transparent;
    color: var(--accent);
    font-size: 0.775rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.25rem 0.6rem;
    border-radius: 16px;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.reply-count {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.show-replies-btn:hover {
    background: rgba(var(--accent-rgb, 100, 108, 255), 0.1);
    transform: translateY(-1px);
}

.show-replies-btn.active {
    background: rgba(var(--accent-rgb, 100, 108, 255), 0.12);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb, 100, 108, 255), 0.15);
}

.recent-replies-container {
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--reply-bg);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: ai-slide-up 0.4s ease;
}

.recent-reply-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.recent-reply-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-reply-author {
    font-weight: 800;
    font-size: 0.9rem;
}

.recent-reply-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* EasyMDE (CodeMirror) Markdown Editor Header Adjustments */
.CodeMirror .cm-header-1 {
    font-size: 1.4em !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.CodeMirror .cm-header-2 {
    font-size: 1.2em !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.CodeMirror .cm-header-3 {
    font-size: 1.1em !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.CodeMirror .cm-header-4 {
    font-size: 1.0em !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.CodeMirror .cm-header-5 {
    font-size: 0.9em !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.CodeMirror .cm-header-6 {
    font-size: 0.85em !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

@media (max-width: 1024px) {
    .recent-comments-area {
        padding: 1.5rem;
    }

    .recent-post-link {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .recent-comments-area {
        display: block;
        margin-top: 2rem;
        padding: 0;
        border-radius: 0;
    }

    .blog-intro-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .popular-posts-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    /* Footer Mobile Adjustments */
    .footer {
        padding: 4rem 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-left {
        align-items: center;
    }

    .footer-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-right {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
    }

    .footer-contact {
        align-items: center;
    }

    .back-to-top {
        position: static;
        margin-top: 0.5rem;
    }
}

/* Markdown Inline Image Preview Styles */
.cm-image-container {
    padding: 0;
    margin: 0;
    position: relative;
    display: block;
    clear: both;
    line-height: 0;
}

.cm-image-preview-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-body);
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
    cursor: default;
    line-height: 0;
    margin: 0.25rem 0;
}

.cm-image-preview-wrapper img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: all 0.3s ease;
}

.cm-image-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(1px);
}

.cm-image-preview-wrapper:hover .cm-image-controls {
    opacity: 1;
}

.cm-image-control-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: white;
    color: #1e293b;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cm-image-control-btn:hover {
    transform: scale(1.1);
    background: var(--accent);
    color: white;
}

.cm-image-control-btn.btn-delete:hover {
    background: #ef4444;
}

/* Expanded state */
.cm-image-preview-wrapper.expanded img {
    height: auto;
    max-height: 400px;
    max-width: 100%;
}

/* EasyMDE (Markdown) Toolbar Refinements */
.editor-toolbar {
    padding: 0px 8px !important;
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
}

.editor-toolbar::-webkit-scrollbar {
    height: 3px;
}

.editor-toolbar::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 10px;
}

.editor-toolbar button {
    width: 30px !important;
    height: 30px !important;
    margin: 2px 1px !important;
    border-radius: 4px !important;
    border: none !important;
}

.editor-toolbar button:hover {
    background: var(--bg-body) !important;
    color: var(--accent) !important;
}

.editor-toolbar i.separator {
    margin: 0 4px !important;
    border-right: none !important;
    border-left: 1px solid var(--border-light) !important;
    height: 16px !important;
    /* Shorten the height */
    vertical-align: middle !important;
    display: inline-block !important;
}

/* EasyMDE Fullscreen Mode Fixes */
.editor-toolbar.fullscreen,
.CodeMirror-fullscreen,
.editor-preview-side.editor-preview-active-side {
    z-index: 10001 !important;
    /* Higher than header/sidebar */
    background: var(--bg-card) !important;
}

.editor-toolbar.fullscreen {
    border: none !important;
    border-bottom: 1px solid var(--border-light) !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 8px 15px !important;
}

.CodeMirror-fullscreen {
    top: 50px !important;
    /* Space for toolbar */
    background: var(--bg-body) !important;
}

/* Ensure icons are visible even on mobile */
@media (max-width: 768px) {

    .editor-toolbar .fa-arrows-alt,
    .editor-toolbar .fa-expand,
    .editor-toolbar .fa-compress,
    .editor-toolbar .fa-maximize {
        display: inline-block !important;
    }

    .editor-toolbar button,
    .editor-toolbar button.force-fullscreen {
        display: inline-block !important;
        /* Force show all buttons */
        width: 28px !important;
        height: 28px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* SunEditor (WYSIWYG) Toolbar Mobile Scrollable */
    .sun-editor .se-toolbar {
        display: block !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        /* Allow dropdown trigger areas to be visible */
        background: var(--bg-card) !important;
        scrollbar-width: thin;
        height: auto !important;
    }

    .sun-editor .se-toolbar::-webkit-scrollbar {
        height: 2px;
        display: block !important;
    }

    .sun-editor .se-resizing-bar {
        display: none !important;
    }

    .sun-editor .se-btn-module,
    .sun-editor .se-btn-list {
        display: inline-block !important;
        float: none !important;
        vertical-align: middle !important;
        border: none !important;
        padding: 0 2px !important;
        background: transparent !important;
    }

    /* Fix Formats, Font, Size dropdowns on mobile */
    .sun-editor .se-toolbar .se-btn-select {
        width: auto !important;
        min-width: 60px !important;
        padding: 0 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .sun-editor .se-toolbar .se-btn-select .txt {
        max-width: 80px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        margin-right: 4px !important;
    }

    .sun-editor .se-toolbar button {
        float: none !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    /* Transform dropdowns into centered modals on mobile to avoid clipping */
    .sun-editor .se-list-layer {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10000 !important;
        width: 85vw !important;
        max-width: 320px !important;
        height: auto !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--accent) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
        border-radius: 12px !important;
        padding: 8px !important;
    }

    /* Force dropdown items to be readable in modal mode */
    .sun-editor .se-list-inner ul li button {
        width: 100% !important;
        text-align: left !important;
        padding: 10px 15px !important;
        height: auto !important;
        border-bottom: 1px solid var(--border-light) !important;
    }

    .sun-editor .se-list-inner ul li:last-child button {
        border-bottom: none !important;
    }
}

/* SunEditor Dark Mode Support */
[data-theme='dark'] .sun-editor {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme='dark'] .sun-editor .se-toolbar {
    background-color: #1e293b !important;
    outline: 1px solid #334155 !important;
}

[data-theme='dark'] .sun-editor .se-btn-module {
    border-color: #334155 !important;
}

[data-theme='dark'] .sun-editor button {
    color: #94a3b8 !important;
}

[data-theme='dark'] .sun-editor button:hover,
[data-theme='dark'] .sun-editor button.active {
    background-color: #334155 !important;
    color: #3182f6 !important;
}

[data-theme='dark'] .sun-editor .se-list-layer {
    background-color: #1e293b !important;
    border-color: #3182f6 !important;
    color: #f1f5f9 !important;
}

[data-theme='dark'] .sun-editor .se-list-inner ul li button {
    color: #f1f5f9 !important;
}

[data-theme='dark'] .sun-editor .se-list-inner ul li button:hover {
    background-color: #334155 !important;
}

/* SVG Icon visibility in SunEditor */
.sun-editor .se-toolbar button svg {
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
}

[data-theme='dark'] .sun-editor .se-toolbar button svg {
    stroke: #94a3b8;
}

[data-theme='dark'] .sun-editor .se-toolbar button:hover svg {
    stroke: #3182f6;
}