/* Django Posts 커뮤니티 - 컴포넌트 스타일 */

/* 게시물 아이템 */
.post-item {
    border-left: 4px solid #3498db;
    padding-left: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}

.post-content {
    color: #555;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.post-header h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.post-header h3 a:hover {
    color: #3498db;
}

/* 게시판 카드 */
.board-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.board-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.board-card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.board-card h3 a:hover {
    color: #3498db;
}

.board-stats {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.board-badge {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 게시물 상세 */
.post-detail {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-detail .post-header h1 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-detail .post-content {
    margin: 2rem 0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* 댓글 */
.comments-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comment-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.comment-content {
    margin-top: 0.5rem;
}

/* 폼 */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* 페이지 헤더 */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

/* 빈 상태 */
.no-boards, .no-posts {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* 반응형 그리드 */
.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.posts-list {
    margin-top: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    text-align: center;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* 통계 */
.stats-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    font-size: 0.9rem;
}

/* 환영 섹션 */
.welcome-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}
