/*
Theme Name: AnimeReich Ultra
Theme URI: https://example.com/animereich-ultra
Author: You & ChatGPT
Author URI: https://example.com
Description: Thème WordPress complet style anime / dark, optimisé pour blog.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: animereich
Tags: blog, anime, dark, responsive, custom-logo, one-column, two-columns
*/

/* Reset de base léger */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #15172a 0, #050612 45%, #020308 100%);
    color: #f5f5ff;
    line-height: 1.7;
}

a {
    color: #ff6bd5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container global */
.site-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Top bar */
.top-header {
    background: linear-gradient(90deg, #ff6bd5, #8f51ff);
    color: #0b0b16;
    font-size: 0.85rem;
}

.top-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1.5rem;
}

.top-header-right a {
    color: #0b0b16;
    font-weight: 600;
}

/* Header principal */
.site-header-main {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    background: linear-gradient(90deg, rgba(12, 12, 25, 0.95), rgba(23, 17, 46, 0.9));
    position: sticky;
    top: 32px;
    z-index: 90;
}

.logged-out .site-header-main {
    top: 0;
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
}

.site-branding .site-title a {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.site-branding .site-description {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.4rem;
    font-size: 0.95rem;
}

.main-navigation a {
    color: #e3e3ff;
    position: relative;
    padding-bottom: 0.2rem;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, #ff6bd5, #8f51ff);
    transition: transform 0.2s ease-out;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
    transform: scaleX(1);
}

/* Hero section */
.hero {
    position: relative;
    margin-top: 1.5rem;
    border-radius: 18px;
    padding: 2.2rem 1.8rem;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 107, 213, 0.16), transparent 60%),
                radial-gradient(circle at bottom right, rgba(143, 81, 255, 0.18), transparent 60%),
                linear-gradient(135deg, #08081b, #16152b);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 1.5rem;
}

.hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 0.6rem;
}

.hero p {
    opacity: 0.8;
    font-size: 0.98rem;
}

.hero-meta {
    margin-top: 1.2rem;
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.hero-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 107, 213, 0.12);
    border: 1px solid rgba(255, 107, 213, 0.4);
}

.hero-cta {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
}

.btn-primary {
    background: linear-gradient(90deg, #ff6bd5, #ff9a5c);
    color: #1a1024;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #f5f5ff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-cover {
    position: relative;
}

.hero-card {
    height: 100%;
    border-radius: 18px;
    background: radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.08), transparent 65%),
                radial-gradient(circle at 80% 110%, rgba(255, 107, 213, 0.16), transparent 60%),
                #070716;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.hero-stat {
    border-radius: 12px;
    padding: 0.55rem 0.6rem;
    background: rgba(6, 6, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.7rem;
}

.hero-stat span {
    display: block;
}

.hero-stat strong {
    font-size: 0.95rem;
}

.hero-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.8rem;
}

.hero-tag {
    font-size: 0.7rem;
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 4, 15, 0.9);
}

/* Grille d'articles */
.posts-section {
    margin-top: 2.5rem;
}

.posts-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.section-title {
    font-size: 1.1rem;
}

.section-title span {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 0.75rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.post-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(8, 8, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 213, 0.65);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.75);
}

.post-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card-category {
    position: absolute;
    inset: auto 0 0.8rem 0.9rem;
    max-width: 80%;
    display: inline-flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.post-card-category a {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(8, 8, 22, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f5f5ff;
}

.post-card-body {
    padding: 0.9rem 1rem 1.1rem;
}

.post-card-title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.post-card-meta {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.post-card-excerpt {
    font-size: 0.85rem;
    opacity: 0.78;
    margin-bottom: 0.7rem;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pagination a,
.pagination span {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.pagination .current {
    background: linear-gradient(90deg, #ff6bd5, #ff9a5c);
    color: #111;
    border: 0;
}

/* Sidebar */
.site-layout-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 1.8rem;
    margin-top: 2.3rem;
}

.sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.widget {
    background: rgba(8, 8, 22, 0.98);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
}

.widget-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.6rem;
    opacity: 0.8;
}

.widget ul {
    list-style: none;
}

.widget ul li + li {
    margin-top: 0.4rem;
}

/* Article single */
.single-post-main {
    margin-top: 2.2rem;
}

.single-header {
    margin-bottom: 1.4rem;
}

.single-title {
    font-size: 1.7rem;
    margin-bottom: 0.4rem;
}

.single-meta {
    font-size: 0.85rem;
    opacity: 0.75;
}

.single-content {
    background: rgba(8, 8, 22, 0.98);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.6rem 1.5rem;
    font-size: 0.96rem;
}

.single-content p + p {
    margin-top: 0.9rem;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.single-content ul,
.single-content ol {
    padding-left: 1.2rem;
    margin: 0.7rem 0;
}

.single-content a {
    color: #ff9a5c;
}

/* Footer */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(circle at top, #171632, #050612);
    padding: 1.4rem 1.5rem 2rem;
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.7rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Responsif */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .site-layout-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
    .sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .top-header-inner,
    .site-header-inner {
        padding-inline: 1rem;
    }
    .hero {
        padding: 1.6rem 1.2rem;
    }
    .site-container {
        padding-inline: 1rem;
    }
}

@media (max-width: 600px) {
    .main-navigation ul {
        display: none;
    }
}
