/* 
 * Tecxo.io — Blog & News Styles
 */

/* News Listing Page */
.news-filter-bar {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
}

.filter-select {
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
    background-color: var(--white);
}

.news-layout {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.news-main {
    flex: 3;
}

.news-sidebar {
    flex: 1;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    transition: var(--transition-fast);
}

.news-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.news-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.news-meta .category {
    color: var(--primary-color);
    font-weight: 500;
}

.news-card h3 {
    margin-bottom: 15px;
}

.news-card h3 a {
    color: var(--dark-bg);
}

.news-card h3 a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    background: rgba(37, 124, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-widget {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list a {
    color: var(--text-color);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Single Post */
.single-post-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.post-header {
    text-align: center;
    margin-bottom: 50px;
}

.post-meta {
    color: var(--text-light);
    margin-bottom: 20px;
}

.post-meta a {
    color: var(--primary-color);
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
}

.post-body h2 {
    margin: 40px 0 20px;
}

.post-body h3 {
    margin: 30px 0 15px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul, .post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

/* Comments Form */
.comments-section {
    max-width: 800px;
    margin: 0 auto 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comment-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

@media (max-width: 768px) {
    .news-layout {
        flex-direction: column;
    }
    
    .news-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
