@charset "utf-8";

/* 기도게시판 전용 CSS - 사이트 메인 색상 응용 */

.container { 
    width: 100%; 
    max-width: 100%; 
    margin: 45px auto 0; 
    padding: 0 1rem; 
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 50%, #e8ebff 100%);
    min-height: 100vh; 
    border-radius: 12px; 
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15), 
                inset 0 2px 4px rgba(255, 255, 255, 0.8); 
    overflow: hidden;
    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;
}

.list-write { 
    width: 100%; 
    font-size: 1.8rem; 
    margin: 20px 0 25px 0; 
    text-align: center; 
    color: #4a5568;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(102, 126, 234, 0.2);
    font-family: 'Georgia', serif;
    position: relative;
}

.list-write::after {
    content: "🙏";
    position: absolute;
    top: -10px;
    right: 50%;
    transform: translateX(50%);
    font-size: 1.2rem;
    opacity: 0.7;
}

.search-form-board { 
    display: flex; 
    flex-direction: row; 
    width: 100%; 
    gap: 1%; 
    margin: 0 auto 20px; 
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.search-input { 
    width: 58%; 
    padding: 10px 8px; 
    font-size: 1rem; 
    box-sizing: border-box; 
    border: 2px solid #e2e8f0; 
    border-radius: 8px; 
    background: #ffffff;
    color: #4a5568;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
    outline: none;
}

.search-category { 
    width: 29%; 
    padding: 10px 8px; 
    font-size: 1rem; 
    box-sizing: border-box; 
    border: 2px solid #e2e8f0; 
    border-radius: 8px; 
    background: #ffffff;
    color: #4a5568;
    transition: all 0.3s ease;
}

.search-category:focus {
    border-color: #667eea;
    outline: none;
}

.search-button { 
    width: 13%; 
    padding: 10px 4px; 
    font-size: 1rem; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    text-align: center; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.search-button:hover {
    background: linear-gradient(135deg, #5a6fe8 0%, #6d42a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.select-all { 
    display: flex; 
    justify-content: flex-start; 
    align-items: center; 
    width: 100%; 
    margin: 0 auto 15px; 
    padding: 8px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    color: #4a5568;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.post-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.post-item { 
    display: grid; 
    grid-template-columns: 90px 1fr; 
    gap: 15px; 
    padding: 15px; 
    align-items: center; 
    border-bottom: 1px solid #e2e8f0; 
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.post-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.2);
}

.thumb { 
    width: 90px; 
    height: 63px; 
    object-fit: cover; 
    border-radius: 8px; 
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.thumb:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.post-summary { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}


.post-title { 
    font-size: 1.2rem; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #2d3748; 
    line-height: 1.4;
}

.post-title a { 
    color: #2d3748; 
    text-decoration: none; 
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #667eea;
}

.post-meta { 
    font-size: 0.9rem; 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 8px; 
    color: #718096; 
}

.info { 
    color: #718096; 
    font-weight: 500;
}

.vote-btn { 
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%); 
    border: 1px solid #667eea; 
    cursor: pointer; 
    font-size: 0.9rem; 
    color: #667eea; 
    padding: 6px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.vote-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.like-count { 
    font-weight: bold; 
    color: #764ba2;
}

.write-btn { 
    display: block; 
    width: 90%; 
    max-width: 400px; 
    margin: 25px auto; 
    padding: 15px; 
    font-size: 1.1rem; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    text-decoration: none; 
    text-align: center; 
    border-radius: 25px; 
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.write-btn::before {
    content: "✍️ ";
    margin-right: 8px;
}

.write-btn:hover {
    background: linear-gradient(135deg, #5a6fe8 0%, #6d42a0 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.pagination { 
    margin: 25px 0; 
    text-align: center; 
}

.pagination a, .pagination span { 
    display: inline-block; 
    padding: 10px 15px; 
    margin: 0 4px; 
    border: 2px solid #e2e8f0; 
    border-radius: 8px; 
    text-decoration: none; 
    color: #4a5568; 
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination .active { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    border-color: #667eea; 
}

/* 반응형 디자인 */
@media (min-width: 600px) {
    .search-input { flex: 1; margin-right: 0.5rem; }
    .search-button { flex: 0 0 120px; }
    .post-item { 
        flex-direction: row; 
        align-items: flex-start; 
        padding: 20px; 
    }
    .post-item img.thumb { width: 120px; height: 90px; }
    .post-summary { padding: 0 1rem; }
    .post-title a { font-size: 1.1rem; }
}

@media (min-width: 768px) {
    .post-item { 
        grid-template-columns: 120px 1fr; 
        padding: 20px; 
    }
    .thumb { width: 120px; height: 80px; }
    .post-title { font-size: 1.2rem; }
    .post-meta { font-size: 0.95rem; }
    .list-write { font-size: 2rem; }
}

@media (min-width: 1024px) {
    .main-content { max-width: 1000px; margin: 0 auto; }
    .list-write { 
        font-size: 2.2rem; 
        margin-bottom: 2rem; 
    }
    .post-item { padding: 25px 30px; }
    .post-item img.thumb { width: 150px; height: 100px; }
    .post-title a { font-size: 1.3rem; }
    .vote-btn { margin-left: auto; }
    .container {
        padding: 0 2rem;
    }
}