/*
Theme Name: Madara-Child
Description:  A child theme for Madara - WordPress Theme for Manga, Novel sites
Author:       Madara
Author URI:   https://mangabooth.com/
Template: madara
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Version: 1.0.3
*/
/* Front Page Modern Styles */
:root {
    --fp-bg: #0f0f10;
    --fp-surface: #171717;
    --fp-surface-2: #1b1b1b;
    --fp-card: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));
    --fp-accent: #5bb0ff;
    --fp-accent-hover: #6dbdff;
    --fp-muted: #9a9a9a;
    --fp-text: #e9eef2;
    --fp-subtle: #bdbdbd;
    --fp-border: rgba(255,255,255,0.04);
    --fp-radius: 12px;
    --fp-radius-sm: 8px;
    --fp-gap: 16px;
    --fp-shadow: 0 8px 30px rgba(0,0,0,0.6);
    --fp-shadow-hover: 0 12px 40px rgba(0,0,0,0.8);
    --fp-inner-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    --fp-star: #ffd658;
    --fp-max-width: 100%;
    --fp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset header spacing */
.site-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Modern Front Page Wrapper */
.fp-modern-wrapper {
    background: var(--fp-bg);
    color: var(--fp-text);
    min-height: 100vh;
    font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.fp-modern-container {
    max-width: var(--fp-max-width);
    margin: 0 auto;
    padding: 20px;
}

/* Modern Header Section */
.fp-modern-header {
    background: var(--fp-surface);
    border-radius: var(--fp-radius);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--fp-border);
    box-shadow: var(--fp-shadow);
    position: relative;
    overflow: hidden;
}

.fp-modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fp-accent), #fd79a8);
}

.fp-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fp-text);
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.fp-header-subtitle {
    color: var(--fp-subtle);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

/* Manga Section */
.fp-manga-section {
    margin-bottom: 40px;
}

.fp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #5bb0ff;
}

.fp-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e9eef2;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-section-title i {
    color: #5bb0ff;
}

/* Manga Grid - Latest Chapters Style */
.fp-manga-grid-latest-style {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

/* Manga Card - Latest Chapters Style */
.fp-manga-card-latest-style {
    background: #1b1b1b;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.4s cubic-bezier(0.22, 0.9, 0.3, 1);
    position: relative;
}

.fp-manga-card-latest-style:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #5bb0ff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.fp-manga-thumb-latest {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.fp-manga-thumb-latest img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.fp-manga-card-latest-style:hover .fp-manga-thumb-latest img {
    transform: scale(1.08);
}

.fp-manga-content-latest {
    padding: 18px 15px;
    background: #1b1b1b;
}

.fp-manga-title-latest {
    font-size: 14px;
    font-weight: 700;
    color: #e9eef2;
    margin: 0 0 12px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.fp-manga-meta-latest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.fp-manga-views-latest {
    font-size: 12px;
    color: #9a9a9a;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fp-manga-date-latest {
    font-size: 11px;
    color: #9a9a9a;
}

.fp-manga-chapter-item-latest {
    background: #171717;
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
    position: relative;
}

.fp-manga-chapter-item-latest:hover {
    border-color: #5bb0ff;
    background: rgba(91, 176, 255, 0.08);
}

.fp-manga-chapter-link-latest {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.fp-manga-chapter-name-latest {
    font-size: 12px;
    font-weight: 600;
    color: #5bb0ff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 50px;
}

/* Blue Fire New Badge */
.fp-manga-new-badge-latest {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white !important;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.4);
    border: 1px solid rgba(99, 175, 245, 0.3);
    animation: blue-fire-pulse 2s infinite;
}

.fp-manga-new-badge-latest .fp-fire-icon-latest {
    width: 8px;
    height: 8px;
    fill: #63aff5;
    filter: drop-shadow(0 0 2px rgba(99, 175, 245, 0.8));
}

@keyframes blue-fire-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(30, 60, 114, 0.4);
    }
    50% {
        box-shadow: 0 2px 12px rgba(99, 175, 245, 0.6);
    }
}

/* Modern Pagination */
.fp-pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.fp-page-btn {
    background: var(--fp-surface);
    border: 1px solid var(--fp-border);
    color: var(--fp-text);
    padding: 10px 16px;
    border-radius: var(--fp-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--fp-transition);
    min-width: 44px;
    text-align: center;
}

.fp-page-btn:hover {
    background: var(--fp-accent);
    color: #0a0a0a;
    border-color: var(--fp-accent);
    transform: translateY(-2px);
}

.fp-page-btn.active {
    background: var(--fp-accent);
    color: #0a0a0a;
    border-color: var(--fp-accent);
}

.fp-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Lazy Loading Styles */
.fp-lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fp-lazy-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Sidebar Modernization */
.fp-sidebar-modern {
    background: var(--fp-surface);
    border-radius: var(--fp-radius);
    padding: 25px;
    border: 1px solid var(--fp-border);
    box-shadow: var(--fp-shadow);
}

.fp-sidebar-modern .widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--fp-border);
}

.fp-sidebar-modern .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.fp-sidebar-modern .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fp-text);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--fp-accent);
}

/* Empty State */
.fp-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--fp-subtle);
}

.fp-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.fp-empty-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.fp-empty-subtext {
    font-size: 1rem;
    opacity: 0.8;
}

/* Scroll to Top Button */
.fp-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--fp-accent);
    color: #0a0a0a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: var(--fp-shadow);
    transition: var(--fp-transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.fp-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.fp-scroll-top:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--fp-accent-hover);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .fp-manga-grid-latest-style {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .fp-manga-grid-latest-style {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .fp-manga-grid-latest-style {
        grid-template-columns: repeat(4, 1fr);
    }
    .fp-modern-container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .fp-manga-grid-latest-style {
        grid-template-columns: repeat(3, 1fr);
    }
    .fp-header-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .fp-manga-grid-latest-style {
        grid-template-columns: repeat(2, 1fr);
    }
    .fp-header-title {
        font-size: 1.7rem;
    }
    .fp-modern-header {
        padding: 20px;
    }
}