/* Reset và base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.main-header {
    background-color: #1a1a1a;
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.logo h1 a {
    color: #4CAF50;
    text-decoration: none;
}

.logo .subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
    color: #888;
    margin-left: 1rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav .nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-nav .nav-link:hover {
    background-color: #333;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar Trái - Top Manga Websites */
.sidebar-left {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-section h3 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #4CAF50;
}

.manga-sites-list {
    list-style: none;
}

.manga-sites-list li {
    margin-bottom: 0.5rem;
}

.manga-sites-list a {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    color: #555;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.manga-sites-list a:hover {
    background-color: #f0f0f0;
    color: #4CAF50;
    transform: translateX(5px);
}

.manga-sites-list i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.content-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-info span {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.rating {
    background-color: #ffd700;
    color: #333;
}

.status {
    background-color: #28a745;
    color: white;
}

.chapters {
    background-color: #6c757d;
    color: white;
}

.content-body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.manga-cover {
    position: sticky;
    top: 2rem;
}

.manga-cover img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 280px;
}

.manga-info {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.manga-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
    font-size: 1.8rem;
}

.manga-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.manga-details {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.detail-item {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #dee2e6;
}

.detail-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Additional Content Section */
.additional-content {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.additional-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.additional-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
}

.additional-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
    color: #444;
}

.call-to-action {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
    border: 2px solid #4CAF50;
}

.call-to-action h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.call-to-action p {
    font-weight: 500;
    margin-bottom: 0;
}

.hashtags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.hashtags h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hashtag {
    background-color: #4CAF50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hashtag:hover {
    background-color: #45a049;
}

/* Chapters Section */
.chapters-section {
    margin-top: 2rem;
}

.chapters-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.chapters-list {
    display: grid;
    gap: 0.5rem;
}

.chapter-item {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    transition: all 0.3s;
}

.chapter-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.chapter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: #333;
}

.chapter-title {
    font-weight: 500;
}

.chapter-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Sidebar Phải - Discord */
.sidebar-right {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.discord-section {
    text-align: center;
}

.discord-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.discord-logo {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.discord-content h4 {
    color: #333;
    margin-bottom: 1rem;
}

.discord-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.discord-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.discord-features li {
    padding: 0.5rem 0;
    color: #666;
}

.discord-features i {
    color: #28a745;
    margin-right: 0.5rem;
}

.discord-join-btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    transition: all 0.3s;
}

.discord-join-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.discord-join-btn i {
    margin-right: 0.5rem;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    margin-top: 4rem;
    padding: 2rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: bold;
}

.social-links {
    display: grid;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.social-link:hover {
    transform: translateX(5px);
}

.social-link.facebook:hover { background-color: #3b5998; }
.social-link.twitter:hover { background-color: #1da1f2; }
.social-link.instagram:hover { background-color: #e4405f; }
.social-link.youtube:hover { background-color: #ff0000; }
.social-link.telegram:hover { background-color: #0088cc; }
.social-link.discord:hover { background-color: #5865f2; }

.social-link i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar-left,
    .sidebar-right {
        position: static;
    }
    
    .content-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .manga-cover {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-info {
        flex-wrap: wrap;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .additional-content {
        padding: 1.5rem;
    }
    
    .additional-content h2 {
        font-size: 1.5rem;
    }
    
    .additional-content h3 {
        font-size: 1.2rem;
    }
    
    .hashtag-list {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 0 10px;
    }
    
    .main-content,
    .sidebar-left,
    .sidebar-right {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .main-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .additional-content {
        padding: 1rem;
        margin: 2rem 0;
    }
    
    .additional-content h2 {
        font-size: 1.3rem;
    }
    
    .call-to-action {
        padding: 1rem;
    }
    
    .hashtag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.manga-sites-list a,
.chapter-item,
.social-link {
    position: relative;
    overflow: hidden;
}

.manga-sites-list a::before,
.chapter-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.manga-sites-list a:hover::before,
.chapter-item:hover::before {
    left: 100%;
}
