/* General Styles */
.mcg-manga-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header & Intro */
.mcg-header {
    text-align: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.mcg-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #333;
}

.mcg-intro {
    color: #666;
    line-height: 1.6;
}

/* Navigation Buttons */
.mcg-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 15px;
}

.mcg-nav-btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.mcg-nav-btn:hover {
    background: #005177;
}

.mcg-nav-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* Manga Images */
.mcg-images-list {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.mcg-page {
    margin-bottom: 10px;
    line-height: 0;
}

.mcg-page img {
    width: 100%;
    height: auto;
    display: block;
}

/* SEO Sections */
.mcg-seo-sections {
    margin-top: 40px;
}

.mcg-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mcg-section h2 {
    margin-top: 0;
    color: #222;
    border-bottom: 2px solid #0073aa;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Gallery Grid Shortcode [manga_gallery] */
.mcg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.mcg-gallery-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mcg-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.mcg-gallery-item a {
    text-decoration: none !important;
    color: inherit;
}

.mcg-item-thumbnail {
    height: 280px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcg-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mcg-item-info {
    padding: 15px;
    text-align: center;
}

.mcg-item-info h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcg-no-thumb {
    color: #999;
    font-style: italic;
}

/* Chapter List Styles */
.mcg-chapter-list {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mcg-chapter-list h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
    border-bottom: 2px solid #0073aa;
    display: inline-block;
}

.mcg-chapters-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcg-chapter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 6px;
    text-decoration: none !important;
    color: #444;
    transition: background 0.2s;
    border: 1px solid #eee;
}

.mcg-chapter-link:hover {
    background: #f0f7ff;
    border-color: #0073aa;
    color: #0073aa;
}

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

.mcg-chapter-date {
    font-size: 0.85em;
    color: #888;
}

/* Responsive */
@media (max-width: 600px) {
    .mcg-manga-container { padding: 10px; }
    .mcg-nav-btn { padding: 10px; font-size: 14px; }
    .mcg-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
    .mcg-item-thumbnail { height: 200px; }
    .mcg-header h1 { font-size: 1.8em; }
}
