/* GeneratePress Anime Layout - External Stylesheet */
/* Version: 10.2 */

/* Hide default GeneratePress elements */
.generate-columns-container {
    display: none !important;
}
.inside-article {
    display: none !important;
}
.paging-navigation {
    display: none !important;
}

/* Trending Bar - Desktop Only */
.anime-trending-bar {
    background: linear-gradient(180deg, #f36823 0%, #e85d1a 100%);
    padding: 18px 0;
    margin: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.anime-trending-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

.anime-trending-label {
    color: #fff;
    font-weight: 900;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    position: relative;
    padding-right: 32px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.anime-trending-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        transparent 100%);
}

.anime-trending-tags {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.anime-trending-tag {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.anime-trending-tag:first-child {
    border-left: none;
    padding-left: 0;
}

.anime-trending-tag:hover {
    color: #fff;
    transform: translateY(-1px);
}

/* Epic Hero Section */
.anime-epic-hero {
    margin: 0 0 66px;
    position: relative;
}

/* Hero top row with sidebar */
.anime-hero-top-row {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    margin-bottom: 24px;
}

/* Massive Hero */
.anime-hero-massive {
    position: relative;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.anime-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.anime-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.95) 100%);
}

.anime-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px;
    z-index: 2;
}

.anime-hero-badge {
    display: inline-block;
    background: #f36823;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.813rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(243, 104, 35, 0.4);
}

.anime-hero-title {
    margin: 0 0 16px;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 900px;
}

.anime-hero-title a {
    color: #fff !important;
    text-decoration: none;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s;
    display: inline-block;
}

.anime-hero-title a:hover {
    color: #f36823 !important;
    transform: translateX(8px);
}

.anime-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.anime-hero-meta span:first-child {
    color: #f36823;
}

/* Sidebar Latest Section - Enhanced with fixed heights */
.anime-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 600px;
    transition: box-shadow 0.3s ease;
}

.anime-hero-sidebar:hover {
    box-shadow: 0 8px 32px rgba(243, 104, 35, 0.15);
}

.anime-hero-sidebar__title {
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0;
    padding: 15px 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #1a1a1a;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    border-bottom: 4px solid #f36823;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.anime-hero-sidebar__title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e85d1a 0%, #f36823 100%);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 2px 8px rgba(243, 104, 35, 0.3);
}

.anime-hero-sidebar__posts {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Cards - Fixed height and enhanced styling */
.anime-sidebar-card {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 130px;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 116px;
    max-height: 116px;
    position: relative;
    overflow: hidden;
}

.anime-sidebar-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #f36823 0%, transparent 100%);
    transition: width 0.3s ease;
}

.anime-sidebar-card:last-child {
    border-bottom: none;
}

.anime-sidebar-card:hover {
    background: linear-gradient(90deg, #fff9f6 0%, #fff 100%);
    transform: translateX(4px);
}

.anime-sidebar-card:hover::before {
    width: 4px;
}

.anime-sidebar-card__image {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
    order: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.anime-sidebar-card:hover .anime-sidebar-card__image {
    box-shadow: 0 4px 16px rgba(243, 104, 35, 0.3);
    transform: scale(1.05);
}

.anime-sidebar-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.anime-sidebar-card:hover .anime-sidebar-card__image img {
    transform: scale(1.1);
}

.anime-sidebar-card__content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    order: 1;
    justify-content: center;
    min-height: 0;
}

.anime-sidebar-card__meta {
    order: 1;
    font-size: 0.688rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.anime-sidebar-card__title {
    order: 2;
    margin: 0;
    font-size: 0.938rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-sidebar-card__title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.anime-sidebar-card__title a:hover {
    color: #f36823;
}

.anime-sidebar-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border-top: 2px solid #e5e7eb;
    color: #f36823;
    font-weight: 800;
    font-size: 0.938rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.anime-sidebar-more:visited,
.anime-sidebar-more:active,
.anime-sidebar-more:focus,
.anime-sidebar-more:hover {
    color: #f36823;
}

.anime-sidebar-more svg {
    fill: currentColor;
}

.anime-sidebar-more span {
    position: relative;
    z-index: 1;
}
/* Hero Grid - 4 cards below */
.anime-hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.anime-hero-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.anime-hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(243, 104, 35, 0.25);
}

.anime-hero-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
}

.anime-hero-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.anime-hero-card:hover .anime-hero-card__image::after {
    opacity: 1;
}

.anime-hero-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-hero-card:hover .anime-hero-card__image img {
    transform: scale(1.1);
}

.anime-hero-card__content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.anime-hero-card__tag {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 0.688rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    align-self: flex-start;
    border-left: 3px solid #f36823;
}

.anime-hero-card__title {
    margin: 0 0 auto;
    font-size: 0.938rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.anime-hero-card__title a {
    color: #333 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.anime-hero-card:hover .anime-hero-card__title a {
    color: #f36823 !important;
}

.anime-hero-card__meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.anime-hero-card__meta span:first-child {
    font-weight: 700;
    color: #333;
}

/* Category Sections */
.anime-category-section {
    margin: 0 0 66px;
}

.anime-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #f36823;
}

.anime-category-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.anime-category-title a {
    color: #333 !important;
    text-decoration: none;
    transition: color 0.3s;
}

.anime-category-title a:hover {
    color: #f36823 !important;
}

.anime-category-more {
    color: #f36823;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}

.anime-category-more:hover {
    transform: translateX(4px);
}

/* Latest Section */
.anime-latest-section {
    margin: 0 0 66px;
}

.anime-latest-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #f36823;
}

.anime-latest-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #333;
}

/* Category Grid - 3 columns */
.anime-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.anime-cat-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.anime-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(243, 104, 35, 0.2);
}

.anime-cat-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
}

.anime-cat-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(243, 104, 35, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.anime-cat-card:hover .anime-cat-card__image::after {
    opacity: 1;
}

.anime-cat-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-cat-card:hover .anime-cat-card__image img {
    transform: scale(1.08);
}

.anime-cat-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.anime-cat-card__title {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.anime-cat-card__title a {
    color: #333 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.anime-cat-card:hover .anime-cat-card__title a {
    color: #f36823 !important;
}

.anime-cat-card__excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 auto;
    flex: 1;
}

.anime-cat-card__meta {
    font-size: 0.813rem;
    color: #6b7280;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.anime-cat-card__meta span:first-child {
    font-weight: 700;
    color: #333;
}

/* Main Grid - 4 columns for Latest Posts */
.anime-main-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 0 66px;
}

/* Grid Cards for Latest Posts */
.anime-grid-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.anime-grid-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(243, 104, 35, 0.2);
}

.anime-grid-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
}

.anime-grid-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(243, 104, 35, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.anime-grid-card:hover .anime-grid-card__image::after {
    opacity: 1;
}

.anime-grid-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-grid-card:hover .anime-grid-card__image img {
    transform: scale(1.08);
}

.anime-grid-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.anime-grid-card__tag {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    align-self: flex-start;
    border-left: 3px solid #f36823;
}

.anime-grid-card__title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.anime-grid-card__title a {
    color: #333 !important;
    text-decoration: none;
    transition: color 0.2s;
}

.anime-grid-card:hover .anime-grid-card__title a {
    color: #f36823 !important;
}

.anime-grid-card__excerpt {
    font-size: 0.813rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 auto;
    flex: 1;
}

.anime-grid-card__meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.anime-grid-card__meta span:first-child {
    font-weight: 700;
    color: #333;
}

/* Pagination */
.anime-pagination {
    margin: 66px 0;
    text-align: center;
}

.anime-pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.anime-pagination .page-numbers li {
    display: inline-block;
}

.anime-pagination a.page-numbers,
.anime-pagination span.page-numbers {
    display: inline-block;
    padding: 12px 18px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.anime-pagination a.page-numbers:hover {
    background: #f36823;
    color: #fff;
    border-color: #f36823;
    transform: translateY(-2px);
}

.anime-pagination span.current {
    background: #f36823;
    color: #fff;
    border-color: #f36823;
}

.anime-pagination .prev,
.anime-pagination .next {
    font-weight: 600;
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */

/* Large Desktop (1400px and below) */
@media (max-width: 1400px) {
    .anime-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .anime-hero-top-row {
        grid-template-columns: 1fr 360px;
    }
}

/* Tablet (1200px and below) */
@media (max-width: 1200px) {
    .anime-hero-massive {
        height: 500px;
    }
    
    .anime-hero-content {
        padding: 40px;
    }
    
    .anime-hero-title {
        font-size: 2.75rem;
    }
    
    .anime-hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .anime-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anime-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .anime-hero-top-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .anime-hero-sidebar {
        order: 2;
    }
    
    .anime-hero-massive {
        order: 1;
        height: 450px;
    }
    
    .anime-hero-title {
        font-size: 2.25rem;
    }
    
    .anime-hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anime-category-title {
        font-size: 1.75rem;
    }
    
    .anime-latest-title {
        font-size: 1.75rem;
    }
    
    /* Mobile sidebar styling */
    .anime-sidebar-card {
        min-height: auto;
        max-height: none;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .anime-trending-bar {
        display: none !important;
    }
    
    .anime-epic-hero {
        margin-bottom: 40px;
    }
    
    .anime-hero-massive {
        height: 380px;
        border-radius: 12px;
    }
    
    .anime-hero-content {
        padding: 28px;
    }
    
    .anime-hero-title {
        font-size: 1.75rem;
    }
    
    .anime-hero-meta {
        font-size: 0.875rem;
    }
    
    .anime-hero-sidebar {
        border-radius: 8px;
        height: auto;
    }
    
    .anime-sidebar-card {
        padding: 16px;
        min-height: auto;
        max-height: none;
    }
    
    .anime-sidebar-card__title {
        font-size: 0.875rem;
        -webkit-line-clamp: 3;
    }
    
    .anime-hero-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .anime-hero-card {
        display: grid !important;
        grid-template-columns: 120px 1fr;
        gap: 14px;
    }
    
    .anime-hero-card__image {
        aspect-ratio: 1;
        border-radius: 6px 0 0 6px;
    }
    
    .anime-hero-card__content {
        padding: 12px 12px 12px 0;
    }
    
    .anime-hero-card__title {
        font-size: 0.875rem;
    }
    
    .anime-hero-card__meta {
        display: none;
    }
    
    .anime-category-section {
        margin-bottom: 40px;
    }
    
    .anime-category-header {
        padding: 15px;
    }
    
    .anime-category-title {
        font-size: 1.5rem;
    }
    
    .anime-latest-section {
        margin-bottom: 40px;
    }
    
    .anime-latest-header {
        padding: 15px;
    }
    
    .anime-latest-title {
        font-size: 1.5rem;
    }
    
    .anime-category-grid {
        grid-template-columns: 1fr;
    }
    
    .anime-main-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .anime-grid-card__title {
        font-size: 1rem;
    }
    
    .anime-pagination .prev,
    .anime-pagination .next {
        display: none !important;
    }
    
    .anime-pagination a.page-numbers,
    .anime-pagination span.page-numbers {
        padding: 9px 15px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .anime-trending-bar {
        display: none !important;
    }
    
    .anime-hero-massive {
        height: 320px;
    }
    
    .anime-hero-content {
        padding: 24px;
    }
    
    .anime-hero-title {
        font-size: 1.5rem;
    }
    
    .anime-hero-badge {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    .anime-category-title {
        font-size: 1.25rem;
    }
    
    .anime-latest-title {
        font-size: 1.25rem;
    }
    
    .anime-category-header {
        padding: 12px;
    }
    
    .anime-latest-header {
        padding: 12px;
    }
}

/* Reduced Motion (Accessibility) */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .anime-hero-bg {
        animation: none !important;
    }
}