* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Noto Sans KR', -apple-system, sans-serif; }
body { background-color: #f4f5f7; color: #333; line-height: 1.5; }
a { text-decoration: none; color: inherit; }

.container { display: flex; width: 80%; max-width: 1200px; margin: 30px auto; gap: 24px; }
.main-content { flex: 3; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sidebar { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 20px; }

.notice-banner { 
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%); 
    border: 2px solid #bfdbfe; 
    border-radius: 16px; 
    padding: 24px; 
    text-align: center; 
    font-weight: 700; 
    font-size: 20px; 
    color: #1e3a8a; 
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08); 
}
.notice-banner small { 
    display: inline-block; 
    margin-top: 8px; 
    background: #ffffff; 
    padding: 8px 16px; 
    border-radius: 20px; 
    border: 1px solid #93c5fd; 
    color: #1e40af; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.03); 
}

.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.board-card {
    background: #ffffff;
    border-radius: 16px; 
    padding: 20px 16px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); 
    border: 1px solid #f0f0f0; 
    cursor: pointer; 
    transition: transform 0.2s ease, box-shadow 0.2s ease; 
}
.board-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.card-header { text-align: center; border-bottom: 1px dashed #e5e7eb; padding-bottom: 12px; margin-bottom: 12px; }
.card-icon { 
    font-size: 24px; 
    margin: 0 auto 8px; 
    background: #fff7ed; 
    width: 48px; 
    height: 48px; 
    line-height: 48px; 
    border-radius: 50%; 
    border: 1px solid #ffedd5; 
}
.card-title { font-size: 16px; font-weight: 700; color: #111827; }

.post-list { list-style: none; font-size: 13px; }
.post-list li { margin-bottom: 10px; }
.post-list a { 
    display: block; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    color: #4b5563; 
    transition: color 0.2s ease; 
}
.post-list a:hover { color: #f97316; text-decoration: underline; }

.sidebar-box { 
    background: #ffffff; 
    border-radius: 14px; 
    padding: 18px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03); 
    border: 1px solid #f0f0f0; 
    cursor: pointer;
}
.sidebar-box strong { font-size: 14px; color: #374151; display: block; margin-bottom: 10px; }

.search-bar { display: flex; gap: 6px; }
.search-bar input { 
    flex: 1; 
    padding: 9px 12px; 
    border: 1px solid #d1d5db; 
    border-radius: 8px; 
    font-size: 13px; 
    outline: none; 
    transition: border-color 0.2s; 
}
.search-bar input:focus { border-color: #f97316; }
.search-bar button { 
    padding: 9px 14px; 
    background: #4b5563; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: background 0.2s; 
}
.search-bar button:hover { background: #1f2937; }

.auth-buttons { display: flex; gap: 10px; }
.btn { 
    flex: 1; 
    padding: 12px; 
    text-align: center; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 13px; 
    color: white; 
    transition: opacity 0.2s; 
}
.btn:hover { opacity: 0.9; }
.btn-login { background-color: #f97316; }
.btn-login small { font-weight: 500; font-size: 11px; color: black; display: block; margin-top: 2px; }
.btn-signup { background-color: #2563eb; }
.btn-signup small { font-weight: 500; font-size: 11px; color: black; display: block; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { 
    background: #f3f4f6; 
    color: #4b5563; 
    padding: 6px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 500; 
    cursor: pointer; 
    transition: background 0.2s, color 0.2s; 
}
.tag:hover { background: #ffedd5; color: #c2410c; }

.best-list { list-style: none; counter-reset: best-counter; }
.best-list li { 
    font-size: 13px; 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    color: #374151; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.best-list li::before { 
    counter-increment: best-counter; 
    content: counter(best-counter); 
    font-weight: 800; 
    color: #f97316; 
    font-size: 14px; 
    min-width: 14px; 
}

.hot-posts-section {
    margin-top: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.hot-posts-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.hot-posts-section .section-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0;
}

.hot-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hot-posts-section .btn-more {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hot-posts-section .btn-more:hover {
    color: #f97316;
}
.hot-post-item {
    background: litegray;
    border: 2px solid gray;
    border-radius: 12px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.hot-post-item:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #fdba74;
}

.post-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.post-icon {
    font-size: 15px;
    line-height: 1;
}

.post-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.post-title:hover {
    color: #f97316;
}

.post-author-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 130px;
    
}

.author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
}

.author-name {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    width: 140px;
    justify-content: flex-end;
}

.post-stats strong {
    color: #111827;
    font-weight: 700;
}

.post-stats .divider {
    color: #d1d5db;
    margin: 0 2px;
}

.status-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.status-card .widget-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
}

.status-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.status-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: #e5e7eb;
}

.status-value {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 4px;
}

.status-label {
    font-size: 12px;
    color: #6b7280;
}

.checklist-banner {
    background: #f0f5ff;
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
}

.banner-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.banner-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 18px;
}

.btn-checklist {
    width: 100%;
    padding: 12px;
    background-color: #4c80f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-checklist:hover {
    background-color: #3b6cd4;
}

.btn-logout { background-color: #4b5563; }
.btn-logout small { font-weight: 500; font-size: 11px; color: #e5e7eb; display: block; margin-top: 2px; }

@media (max-width: 900px) {
    .container { flex-direction: column; width: 92%; }
    .sidebar { min-width: 0; width: 100%; }
}

@media (max-width: 760px) {
    .sidebar .search-bar,
    .sidebar .auth-buttons .btn-logout { display: none; }
    .sidebar .auth-buttons:has(> .btn-logout) { display: none; }
}

@media (max-width: 760px) {
    .hot-post-item { padding: 12px 14px; gap: 10px; }
    .hot-post-item .post-author-group { display: none; }
    .hot-post-item .post-title-group { min-width: 0; }
    .hot-post-item .post-title {
        white-space: normal;             
        display: -webkit-box;             
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.45;
    }
    .hot-post-item .post-stats { width: auto; flex-shrink: 0; }
}

.hot-post-item { position: relative; cursor: pointer; }
.hot-post-item .post-title::after {
    content: "";
    position: absolute;
    inset: 0;              
    border-radius: 12px;
}

.hot-post-item:hover .post-title { color: #f97316; }

@media (max-width: 760px) {
    .sidebar .auth-buttons { display: none; }
}

.hot-posts-section .section-title .hot-window { font-size: 12px; font-weight: 600; color: #94a3b8; margin-left: 6px; }
