/**
 * Custom Styles for Jun88 Đăng Nhập Theme
 * Additional styles beyond style.css
 * 
 * @package Jun88_Dang_Nhap
 * @version 1.0.0
 */

/* Post Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.post-thumbnail {
    display: block;
    overflow: hidden;
    height: 220px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.post-excerpt {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Pagination */
.pagination {
    margin: 50px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Single Post Styles */
.single-post {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-header {
    margin-bottom: 40px;
}

.post-title {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.post-featured-image {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

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

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

.post-body h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin: 40px 0 20px;
}

.post-body h3 {
    font-size: 26px;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.post-body ul, .post-body ol {
    margin: 20px 0 20px 30px;
}

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

.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

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

.post-tags a {
    display: inline-block;
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.post-share {
    color: var(--text-light);
}

.post-share a {
    display: inline-block;
    margin-left: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-share a:hover {
    color: var(--accent-color);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.post-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--accent-color);
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    border-radius: 12px;
    color: var(--white);
}

.archive-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.archive-description {
    font-size: 18px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Comments Section */
.comments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 28px;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

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

.comment-body {
    line-height: 1.8;
}

.comment-reply-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 15px;
}

.comment-form textarea {
    min-height: 150px;
}

.comment-form input[type="submit"] {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background: var(--accent-color);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: var(--bg-light);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-light);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.no-results p {
    font-size: 18px;
    color: var(--text-light);
}

/* Widget Styles */
.widget {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post {
        padding: 25px;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .archive-title {
        font-size: 32px;
    }
    
    .comment {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 26px;
    }
    
    .post-body {
        font-size: 16px;
    }
}
