@charset "utf-8";
/* view.css - 기도게시판 전용 (메인 색상 톤) */

/* 컨테이너 배경 */
.container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 50%, #e8ebff 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    position: relative;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.8;
    border-radius: 12px 12px 0 0;
}

h2 { 
    font-size: 1.2rem; 
    margin-top: 2rem; 
    color: #4a5568;
    font-weight: 600;
}

.title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
    margin-top: 0;
    color: #2d3748;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(102, 126, 234, 0.1);
}

.info { 
    font-size: 0.9rem; 
    color: #718096; 
    margin-bottom: 1.5rem; 
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-weight: 500;
	text-align: center; /* 추가 */
}

.post-img { 
    width: 100%; 
    max-width: 800px;
    height: auto; 
    margin-bottom: 1.5rem; 
    border-radius: 10px; 
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.post-img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.content { 
    white-space: pre-wrap; 
    margin-bottom: 2rem; 
    line-height: 1.7; 
    font-size: 1.1rem;
    color: #2d3748;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.attachments ul { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 1rem 0; 
}

.attachments li { 
    margin-bottom: 0.3rem; 
}

.attachments a { 
    color: #667eea; 
    text-decoration: none; 
    font-weight: 500;
}

.attachments a:hover { 
    text-decoration: underline;
    color: #764ba2;
}

/* post-info-top 간격 조정 및 스타일링 */
.post-info-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 1rem;
    margin-top: 1px; /* 상단 네비게이션과 간격 좁히기 */
    font-weight: 600;
    padding: 8px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.post-info-top .board-type {
    color: #667eea;
    font-weight: 700;
}

.post-info-top .board-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

textarea { 
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    transition: border-color 0.3s ease;
} 

textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.2);
}

.btn { 
    display: inline-block; 
    padding: 10px 20px; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border: none; 
    border-radius: 8px; 
    text-decoration: none; 
    font-size: 0.95rem; 
    cursor: pointer; 
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.btn:hover { 
    background: linear-gradient(135deg, #5a6fe8 0%, #6d42a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.menu-wrapper { 
    position: absolute; 
    top: 1rem; 
    right: 1rem; 
}

.menu-btn { 
    background: none; 
    border: none; 
    font-size: 1.2rem; 
    cursor: pointer; 
    color: #4a5568;
}

.menu-list { 
    display: none; 
    position: absolute; 
    top: 2rem; 
    right: 0; 
    list-style: none; 
    margin: 0; 
    padding: 0.5rem 0; 
    background: white; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    z-index: 100;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.menu-list li a { 
    display: block; 
    padding: 0.4rem 1rem; 
    text-decoration: none; 
    color: #4a5568; 
    font-size: 0.9rem; 
}

.menu-list li a:hover { 
    background: #f7fafc; 
    color: #667eea;
}

.pagination { 
    text-align: center; 
    margin: 1.5rem 0; 
}

.pagination a, .pagination span { 
    display: inline-block; 
    padding: 8px 12px; 
    margin: 0 4px; 
    text-decoration: none; 
    border: 2px solid #e2e8f0; 
    border-radius: 6px; 
    font-size: 0.9rem; 
    color: #4a5568;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.pagination .active { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    border-color: #667eea; 
}

.vote-btn { 
    padding: 6px 12px; 
    margin-right: 0.5rem; 
    background: rgba(102, 126, 234, 0.1); 
    border: 1px solid #667eea; 
    border-radius: 6px; 
    font-size: 0.85rem; 
    cursor: pointer; 
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vote-btn:hover { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
}

.likes { 
    margin: 2rem 0; 
    text-align: center; 
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.comments { 
    padding: 0; 
    margin: 0; 
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.comment { 
    padding: 1.5rem; 
    border-bottom: 1px solid #e2e8f0; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    transition: background-color 0.3s ease;
}

.comment:hover {
    background: #f7fafc;
}

.comment-author { 
    font-weight: bold; 
    font-size: 1rem; 
    color: #4a5568; 
}

.comment .info { 
    font-size: 0.85rem; 
    color: #718096; 
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.comments .text { 
    font-size: 0.95rem; 
    line-height: 1.5; 
    white-space: pre-wrap; 
    text-align: left; 
    margin-left: 1rem;
    color: #2d3748;
}

.comment .actions { 
    display: flex; 
    gap: 0.5rem; 
}

.comment .actions .vote-btn { 
    background: rgba(102, 126, 234, 0.1); 
    border: 1px solid #667eea; 
    border-radius: 6px; 
    padding: 6px 12px; 
    font-size: 0.8rem; 
    cursor: pointer; 
    color: #667eea;
}

.comment .actions .vote-btn:hover { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comment-form { 
    margin-top: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.5rem; 
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.comment-form textarea { 
    resize: vertical; 
    min-height: 100px; 
}

.comment-form .btn { 
    align-self: flex-end; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: white; 
    padding: 10px 20px; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
}

.comment-form .btn:hover { 
    background: linear-gradient(135deg, #5a6fe8 0%, #6d42a0 100%);
}

@media (max-width: 480px) {
    .wrap { 
        padding: 1rem 0.7rem; 
    }
    .menu-wrapper { 
        top: 0.5rem; 
        right: 0.5rem; 
    }
    .post-info-top {
        margin-top: 0px; /* 모바일에서 더 좁게 */
    }
}

@media (min-width: 768px) {
    .comment { 
        flex-direction: row; 
        align-items: flex-start; 
    }
    .comment-author { 
        flex: 0 0 120px; 
    }
    .comment .info, .comment .text { 
        flex: 1; 
    }
    .comment .actions { 
        flex: 0 0 auto; 
        align-self: center; 
    }
    .comment-form { 
        flex-direction: row; 
        align-items: flex-start; 
    }
    .comment-form textarea { 
        flex: 1; 
    }
    .comment-form .btn { 
        margin-left: 1rem; 
        align-self: center; 
    }
}