@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea,
.search-input {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: #151619;
    color: #f2f3f5;
    line-height: 1.375;
    overflow-x: hidden;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.top-header {
    background-color: #151619;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-header-logo img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.top-header-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #f2f3f5;
    font-family: 'Paperozi', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    text-decoration: none;
}

.top-header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 32px;
}

.top-header-nav-item {
    color: #b5bac1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    position: relative;
}

.top-header-nav-item:hover {
    color: #f2f3f5;
}

.top-header-nav-item.active {
    color: #ffffff;
    font-weight: 600;
}

.top-header-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #0078FF;
    border-radius: 1px;
}

.banner-section {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.banner-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    display: block;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-promo {
    max-width: 1400px;
    padding: 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.community-promo-text {
    flex: 1;
}

.community-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.community-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.community-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.community-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 46px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    transition: opacity 0.15s;
    color: #ffffff;
}

.community-button span {
    line-height: 1.2 !important;
}

.community-button:hover {
    opacity: 0.9;
}

.community-button-cafe {
    background-color: #03C75A;
}

.community-button-discord {
    background-color: #5865F2;
}

.community-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.layout {
    display: flex;
    min-height: calc(100vh - 57px);
    max-width: 100%;
}

.layout-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    min-height: calc(100vh - 57px);
    padding: 24px;
    gap: 27px;
}

.left-panel {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tag-filter-box {
    background-color: #1e1f22;
    border-radius: 12px;
    padding: 23px;
    position: sticky;
    top: 69px;
    width: 100%;
}

.tag-filter-title {
    font-size: 18px;
    font-weight: 600;
    color: #f2f3f5;
    margin-bottom: 16px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.tag-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.tag-item {
    display: block;
    padding: 10px 12px;
    margin: 2px 0;
    color: #b5bac1;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    transition: background-color 0.15s, color 0.15s;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    max-width: 100%;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.tag-item:hover {
    background-color: #232428;
    color: #f2f3f5;
}

.tag-item.active {
    background-color: #0078FF;
    color: #ffffff;
}

.tag-item.active:hover {
    background-color: #0066dd;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.content-header {
    margin-top: 10px;
    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    background-color: transparent;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.content-title {
    font-size: 22px;
    font-weight: 600;
    color: #f2f3f5;
    letter-spacing: -0.2px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.content-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background-color: transparent;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input {
    background-color: #1e1f22;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 12px 18px;
    color: #f2f3f5;
    font-size: 14px;
    min-width: 250px;
    width: 100%;
    max-width: 340px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #0078FF;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-item-pinned + .post-item-pinned {
    margin-top: 9px !important;
}

.post-item-pinned + .post-item:not(.post-item-pinned) {
    margin-top: 16px !important;
}

.post-item:not(.post-item-pinned) + .post-item:not(.post-item-pinned) {
    margin-top: 16px !important;
}

.post-item {
    background-color: #1e1f22;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    position: relative;
}

.post-item:hover {
    background-color: #232428;
    border-color: rgba(0, 0, 0, 0.4);
}

.post-item-pinned {
    background-color: #222428;
    padding: 10px 18px;
    border-radius: 14px;
}

.post-item-pinned::before {
    display: none;
}

.post-item-pinned:hover {
    background-color: #26282c;
}

.post-header-pinned {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.pin-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    opacity: 0.6;
}

.post-title-pinned {
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
    line-height: 1.4;
    flex: 1;
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
}

.post-content-wrapper {
    flex: 1;
    min-width: 0;
    padding-left: 4px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #f2f3f5;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
    line-height: 1.4;
    font-style: normal !important;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.post-title * {
    font-style: normal !important;
}

.post-title em,
.post-title i {
    font-style: normal !important;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.post-tag {
    padding: 4px 10px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #b5bac1;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.post-preview {
    font-size: 15px;
    color: #b5bac1;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: normal;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Discord 전용 - 내용 전체 표시 */
.discord-post-list .post-preview {
    display: block;
    -webkit-line-clamp: none;
    -webkit-box-orient: initial;
    overflow: visible;
    font-style: normal;
    white-space: pre-line;
}

/* 내용에서 기울임은 정상 작동하도록 */
.post-preview em,
.post-preview i {
    font-style: italic;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #f2f3f5;
    margin-bottom: 8px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.empty-state-text {
    font-size: 14px;
    color: #b5bac1;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 20px;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 120, 255, 0.1);
    border-top-color: #0078FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #b5bac1;
    font-size: 14px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.site-footer {
    margin-top: 20px;
    background-color: #1a1b1e;
    padding: 16px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.footer-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    color: #6b7280;
    font-size: 13px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.footer-notice {
    color: #b5bac1;
    font-size: 13px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.footer-link {
    color: #b5bac1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.footer-link:hover {
    color: #f2f3f5;
}

.search-highlight {
    background-color: #FFD700;
    color: #000000;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .community-promo {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    
    .community-buttons {
        display: none;
    }
    
    .community-button {
        width: 100%;
        justify-content: center;
    }

    .layout-container {
        gap: 20px;
        padding: 20px;
    }

    .left-panel {
        flex: 0 0 240px;
    }

    .search-input {
        min-width: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-left,
    .footer-links {
        display: none;
    }

    .footer-center {
        justify-content: center;
    }

    .footer-text {
        text-align: center;
    }
    .content-header {
        padding: 24px 32px 20px;
    }

    .content-body {
        padding: 24px 32px;
    }
}

@media (max-width: 768px) {
    .banner-section {
        display: none;
    }

    .banner-content {
        padding: 24px 16px;
    }
    
    .community-promo {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .community-title {
        font-size: 20px;
    }
    
    .community-description {
        font-size: 14px;
    }
    
    .community-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .community-button {
        width: 100%;
        justify-content: center;
    }
    
    .top-header-container {
        padding: 0 16px;
    }

    .top-header-logo-text {
        font-size: 14px;
        line-height: 1.3;
    }

    .top-header-logo img {
        width: 28px;
        height: 28px;
    }

    .top-header-nav {
        display: none;
    }

    .banner-section {
        padding: 0;
    }

    .banner-image {
        margin: 0;
    }

    .layout-container {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .left-panel {
        flex: 0 0 auto;
        width: 100%;
    }

    .tag-filter-box {
        position: static;
        top: auto;
        padding: 16px;
    }

    .tag-filter-list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 2px;
    }

    .tag-item {
        flex: 0 0 auto;
        margin: 0;
        white-space: nowrap;
    }

    .content-header {
        margin-top: 0;
        margin-bottom: 16px;
        padding: 0 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .content-body {
        padding: 0;
        overflow: visible;
    }

    .search-box {
        width: 100%;
    }

    .search-input {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .post-item {
        padding: 16px;
    }

    .post-content-wrapper {
        padding-left: 0;
    }

    .discord-post-list .post-preview {
        margin-left: 0;
        margin-right: 0;
    }

    .post-title {
        font-size: 16px;
    }

    .post-preview {
        font-size: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-header-container,
    .footer-container,
    .main-page-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .community-promo {
        padding: 16px;
    }

    .layout-container {
        padding: 12px;
    }

    .left-panel,
    .main-content {
        width: 100%;
    }

    .content-title {
        font-size: 20px;
    }

    .content-body {
        padding: 0;
        margin: 0;
    }

    .post-item {
        padding: 12px;
    }
}

.main-page {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}

.main-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-hero {
    text-align: center;
    margin-bottom: 60px;
}

.main-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.main-hero-description {
    font-size: 18px;
    color: #b5bac1;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.main-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.main-card {
    background-color: #1e1f22;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #f2f3f5;
    transition: background-color 0.2s ease;
    position: relative;
}

.main-card:hover {
    background-color: #232428;
}

.main-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0078FF;
}

.main-card-content {
    flex: 1;
    min-width: 0;
}

.main-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.main-card-description {
    font-size: 14px;
    color: #b5bac1;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.main-card-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5bac1;
    transition: color 0.2s ease;
}

.main-card:hover .main-card-arrow {
    color: #0078FF;
}

.main-card-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-preview-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-preview-item {
    background-color: #1e1f22;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: #f2f3f5;
    transition: background-color 0.2s ease;
    display: block;
}

.main-preview-item:hover {
    background-color: #232428;
}

.main-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
}

.main-preview-pin {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.main-preview-tag {
    color: #0078FF;
    font-weight: 500;
}

.main-preview-date {
    color: #888888;
    margin-left: auto;
}

.main-preview-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-preview-content {
    font-size: 13px;
    color: #b5bac1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-preview-empty {
    background-color: #1e1f22;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #888888;
    font-size: 14px;
}

@media (max-width: 768px) {
    .main-page {
        padding: 40px 0;
    }

    .main-hero {
        text-align: left;
        margin-bottom: 36px;
    }

    .main-hero-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .main-hero-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .main-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 60px;
    }

    .main-card {
        padding: 24px;
    }

    .main-card-section {
        gap: 12px;
    }

    .main-preview-list {
        gap: 10px;
    }

    .main-preview-item {
        padding: 14px;
    }

    .main-preview-title {
        font-size: 14px;
    }

    .main-preview-content {
        font-size: 12px;
    }
}

.post-preview a {
    color: #00aff4;
    text-decoration: none;
}

.post-preview a:hover {
    text-decoration: underline;
}

.post-preview .discord-attachment-link:hover {
    text-decoration: none;
}

.post-preview .discord-attachment-link:hover * {
    text-decoration: none;
}

.post-preview .discord-attachment-link:hover .discord-attachment-name {
    text-decoration: underline !important;
}

.discord-link {
    color: #00aff4;
    text-decoration: none;
}

.discord-link:hover {
    text-decoration: underline;
}

.discord-inline-code {
    background-color: rgba(0, 0, 0, 0.3);
    color: #e9e9ea;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 500;
}

.discord-codeblock {
    background-color: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #0078FF;
    border-radius: 4px;
    padding: 12px;
    margin: 8px 0;
    overflow-x: auto;
}

.discord-codeblock code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e9e9ea;
    white-space: pre;
    display: block;
}

.discord-bold {
    font-weight: 700;
}

.discord-italic {
    font-style: italic;
}

.discord-underline {
    text-decoration: underline;
}

.discord-strikethrough {
    text-decoration: line-through;
}

.discord-spoiler {
    background-color: rgba(0, 0, 0, 0.4);
    color: transparent;
    border-radius: 3px;
    padding: 1px 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.discord-spoiler:hover,
.discord-spoiler.revealed {
    background-color: rgba(0, 0, 0, 0.2);
    color: inherit;
}

.discord-quote {
    border-left: 4px solid #4f545c;
    padding-left: 12px;
    margin: 8px 0;
    color: #dcddde;
}

.discord-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.discord-image:hover {
    opacity: 0.9;
}

.discord-attachments {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discord-attachment {
    background-color: #2e3035;
    border-radius: 10px;
    overflow: hidden;
    max-width: 520px;
}

.discord-attachment-media {
    background-color: transparent;
    padding: 0;
    overflow: visible;
    max-width: 100%;
}

.discord-attachment-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding: 15px;
    transition: background-color 0.15s;
}

.discord-attachment-link:hover {
    background-color: #36393f;
    text-decoration: none;
}

.post-preview .discord-attachment-link:hover .discord-attachment-name,
.discord-attachment-link:hover .discord-attachment-name {
    text-decoration: underline !important;
}

.post-preview .discord-attachment-link:hover .discord-attachment-size,
.discord-attachment-link:hover .discord-attachment-size {
    text-decoration: none !important;
}

.discord-attachment-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 10px;
    display: block;
    cursor: pointer;
    object-fit: contain;
}

.discord-attachment-video {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 4px;
    display: block;
    background-color: #000;
}

.discord-attachment-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b5bac1;
}

.discord-attachment-icon svg {
    width: 30px;
    height: 30px;
}

.discord-attachment-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discord-attachment-name {
    font-size: 14px;
    font-weight: 500;
    color: #00aff4;
    word-break: break-word;
    line-height: 1.2;
}

.discord-attachment-size {
    font-size: 12px;
    color: #b5bac1;
    line-height: 1.2;
    text-decoration: none !important;
}

.discord-content {
    display: contents;
}

.discord-line {
    display: block;
    min-height: 1em;
}

.discord-line:empty {
    min-height: 0;
    height: 0;
}

.discord-line:not(:last-child) {
    margin-bottom: 0;
}

.discord-heading {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.discord-heading-h1 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 7px;
}

.discord-heading-h2 {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-top: 7px;
}

.discord-heading-h3 {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-top: 7px;
}