/* =========================
   RULES SYSTEM (NEXO V)
========================= */

/* Layout */
.rules-page {
    padding: 100px 20px;
}

.rules-inner {
    max-width: 1400px;
    margin: auto;
}

.rules-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

/* =========================
   SIDEBAR
========================= */

.rules-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.rules-sidebar-head {
    margin-bottom: 20px;
}

.rules-sidebar-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 15px;
}

/* SEARCH */
.law-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
}

.law-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--w);
    width: 100%;
    font-size: 13px;
}

/* CATEGORY BUTTON */
.rules-nav-btn.main {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 6px;

    cursor: pointer;
    font-size: 13px;

    background: rgba(255,255,255,0.03);
    transition: 0.25s;
}

.rules-nav-btn.main:hover {
    background: rgba(122,60,255,0.15);
}

/* SUB LIST */
.sidebar-sub {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
}

.sidebar-group.open .sidebar-sub {
    max-height: 500px;
    margin-bottom: 10px;
}

/* SUB BUTTON */
.rules-sub-btn {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--g);
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: 0.2s;
}

.rules-sub-btn:hover {
    color: var(--w);
    border-color: var(--b);
}

.rules-sub-btn.active {
    color: var(--b);
    border-color: var(--b);
}

/* FOOTER */
.rules-sidebar-footer {
    margin-top: 20px;
}

.sidebar-info {
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.03);
}

/* =========================
   CONTENT
========================= */

.law-view {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* MAIN TEXT */
.law-main {
    padding: 30px;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
}

.law-title {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
}

.law-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--g);
}

/* =========================
   PENALTY / SANCTION
========================= */

.law-penalty-card {
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.penalty-header {
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.7;
}

/* COLORS */
.law-penalty-card.low {
    border-color: rgba(0,255,150,0.3);
}

.law-penalty-card.mid {
    border-color: rgba(255,180,0,0.4);
}

.law-penalty-card.high {
    border-color: rgba(255,50,50,0.5);
}

/* TEXT */
.penalty-note {
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   ANIMATION
========================= */

.law-view {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   GEILE SANKTIONS-CARD
========================= */

.law-penalty-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;

    padding: 26px;
    border-radius: 22px;

    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
        radial-gradient(circle at top right, rgba(0,212,255,0.12), transparent 45%);

    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.45),
        inset 0 0 30px rgba(255,255,255,0.025);
}

/* Glow Hintergrund */
.law-penalty-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 180deg,
        transparent,
        rgba(0,212,255,0.18),
        transparent,
        rgba(122,60,255,0.16),
        transparent
    );
    animation: sanctionSpin 7s linear infinite;
    opacity: 0.55;
    z-index: 0;
}

/* dunkler Layer */
.law-penalty-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    background:
        linear-gradient(180deg, rgba(5,5,7,0.88), rgba(5,5,7,0.96)),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.025) 0px,
            rgba(255,255,255,0.025) 1px,
            transparent 1px,
            transparent 5px
        );
    z-index: 0;
}

.law-penalty-card > * {
    position: relative;
    z-index: 1;
}

.penalty-header {
    display: flex;
    align-items: center;
    gap: 10px;

    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: rgba(255,255,255,0.65);
    margin-bottom: 22px;
}

.penalty-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 110px;

    border-radius: 18px;
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

/* LOW */
.law-penalty-card.low {
    border-color: rgba(0,255,150,0.45);
    box-shadow:
        0 0 35px rgba(0,255,150,0.10),
        0 20px 60px rgba(0,0,0,0.45);
}

.law-penalty-card.low .penalty-note {
    color: #00ff96;
    text-shadow: 0 0 22px rgba(0,255,150,0.55);
}

/* MID */
.law-penalty-card.mid {
    border-color: rgba(255,190,40,0.55);
    box-shadow:
        0 0 38px rgba(255,190,40,0.13),
        0 20px 60px rgba(0,0,0,0.45);
}

.law-penalty-card.mid .penalty-note {
    color: #ffc247;
    text-shadow: 0 0 24px rgba(255,190,40,0.6);
}

/* HIGH */
.law-penalty-card.high {
    border-color: rgba(255,45,85,0.65);
    box-shadow:
        0 0 45px rgba(255,45,85,0.18),
        0 20px 60px rgba(0,0,0,0.5);
}

.law-penalty-card.high .penalty-note {
    color: #ff2d55;
    text-shadow: 0 0 28px rgba(255,45,85,0.75);
    animation: dangerPulse 1.8s ease-in-out infinite;
}

/* Animationen */
@keyframes sanctionSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes dangerPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.035);
        filter: brightness(1.25);
    }
}

.rules-legend {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.rules-legend div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.low-dot { width:8px; height:8px; background:#00ff96; border-radius:50%; }
.mid-dot { width:8px; height:8px; background:#ffc247; border-radius:50%; }
.high-dot { width:8px; height:8px; background:#ff2d55; border-radius:50%; }


/* 🔎 SANKTIONS BESCHREIBUNG */
.penalty-desc {
    margin-top: 18px;
    padding: 14px 16px;

    font-size: 13px;
    line-height: 1.6;
    text-align: center;

    color: rgba(255,255,255,0.75);

    border-radius: 14px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(6px);

    position: relative;
    overflow: hidden;
}

/* kleine Linie oben */
.penalty-desc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;

    background: var(--b);
    opacity: 0.7;
}

/* LEVEL FARBE ANPASSEN */
.law-penalty-card.low .penalty-desc {
    border-color: rgba(0,255,150,0.3);
}

.law-penalty-card.mid .penalty-desc {
    border-color: rgba(255,190,40,0.35);
}

.law-penalty-card.high .penalty-desc {
    border-color: rgba(255,45,85,0.4);
}

/* optional: leichter Fade-In */
.penalty-desc {
    animation: fadeDesc 0.4s ease;
}

@keyframes fadeDesc {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}