@charset "UTF-8";

/* =========================================
   SHINOBI THEME - Core Variables
   ========================================= */
:root {
    --shinobi-black: #050505;
    --shinobi-dark: #0f1012;
    --shinobi-panel: #1a1b1e;
    --blood-red: #8a0303;
    --crimson-bright: #b91c1c;
    --katana-silver: #e0e0e0;
    --stealth-grey: #4a5568;
    --gold-accent: #c5a059;
    --shadow-overlay: rgba(0, 0, 0, 0.85);

    /* Gradients */
    --blade-gradient: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%);
    --crimson-gradient: linear-gradient(135deg, #8a0303 0%, #5c0000 100%);
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #9e7d3a 100%);
    --smoke-gradient: linear-gradient(180deg, rgba(15, 16, 18, 0) 0%, #0f1012 100%);

    /* Shadows */
    --ninja-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --red-glow: 0 0 15px rgba(138, 3, 3, 0.3);
}

/* =========================================
   Global Reset & Typography
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--shinobi-black);
    color: var(--katana-silver);
    font-family: 'Noto Serif JP', serif;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--gold-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

button {
    font-family: 'Cinzel', serif;
    cursor: pointer;
}

/* =========================================
   Age Gate (Shinobi Gate)
   ========================================= */
.shinobi-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--shinobi-black);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.shinobi-gate.active {
    opacity: 1;
    visibility: visible;
}

.gate-wrapper {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 3px; /* Border width */
    background: var(--crimson-gradient);
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%); /* Cut corners */
}

.gate-content {
    background: var(--shinobi-dark);
    padding: 40px;
    text-align: center;
    clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
    position: relative;
}

.shuriken-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 2px solid var(--blood-red);
    border-radius: 50%; /* Keep circular for text but maybe rotate */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--blood-red);
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 20px rgba(138, 3, 3, 0.2);
    animation: spin-slow 10s linear infinite;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gate-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--katana-silver);
}

.gate-content p {
    color: var(--stealth-grey);
    margin-bottom: 30px;
}

.gate-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.katana-btn-accept, .katana-btn-decline {
    padding: 12px 30px;
    border: none;
    font-weight: 700;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s ease;
}

.katana-btn-accept {
    background: var(--blood-red);
    color: white;
}
.katana-btn-accept:hover {
    background: var(--crimson-bright);
    transform: translateY(-2px);
    box-shadow: var(--red-glow);
}

.katana-btn-decline {
    background: transparent;
    border: 1px solid var(--stealth-grey);
    color: var(--stealth-grey);
}
.katana-btn-decline:hover {
    border-color: var(--katana-silver);
    color: var(--katana-silver);
}

.gate-content small {
    display: block;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--stealth-grey);
}

.main-content.hidden {
    display: none;
}

/* =========================================
   Navigation (Shadow Nav)
   ========================================= */
.shadow-nav {
    position: fixed;
    top: 0;
    /* Move to left sidebar on large screens, or standard top on small? 
       Let's do top bar for better usability but with unique style */
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(138, 3, 3, 0.3);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-kanji {
    font-size: 32px;
    color: var(--blood-red);
    font-family: serif; /* Authentic Kanji look */
    text-shadow: var(--red-glow);
}

.logo-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--katana-silver);
    letter-spacing: 3px;
}

.menu-items {
    display: flex;
    gap: 40px;
}

.menu-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stealth-grey);
    overflow: hidden;
    padding: 5px 0;
    font-family: 'Cinzel', serif;
}

/* Cool hover effect for links */
.menu-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--blood-red);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.menu-link span { /* Actually the text inside */
    display: inline-block;
    transition: transform 0.3s ease;
}

.menu-link:hover {
    color: transparent; /* Hide original text */
}

.menu-link:hover::before {
    transform: translateY(0);
}

/* Mobile Burger */
.menu-burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}
.blade {
    height: 2px;
    background: var(--blood-red);
    width: 100%;
    transition: all 0.3s;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

/* =========================================
   Hero Section (Dojo Hero)
   ========================================= */
.dojo-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.stealth-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1b1e 0%, #050505 80%);
    z-index: -1;
}

/* Decorative grid or pattern */
.stealth-backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(138, 3, 3, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 3, 3, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

.dojo-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.clan-badge {
    display: inline-block;
    padding: 5px 20px;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    font-size: 0.9rem;
    margin-bottom: 30px;
    letter-spacing: 4px;
    font-family: 'Cinzel', serif;
    background: rgba(197, 160, 89, 0.05);
}

.dojo-heading {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.heading-intro {
    display: block;
    font-size: 1rem;
    color: var(--stealth-grey);
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.heading-main {
    display: block;
    color: var(--katana-silver);
    text-shadow: 2px 2px 0px var(--blood-red);
}

.scroll-divider {
    height: 1px;
    width: 100px;
    background: var(--blood-red);
    margin: 0 auto 30px;
}

.dojo-text {
    font-size: 1.1rem;
    color: #9e9e9e;
    margin-bottom: 50px;
    line-height: 1.8;
}

.katana-action-btn {
    position: relative;
    padding: 20px 50px;
    background: transparent;
    border: 1px solid var(--blood-red);
    color: var(--blood-red);
    font-size: 1.1rem;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.4s ease;
}

.katana-action-btn:hover {
    color: white;
    box-shadow: 0 0 30px rgba(138, 3, 3, 0.6);
    background: var(--blood-red);
}

/* =========================================
   Scroll Area (Overview)
   ========================================= */
.scroll-area {
    padding: 100px 0;
    position: relative;
}

.scroll-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.scroll-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.scroll-visual {
    position: relative;
}

.scroll-visual img {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.5s ease;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.scroll-visual:hover img {
    filter: grayscale(0%) contrast(110%);
}

.frame-decor {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--stealth-grey);
    z-index: -1;
}

.scroll-story h2 {
    color: var(--katana-silver);
    margin-bottom: 25px;
    font-size: 2.2rem;
    border-left: 3px solid var(--blood-red);
    padding-left: 20px;
}

.scroll-story p {
    color: var(--stealth-grey);
    font-size: 1.1rem;
}

/* =========================================
   Technique Hall (Features)
   ========================================= */
.technique-hall {
    padding: 100px 0;
    background: var(--shinobi-dark);
}

.hall-title {
    text-align: center;
    margin-bottom: 70px;
    font-size: 2.5rem;
    color: var(--gold-accent);
}

.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.technique-card {
    background: var(--shinobi-panel);
    padding: 40px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.technique-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--blood-red);
}

.card-icon {
    font-size: 2rem;
    color: var(--stealth-grey);
    margin-bottom: 20px;
    font-family: serif;
}

.technique-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--katana-silver);
}

.technique-card p {
    font-size: 0.95rem;
    color: #888;
}

/* =========================================
   Mission Preview
   ========================================= */
.mission-preview {
    padding: 100px 0;
}

.game-display {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--stealth-grey);
}

.game-display img {
    width: 100%;
    display: block;
    filter: brightness(0.8);
}

.display-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-display:hover .display-overlay {
    opacity: 1;
}

.katana-launch-btn {
    background: var(--gold-gradient);
    border: none;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--shinobi-black);
    clip-path: polygon(0 0, 95% 0, 100% 100%, 5% 100%);
    transition: transform 0.2s;
}

.katana-launch-btn:hover {
    transform: scale(1.05);
}

/* =========================================
   Clan Lore (About)
   ========================================= */
.clan-lore {
    padding: 100px 0;
    background: var(--shinobi-dark);
}

.lore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.lore-scroll {
    position: relative; /* Add separation logic if needed */
}

.scroll-header h3 {
    font-size: 1.2rem;
    color: var(--blood-red);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--stealth-grey);
    padding-bottom: 10px;
    display: inline-block;
}

.lore-scroll p {
    color: #aaa;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--gold-accent);
    border-bottom: 1px dashed var(--gold-accent);
}

/* =========================================
   Nindo (Disclaimer)
   ========================================= */
.nindo-section {
    padding: 80px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.nindo-text h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.nindo-list {
    max-width: 800px;
    margin: 0 auto;
}

.nindo-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--stealth-grey);
}

.nindo-mark {
    color: var(--gold-accent);
}

.nindo-item p {
    color: #888;
    font-size: 0.9rem;
}

/* =========================================
   Courier Post (Contact)
   ========================================= */
.courier-post {
    padding: 100px 0;
}

.post-intro {
    text-align: center;
    margin-bottom: 60px;
}

.post-intro p {
    color: var(--stealth-grey);
    margin-top: 10px;
}

.shadow-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--katana-silver);
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--shinobi-panel);
    border: 1px solid #333;
    color: white;
    font-family: 'Noto Serif JP', serif;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--blood-red);
    box-shadow: 0 0 10px rgba(138, 3, 3, 0.2);
}

.send-katana-btn {
    width: 100%;
    padding: 18px;
    background: var(--stealth-grey);
    color: white;
    border: none;
    font-weight: 700;
    transition: background 0.3s;
}

.send-katana-btn:hover {
    background: var(--blood-red);
}

/* =========================================
   Clan Emblems & Footer
   ========================================= */
.clan-emblems {
    padding: 50px 0;
    background: #000;
}

.emblem-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.emblem-item img {
    height: 60px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.emblem-item:hover img {
    opacity: 1;
}

.shogun-footer {
    padding: 80px 0 20px;
    background: linear-gradient(to top, #000, #0f1012);
    border-top: 1px solid var(--blood-red);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-bio p {
    color: #666;
    margin-bottom: 30px;
}

.newsletter-box h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-input {
    display: flex;
}

.newsletter-input input {
    flex: 1;
    padding: 12px;
    background: #222;
    border: none;
    color: white;
}

.newsletter-input button {
    padding: 12px 25px;
    background: var(--blood-red);
    color: white;
    border: none;
    font-weight: 700;
}

.footer-nav h4 {
    margin-bottom: 25px;
}

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

.footer-links a {
    color: #888;
}

.footer-links a:hover {
    color: var(--blood-red);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #444;
    font-size: 0.8rem;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .scroll-layout,
    .footer-grid,
    .lore-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .scroll-story h2 {
        border-left: none;
        padding-left: 0;
    }
    
    .menu-items {
        display: none; /* Hide for burger later */
    }
    
    .menu-burger {
        display: flex;
    }
    
    .menu-items.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--shinobi-black);
        padding: 30px;
        text-align: center;
    }

    .dojo-heading {
        font-size: 2.5rem;
    }
}
