@charset "UTF-8";

:root {
    --bbs-brand: #7dd3fc;
    --bbs-brand-strong: #0ea5e9;
    --bbs-ink: #0f172a;
    --bbs-muted: #64748b;
    --bbs-line: rgba(125, 211, 252, 0.32);
    --bbs-line-strong: rgba(14, 165, 233, 0.32);
    --bbs-glass: rgba(255, 255, 255, 0.68);
    --bbs-glass-strong: rgba(255, 255, 255, 0.82);
    --bbs-glass-soft: rgba(240, 249, 255, 0.58);
    --bbs-shadow: 0 18px 54px -30px rgba(15, 23, 42, 0.32);
    --bbs-shadow-hover: 0 22px 64px -30px rgba(14, 116, 144, 0.38);
    --bbs-page-max: min(100% - 2rem, 1280px);
    --bbs-view-max: min(100% - 2rem, 1160px);
    --bbs-editor-max: min(100% - 2rem, 1220px);
}

body.bbs-glass-page {
    min-height: 100vh;
    color: var(--bbs-ink);
    background:
        linear-gradient(140deg, rgba(240, 249, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(224, 242, 254, 0.9) 100%),
        linear-gradient(180deg, #f8fbff 0%, #eff8ff 100%);
    background-attachment: fixed;
}

.bbs-glass-page .bbs-glass-card,
.bbs-glass-page .glass-card {
    background: var(--bbs-glass);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--bbs-shadow);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    backdrop-filter: blur(20px) saturate(1.2);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.bbs-glass-page .bbs-glass-card:hover,
.bbs-glass-page .glass-card:hover {
    border-color: rgba(125, 211, 252, 0.48);
}

.bbs-glass-page .bbs-glass-soft {
    background: var(--bbs-glass-soft);
    border: 1px solid rgba(186, 230, 253, 0.42);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    backdrop-filter: blur(14px) saturate(1.12);
}

.bbs-glass-page .bbs-hero-panel {
    position: relative;
    overflow: hidden;
}

.bbs-glass-page .bbs-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(125, 211, 252, 0.28), rgba(255, 255, 255, 0) 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}

.bbs-glass-page .bbs-hero-panel > * {
    position: relative;
}

.bbs-glass-page .btn-primary {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    border-color: rgba(14, 165, 233, 0.35);
    color: #082f49;
    box-shadow: 0 12px 28px -18px rgba(2, 132, 199, 0.9);
}

.bbs-glass-page .btn-primary:hover {
    background: linear-gradient(135deg, #bae6fd, #38bdf8);
    border-color: rgba(2, 132, 199, 0.42);
    color: #082f49;
}

.bbs-glass-page .badge-primary,
.bbs-glass-page .badge-secondary {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.18);
    color: #0369a1;
}

.bbs-glass-page .input,
.bbs-glass-page .textarea,
.bbs-glass-page .select,
.bbs-glass-page .file-input,
.bbs-glass-page .editor-container {
    background: rgba(255, 255, 255, 0.66);
    border-color: rgba(125, 211, 252, 0.34);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.bbs-glass-page .input:focus-within,
.bbs-glass-page .textarea:focus,
.bbs-glass-page .select:focus,
.bbs-glass-page .file-input:focus,
.bbs-glass-page .editor-container:focus-within {
    border-color: var(--bbs-brand-strong);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.25);
}

.bbs-glass-page .dropdown-content,
.bbs-glass-page .modal-box {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(186, 230, 253, 0.54);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
    backdrop-filter: blur(18px) saturate(1.18);
}

.bbs-index-page .bbs-toolbar {
    gap: 0.85rem;
}

.bbs-index-page main,
.bbs-view-page main,
.bbs-editor-page main {
    width: 100%;
}

.bbs-index-page main {
    max-width: var(--bbs-page-max);
}

.bbs-view-page main {
    max-width: var(--bbs-view-max);
}

.bbs-editor-page main {
    max-width: var(--bbs-editor-max);
}

.bbs-index-page .filter-chip {
    border-radius: 0.75rem;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.bbs-index-page .filter-chip.bg-base-100 {
    background: rgba(255, 255, 255, 0.8);
    color: #075985;
    box-shadow: 0 10px 24px -18px rgba(14, 116, 144, 0.9);
}

.bbs-index-page .filter-chip:active {
    transform: translateY(1px);
}

.bbs-index-page #board-list {
    overflow: visible;
}

.bbs-index-page #board-list > .divide-y {
    border-radius: 1rem;
}

.bbs-index-page #board-list .divide-y > :not([hidden]) ~ :not([hidden]) {
    border-color: rgba(125, 211, 252, 0.22);
}

.bbs-index-page .board-item {
    background: rgba(255, 255, 255, 0.22);
    transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bbs-index-page .board-item:hover {
    background: rgba(255, 255, 255, 0.64);
    box-shadow: inset 3px 0 0 rgba(14, 165, 233, 0.55);
}

.bbs-index-page .board-item.is-dropdown-open {
    z-index: 70;
    background: rgba(255, 255, 255, 0.86);
    transform: none !important;
}

.bbs-index-page .board-item.is-dropdown-open:hover {
    transform: none !important;
}

.bbs-index-page .bbs-author-dropdown {
    position: relative;
    display: inline-flex;
}

.bbs-index-page .bbs-author-dropdown .bbs-author-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-4px);
    transition: none;
    background: #ffffff !important;
    border: 1px solid rgba(125, 211, 252, 0.38) !important;
    color: #0f172a;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.18), 0 8px 18px rgba(14, 165, 233, 0.12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.bbs-index-page .bbs-author-dropdown.dropdown-open .bbs-author-dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.bbs-index-page .bbs-author-dropdown .menu-title {
    color: #64748b;
}

.bbs-index-page .bbs-author-dropdown .menu :where(li > *) {
    border-radius: 0.8rem;
    color: #334155;
}

.bbs-index-page .bbs-author-dropdown .menu :where(li > *:hover) {
    background: #f0f9ff;
}

.bbs-index-page .board-item .bg-base-200 {
    background: rgba(224, 242, 254, 0.58);
}

.bbs-index-page .board-item:hover .bg-base-200 {
    background: rgba(125, 211, 252, 0.24);
}

.bbs-index-page .join.bbs-glass-card {
    overflow: hidden;
}

.bbs-index-page .bbs-fab {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    color: #082f49;
    box-shadow: 0 18px 36px -18px rgba(2, 132, 199, 0.9);
}

.bbs-view-page .bbs-post-card,
.bbs-view-page .bbs-comments-card {
    overflow: visible;
}

.bbs-view-page .bbs-post-card {
    background: rgba(255, 255, 255, 0.78);
}

.bbs-view-page .bbs-post-card > header,
.bbs-view-page .bbs-comments-card > div:first-child {
    border-color: rgba(125, 211, 252, 0.26);
}

.bbs-view-page .bbs-post-footer,
.bbs-view-page .bbs-comment-form,
.bbs-view-page .bbs-attachment-box {
    background: rgba(240, 249, 255, 0.58);
    border-color: rgba(125, 211, 252, 0.28);
}

.bbs-view-page .bbs-comments-list {
    background: transparent;
}

.bbs-view-page .bbs-comments-list > :not([hidden]) ~ :not([hidden]) {
    border-color: rgba(125, 211, 252, 0.2);
}

.bbs-view-page .bbs-comment-item:hover {
    background: rgba(255, 255, 255, 0.42);
}

.bbs-glass-page .prose {
    color: #1e293b;
    line-height: 1.82;
}

.bbs-view-page .prose {
    font-size: 1rem;
}

.bbs-view-page .prose > :first-child {
    margin-top: 0;
}

.bbs-view-page .prose > :last-child {
    margin-bottom: 0;
}

.bbs-view-page .prose h1,
.bbs-view-page .prose h2,
.bbs-view-page .prose h3,
.bbs-view-page .prose h4 {
    color: #0f172a;
    letter-spacing: 0;
}

.bbs-view-page .prose blockquote {
    border-left-color: var(--bbs-brand-strong);
    background: rgba(240, 249, 255, 0.72);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
}

.bbs-glass-page .prose img {
    border: 1px solid rgba(186, 230, 253, 0.62);
    box-shadow: 0 18px 42px -30px rgba(15, 23, 42, 0.42);
}

.bbs-editor-page .bbs-info-card,
.bbs-editor-page .bbs-reward-card {
    background: rgba(255, 255, 255, 0.66);
    border-color: rgba(186, 230, 253, 0.44);
    box-shadow: 0 14px 36px -28px rgba(15, 23, 42, 0.34);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    backdrop-filter: blur(14px) saturate(1.12);
}

.bbs-editor-page .ql-toolbar.ql-snow {
    background: rgba(240, 249, 255, 0.72);
    border-color: rgba(125, 211, 252, 0.24);
}

.bbs-editor-page .ql-container.ql-snow {
    background: rgba(255, 255, 255, 0.56);
}

.bbs-editor-page .floating-action-bar {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(125, 211, 252, 0.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.16);
    backdrop-filter: blur(18px) saturate(1.16);
}

@media (hover: hover) and (pointer: fine) {
    .bbs-index-page .board-item:hover {
        transform: translateY(-1px);
    }
}

@media (min-width: 1024px) {
    :root {
        --bbs-page-max: min(100% - 3rem, 1360px);
        --bbs-view-max: min(100% - 3rem, 1180px);
        --bbs-editor-max: min(100% - 3rem, 1280px);
    }

    .bbs-index-page .bbs-toolbar {
        position: sticky;
        top: 5.25rem;
        z-index: 20;
    }

    .bbs-index-page .board-item > div {
        padding: 1.1rem 1.65rem;
    }

    .bbs-index-page .board-item h2 {
        font-size: 1.02rem;
    }

    .bbs-view-page .bbs-post-card > header,
    .bbs-view-page .bbs-post-card > div,
    .bbs-view-page .bbs-post-card > footer,
    .bbs-view-page .bbs-comments-card > div:first-child,
    .bbs-view-page .bbs-comment-form,
    .bbs-view-page .bbs-comments-list > div,
    .bbs-view-page .bbs-comment-item {
        padding-left: clamp(2.5rem, 4vw, 4.5rem);
        padding-right: clamp(2.5rem, 4vw, 4.5rem);
    }

    .bbs-view-page .prose {
        font-size: 1.075rem;
        line-height: 1.9;
    }

    .bbs-view-page .prose img {
        max-width: min(100%, 980px);
        margin-left: auto;
        margin-right: auto;
    }

    .bbs-editor-page .ql-editor {
        min-height: clamp(420px, 54vh, 620px);
        padding: 1.5rem 1.75rem;
    }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .bbs-glass-page .bbs-glass-card,
    .bbs-glass-page .glass-card,
    .bbs-glass-page .bbs-glass-soft,
    .bbs-glass-page .dropdown-content,
    .bbs-glass-page .modal-box,
    .bbs-editor-page .bbs-info-card,
    .bbs-editor-page .bbs-reward-card {
        background: rgba(255, 255, 255, 0.94);
    }
}

@media (max-width: 640px) {
    :root {
        --bbs-page-max: 100%;
        --bbs-view-max: 100%;
        --bbs-editor-max: 100%;
    }

    body.bbs-glass-page {
        background-attachment: scroll;
    }

    .bbs-glass-page .bbs-glass-card,
    .bbs-glass-page .glass-card {
        box-shadow: 0 14px 36px -28px rgba(15, 23, 42, 0.32);
    }

    .bbs-index-page .board-item:hover {
        box-shadow: inset 2px 0 0 rgba(14, 165, 233, 0.55);
    }

    .bbs-view-page main {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
