/**
 * CSS cho trang Thông báo và phần thông báo trên trang chủ
 */

/* Header và tiêu đề */
.page-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

/* Layout trang chủ */
.trang-chu-layout {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Thông báo trang chủ */
.home-notify-section {
    background-color: #1f1f1f;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
}

.home-notify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.home-notify-title {
    color: #fff;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.home-notify-more {
    color: #999;
    font-size: 14px;
    text-decoration: none;
}

.home-notify-more:hover {
    color: #fff;
}

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

.home-notify-item {
    margin-bottom: 10px;
    border-left: 3px solid #4caf50;
    padding-left: 10px;
}

.home-notify-item.importance-important {
    border-left-color: #ff9800;
}

.home-notify-item.importance-urgent {
    border-left-color: #f44336;
}

.home-notify-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ccc;
    transition: color 0.2s;
}

.home-notify-link:hover {
    color: #fff;
}

.home-notify-date {
    background-color: #333;
    color: #fff;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 8px;
    min-width: 40px;
    text-align: center;
}

.home-notify-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-notify-empty {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* 2. Phần slider hình ảnh */
.home-slider-section {
    margin-bottom: 30px;
    background-color: #1f1f1f;
    border-radius: 5px;
    padding: 15px;
}

.home-slider-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.home-slider-title {
    color: #fff;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.home-slider {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

/* Nút điều khiển slider */
.slick-prev, .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slick-prev:hover, .slick-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

.slick-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
}

.slick-dots li {
    margin: 0 5px;
}

.slick-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    font-size: 0;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slick-dots li.slick-active button {
    background-color: #fff;
}

.home-slider-item {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.home-slider-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.home-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.home-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.home-slider-item-title {
    font-size: 24px;
    margin: 0 0 10px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.home-slider-excerpt {
    font-size: 14px;
    color: #ddd;
    margin: 0;
    max-height: 60px;
    overflow: hidden;
}

/* 3. Phần đăng truyện cho tác giả */
.home-author-section {
    display: flex;
    background-color: #1f1f1f;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.home-author-content {
    flex: 1;
    padding-right: 20px;
}

.home-author-title {
    color: #fff;
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 600;
}

.home-author-desc {
    color: #ccc;
    font-size: 16px;
    margin: 0 0 20px;
    line-height: 1.5;
}

.home-author-button {
    display: inline-block;
    background-color: #ff5722;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.home-author-button:hover {
    background-color: #e64a19;
}

.home-author-image {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
}

.home-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. Phần độc quyền */
.home-exclusive-section {
    background-color: #1f1f1f;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
}

.home-exclusive-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.home-exclusive-title {
    color: #fff;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

.home-exclusive-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.home-exclusive-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.home-exclusive-item:hover {
    transform: translateY(-5px);
}

.home-exclusive-image {
    position: relative;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.home-exclusive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-exclusive-rating {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: #ff9800;
    font-size: 12px;
    padding: 5px 10px;
    text-align: center;
}

.home-exclusive-item-title {
    color: #fff;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-exclusive-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.home-exclusive-empty {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* 5. Danh sách truyện */
.home-stories-section {
    background-color: #1f1f1f;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
}

.home-stories-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.home-stories-title {
    color: #fff;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

/* 6. Động lực cuối cùng */
.home-motivation-section {
    background-color: #1f1f1f;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
}

.home-motivation-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.home-motivation-title {
    color: #fff;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

/* Section titles */
.notify-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* Notify list */
.notify-list {
    margin-bottom: 30px;
}

.notify-pinned {
    margin-bottom: 30px;
}

/* Notify item */
.notify-item {
    display: flex;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.notify-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Importance styles */
.notify-item.importance-normal {
    border-left: 3px solid #4caf50;
}

.notify-item.importance-important {
    border-left: 3px solid #ff9800;
}

.notify-item.importance-urgent {
    border-left: 3px solid #f44336;
}

/* Notify icon */
.notify-icon {
    flex: 0 0 40px;
    font-size: 18px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.importance-important .notify-icon {
    color: #ff9800;
}

.importance-urgent .notify-icon {
    color: #f44336;
}

/* Notify content */
.notify-content {
    flex: 1;
    padding-left: 15px;
}

.notify-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.notify-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.notify-title a:hover {
    color: #007bff;
}

.notify-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.notify-meta {
    font-size: 12px;
    color: #888;
}

.notify-date {
    display: inline-block;
}

.notify-date i {
    margin-right: 5px;
}

/* Single notify */
.notify-main {
    background-color: #f8f9fa;
    padding: 30px 0;
}

.notify-breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.breadcrumb-item {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #6c757d;
}

.breadcrumb-current {
    color: #6c757d;
    font-weight: 500;
}

.notify-single {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.notify-single .entry-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #212529;
    font-weight: 700;
}

.notify-single .entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.posted-by {
    margin-right: 15px;
}

.author-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

.posted-on i {
    margin-right: 5px;
    color: #6c757d;
}

.notify-single .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #212529;
    margin-bottom: 30px;
}

.notify-single .entry-content p {
    margin-bottom: 20px;
}

.notify-single .entry-content ul,
.notify-single .entry-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.notify-single .entry-content li {
    margin-bottom: 10px;
}

.notify-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-previous,
.nav-next {
    max-width: 45%;
}

.nav-previous a,
.nav-next a {
    color: #007bff;
    text-decoration: none;
}

.nav-previous a:hover,
.nav-next a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

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

.pagination .page-numbers.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* Comments section */
.notify-comments {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comments-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #212529;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

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

.comment {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-author .fn {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
}

.comment-metadata {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

.comment-metadata a {
    color: #6c757d;
    text-decoration: none;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #212529;
}

.comment-reply-link {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.comment-reply-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #212529;
    font-weight: 600;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-height: 100px;
    margin-bottom: 15px;
}

.form-submit .submit {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.form-submit .submit:hover {
    background-color: #0069d9;
}

/* Responsive */
@media (max-width: 768px) {
    .notify-item {
        flex-direction: column;
    }
    
    .notify-icon {
        margin-bottom: 10px;
    }
    
    .notify-content {
        padding-left: 0;
    }
    
    .trang-chu-layout {
        flex-direction: column;
    }
    
    .trang-chu-sidebar {
        width: 100%;
        margin-top: 30px;
    }
}
