@charset "utf-8";

/* Variables */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --text-color: #333333;
    --text-muted: #6c757d;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Base */
.nc-board {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
}

.nc-board * {
    box-sizing: border-box;
}

.nc-board a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.nc-board a:hover {
    color: var(--primary-color);
}

.nc-board ul,
.nc-board ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nc-board h1,
.nc-board h2,
.nc-board h3,
.nc-board h4,
.nc-board h5,
.nc-board h6 {
    margin: 0;
    font-weight: 700;
}

/* Utility Classes */
.nc-hidden {
    display: none !important;
}

.nc-flex {
    display: flex;
}

.nc-items-center {
    align-items: center;
}

.nc-justify-between {
    justify-content: space-between;
}

.nc-mt-10 {
    margin-top: 10px;
}

.nc-mb-10 {
    margin-bottom: 10px;
}

.nc-text-primary {
    color: var(--primary-color);
}

.nc-text-muted {
    color: var(--text-muted);
}

/* Buttons */
.nc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.nc-btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.nc-btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
}

.nc-btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-color);
}

.nc-btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
}

/* Floating Action Button (Write) */
.nc-fab-write {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 100;
}

.nc-fab-write:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
}

/* List View */
.nc-list-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.nc-list-content {
    flex: 1;
    padding-right: 20px;
}

.nc-list-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.nc-list-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

.nc-list-thumb {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg-light);
}

.nc-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Read View */
.nc-read-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.nc-read-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.nc-read-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
}

.nc-read-body {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    min-height: 200px;
}

.nc-source-link {
    display: inline-block;
    background-color: var(--bg-light);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.nc-action-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.nc-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    min-width: 80px;
}

.nc-vote-btn:hover {
    background-color: var(--bg-light);
}

.nc-vote-count {
    font-size: 18px;
    font-weight: 700;
    margin-top: 5px;
}

/* Comment View */
.nc-comments {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.nc-comment-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.nc-comment-list {
    margin-bottom: 30px;
}

.nc-comment-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-light);
}

.nc-comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.nc-comment-author {
    font-weight: 700;
}

.nc-comment-date {
    color: var(--text-muted);
}

.nc-comment-content {
    font-size: 14px;
}

.nc-comment-form textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
}

/* Write View */
.nc-write-form {
    max-width: 800px;
    margin: 0 auto;
}

.nc-form-group {
    margin-bottom: 20px;
}

.nc-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.nc-form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.nc-form-textarea {
    width: 100%;
    height: 400px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
}