/**
 * Frontend CSS cho plugin TruyenHD Story
 */

/* General styles */
.truyen-single-container,
.chuong-single-container,
.truyen-archive-container,
.taxonomy-archive-container {
    padding: 30px 0;
}

/* Truyen single */
.truyen-header {
    margin-bottom: 20px;
}

.truyen-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.truyen-tac-gia,
.truyen-the-loai,
.truyen-trang-thai {
    margin-bottom: 8px;
}

.truyen-meta {
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
}

.truyen-meta span {
    margin-right: 20px;
    color: #666;
}

.truyen-meta i {
    margin-right: 5px;
    color: #0073aa;
}

.truyen-content {
    margin-bottom: 30px;
}

.truyen-thumbnail {
    margin-bottom: 15px;
    text-align: center;
}

.truyen-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.truyen-actions {
    margin-bottom: 20px;
}

.truyen-actions .btn {
    margin-bottom: 10px;
}

.truyen-rating-form {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-stars .star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #ffc107;
}

.truyen-info {
    margin-bottom: 20px;
}

.truyen-info-item {
    margin-bottom: 8px;
}

.truyen-description {
    margin-bottom: 20px;
}

.truyen-description h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.truyen-chapters {
    margin-top: 30px;
}

.truyen-chapters h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.chapter-list {
    margin-bottom: 20px;
}

.chapter-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chapter-item:hover {
    background-color: #f9f9f9;
}

.chapter-item a {
    text-decoration: none;
    color: #333;
    flex-grow: 1;
}

.chapter-item a:hover {
    color: #0073aa;
}

.chapter-number {
    font-weight: 600;
    color: #0073aa;
}

.chapter-date {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
}

.truyen-comments {
    margin-top: 30px;
}

.truyen-comments h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

/* Chuong single */
.chuong-header {
    margin-bottom: 30px;
}

.truyen-breadcrumb {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.truyen-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.truyen-breadcrumb .separator {
    margin: 0 5px;
}

.truyen-breadcrumb .current {
    color: #333;
}

.chuong-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.chuong-meta {
    margin-bottom: 15px;
    color: #666;
}

.chuong-meta span {
    margin-right: 20px;
}

.chuong-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chuong-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chuong-content p {
    margin-bottom: 20px;
}

.chuong-footer {
    margin-top: 30px;
}

.chuong-actions {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.chuong-actions .btn {
    margin: 0 5px;
}

/* Styles for truyen_theo_the_loai shortcode */
.truyen-theo-the-loai-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.truyen-section-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #f5f5f5;
    position: relative;
}

.truyen-section-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #0073aa;
}

.truyen-xem-them {
    text-align: center;
    margin-top: 20px;
}

.truyen-xem-them .button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.truyen-xem-them .button:hover {
    background-color: #005177;
}

/* Theme toggle */
body.dark-theme .chuong-content {
    background-color: #222;
    color: #eee;
}

body.dark-theme {
    background-color: #333;
    color: #eee;
}

/* Truyen archive */
.page-header {
    margin-bottom: 20px;
}

.page-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
}

.taxonomy-description {
    margin-bottom: 20px;
    color: #666;
}

.truyen-filter {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.truyen-filter-form .form-group {
    margin-bottom: 15px;
}

.truyen-filter-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.truyen-filter-form .btn {
    margin-right: 10px;
}

.truyen-list {
    margin-bottom: 30px;
}

.truyen-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.truyen-item .truyen-thumbnail {
    margin-bottom: 0;
}

.truyen-item .truyen-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.truyen-item .truyen-title a {
    text-decoration: none;
    color: #333;
}

.truyen-item .truyen-title a:hover {
    color: #0073aa;
}

.truyen-item .truyen-tac-gia,
.truyen-item .truyen-the-loai,
.truyen-item .truyen-trang-thai {
    margin-bottom: 5px;
    font-size: 13px;
}

.truyen-item .truyen-meta {
    margin-top: 10px;
    padding: 5px 0;
    font-size: 13px;
}

.truyen-item .truyen-excerpt {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.truyen-pagination {
    margin-top: 30px;
    text-align: center;
}

.truyen-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.truyen-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.truyen-pagination .page-numbers:hover {
    background-color: #f9f9f9;
}

.no-results {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    text-align: center;
}

/* Status indicators */
.status-hoan-thanh {
    color: #28a745;
}

.status-dang-tien-hanh {
    color: #ffc107;
}

.status-tam-ngung {
    color: #dc3545;
}

/* Shortcodes */
.truyenhd-shortcode-list {
    margin-bottom: 30px;
}

.truyenhd-shortcode-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.truyenhd-shortcode-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
}

.truyenhd-shortcode-thumbnail {
    width: 80px;
    margin-right: 15px;
}

.truyenhd-shortcode-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.truyenhd-shortcode-content {
    flex-grow: 1;
}

.truyenhd-shortcode-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
}

.truyenhd-shortcode-item-title a {
    text-decoration: none;
    color: #333;
}

.truyenhd-shortcode-item-title a:hover {
    color: #0073aa;
}

.truyenhd-shortcode-item-meta {
    color: #666;
    font-size: 12px;
}

.truyenhd-shortcode-item-meta span {
    margin-right: 10px;
}

.truyenhd-shortcode-item-meta i {
    margin-right: 3px;
    color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .truyen-meta span {
        margin-bottom: 5px;
    }
    
    .chuong-navigation {
        flex-wrap: wrap;
    }
    
    .chuong-navigation .btn {
        margin-bottom: 10px;
    }
    
    .truyen-item .row {
        display: flex;
        flex-wrap: wrap;
    }
    
    .truyen-item .col-4 {
        width: 30%;
    }
    
    .truyen-item .col-8 {
        width: 70%;
    }
}
