/* =============================================
   AnimeUnity — Shared Stylesheet
   animeunity.buzz
   ============================================= */

/* --- Google Fonts Import --- */
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

/* --- CSS Variables --- */
:root {
    --bg-primary: #0d0d14;
    --bg-secondary: #12121f;
    --bg-card: #1a1a2e;
    --bg-card-hover: #20203a;
    --accent: #3db4f2;
    --accent-hover: #6dd4ff;
    --accent-purple: #c084fc;
    --accent-glow: rgba(61, 180, 242, 0.25);
    --text-primary: #f0f0f0;
    --text-muted: #8888aa;
    --text-dim: #555577;
    --border: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(61, 180, 242, 0.4);
    --nav-height: 64px;
    --radius: 8px;
    --radius-lg: 14px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    --font-display: "Rajdhani", sans-serif;
    --font-body: "Inter", sans-serif;
    --max-width: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(13, 13, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.nav-logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition:
        color 0.2s,
        background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-primary);
    font-size: 22px;
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 24px 72px;
    text-align: center;
    background: linear-gradient(180deg, #0a0f20 0%, var(--bg-primary) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 60% 50% at 50% 0%,
            rgba(61, 180, 242, 0.15) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 40% 30% at 20% 60%,
            rgba(192, 132, 252, 0.1) 0%,
            transparent 60%
        );
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(61, 180, 242, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(61, 180, 242, 0.25);
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 24px;
    border: none;
    cursor: pointer;
    transition:
        transform 0.18s,
        box-shadow 0.18s,
        background 0.18s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(61, 180, 242, 0.35);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 28px rgba(61, 180, 242, 0.5);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section {
    padding: 64px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.section-title .accent {
    color: var(--accent);
}

.section-desc {
    margin-top: 12px;
    color: var(--text-muted);
    max-width: 600px;
    font-size: 15px;
}

.section-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    border-radius: 2px;
    margin-top: 14px;
}

/* =============================================
   CARDS
   ============================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition:
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--border-accent);
}

.card-icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Anime title card (catalogo) */
.anime-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    position: relative;
}

.anime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.anime-card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #1a1a2e 0%, #0a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-dim);
    position: relative;
    overflow: hidden;
}

.anime-card-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anime-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.anime-card-skeleton .anime-card-poster {
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.anime-card-poster::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        0deg,
        rgba(13, 13, 20, 0.9) 0%,
        transparent 100%
    );
}

.anime-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.anime-card-info {
    padding: 14px 16px 16px;
}

.anime-card-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.anime-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.anime-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.tag-sub {
    background: rgba(192, 132, 252, 0.15);
    color: var(--accent-purple);
}
.tag-ita {
    background: rgba(233, 69, 96, 0.15);
    color: var(--accent);
}
.tag-genre {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

/* =============================================
   STATS BAR
   ============================================= */
.stats-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 24px;
}

.stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
    text-align: center;
}

.stat-item {
}

.stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================
   FAQ / ACCORDION
   ============================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

details.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

details.faq-item[open] {
    border-color: var(--border-accent);
}

details.faq-item summary {
    padding: 18px 22px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: "+";
    font-size: 22px;
    color: var(--accent);
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s;
}

details.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 22px 18px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
    padding: 52px 24px 44px;
    background: linear-gradient(180deg, #120a1e 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 50% 80% at 50% 0%,
        rgba(61, 180, 242, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.page-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-muted);
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb span {
    margin: 0 6px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
}

/* =============================================
   GENRE PILLS
   ============================================= */
.genre-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
    text-decoration: none;
}

.genre-pill:hover,
.genre-pill.active {
    background: rgba(61, 180, 242, 0.1);
    border-color: var(--border-accent);
    color: var(--accent);
}

/* =============================================
   SIMULCAST GRID
   ============================================= */
.simulcast-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition:
        background 0.2s,
        border-color 0.2s;
}

.simulcast-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
}

.simulcast-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0a1a2e, #1a1a2e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.simulcast-info {
}

.simulcast-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.simulcast-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.simulcast-day {
    display: inline-block;
    background: rgba(61, 180, 242, 0.1);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 6px;
}

/* =============================================
   COMMUNITY
   ============================================= */
.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.community-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.community-card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.community-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.community-card-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 7px;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-select option {
    background: var(--bg-card);
}

/* =============================================
   LEGAL / PROSE PAGES
   ============================================= */
.prose-content {
    max-width: 760px;
    margin: 0 auto;
}

.prose-content h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.prose-content h2:first-child {
    margin-top: 0;
}

.prose-content h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 10px;
}

.prose-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.prose-content ul {
    list-style: disc;
    margin: 0 0 14px 20px;
}

.prose-content ul li {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 6px;
}

.prose-content a {
    color: var(--accent);
}

.prose-meta {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 32px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* =============================================
   ALERT BOX
   ============================================= */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.alert-info {
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: var(--accent-purple);
}

.alert-warning {
    background: rgba(61, 180, 242, 0.08);
    border: 1px solid rgba(61, 180, 242, 0.3);
    color: var(--accent);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 52px 24px 28px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 14px;
}

.footer-brand-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-dim);
}

.footer-legal a:hover {
    color: var(--accent);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 680px) {
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13, 13, 20, 0.97);
        padding: 32px 24px;
        gap: 8px;
        z-index: 99;
    }

    .nav-links.open a {
        font-size: 18px;
        padding: 10px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 52px 16px 48px;
    }
    .page-wrapper {
        padding: 0 16px;
    }
}

/* =============================================
   UTILITY
   ============================================= */
.mt-0 {
    margin-top: 0;
}
.mt-8 {
    margin-top: 8px;
}
.mt-16 {
    margin-top: 16px;
}
.mt-24 {
    margin-top: 24px;
}
.mt-40 {
    margin-top: 40px;
}
.mb-0 {
    margin-bottom: 0;
}
.mb-8 {
    margin-bottom: 8px;
}
.mb-16 {
    margin-bottom: 16px;
}
.mb-24 {
    margin-bottom: 24px;
}
.text-center {
    text-align: center;
}
.text-muted {
    color: var(--text-muted);
}
.text-accent {
    color: var(--accent);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (max-width: 700px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}
