/* ==========================================================
   PROJECT VISION · REGLER-SIDE STYLES
   ========================================================== */

.regler-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 100px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* ===== TABLE OF CONTENTS (Sticky sidebar) ===== */
.toc {
    position: sticky;
    top: 100px;
    background: rgba(19, 26, 36, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toc-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}

.toc-link:hover {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
    border-left-color: var(--cyan);
}

/* ===== REGLER CONTENT ===== */
.regler-content {
    min-width: 0;
}

.para-section {
    margin-bottom: 64px;
    padding-bottom: 32px;
}

.para-section:last-of-type {
    border-bottom: none;
}

.para-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 32px;
    padding: 20px 0;
    border-top: 2px solid var(--cyan);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.para-header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan);
}

.para-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    color: var(--cyan);
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px var(--cyan-glow);
    flex-shrink: 0;
}

.para-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 3.5vw, 36px);
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.para-intro {
    background: rgba(0, 229, 255, 0.04);
    border-left: 3px solid var(--cyan);
    padding: 16px 20px;
    margin-bottom: 32px;
    border-radius: 0 6px 6px 0;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
}

.para-intro strong {
    color: var(--text);
}

/* ===== INDIVIDUAL RULES ===== */
.rule {
    background: rgba(19, 26, 36, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rule:hover {
    border-color: var(--border-bright);
    background: rgba(19, 26, 36, 0.7);
}

.rule-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.rule-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    font-weight: 700;
    flex-shrink: 0;
}

.rule p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 14px;
}

.rule p:last-child {
    margin-bottom: 0;
}

.rule p strong {
    color: var(--text);
    font-weight: 700;
}

.rule p em {
    color: var(--cyan-bright);
    font-style: italic;
    background: rgba(0, 229, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
}

.rule p code {
    font-family: var(--font-mono);
    background: var(--surface-2);
    color: var(--cyan);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid var(--border);
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.rule-list li {
    padding: 10px 0 10px 28px;
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 14px;
    position: relative;
    border-bottom: 1px solid rgba(31, 42, 56, 0.5);
}

.rule-list li:last-child {
    border-bottom: none;
}

.rule-list li::before {
    content: '▸';
    position: absolute;
    left: 8px;
    color: var(--cyan);
    font-weight: 700;
}

.rule-list-good li::before {
    content: '✓';
    color: var(--success);
}

.rule-list-bad li::before {
    content: '✕';
    color: var(--danger);
}

.rule-list li strong {
    color: var(--text);
}

.rule-list li a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px dashed var(--cyan);
}

.rule-list li a:hover {
    text-shadow: 0 0 8px var(--cyan-glow);
}

.rule-subheader {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--cyan);
    letter-spacing: 0.05em;
    margin: 20px 0 8px;
}

.rule-note {
    background: rgba(255, 184, 0, 0.08);
    border-left: 3px solid var(--warn);
    padding: 14px 18px;
    border-radius: 0 6px 6px 0;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}

.danger-text {
    color: var(--danger);
    font-weight: 700;
}

/* ===== HEAT TABLE (Cooldown table) ===== */
.heat-table {
    margin-top: 20px;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--cyan);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.heat-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--cyan);
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    text-align: center;
}

.heat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.heat-item {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.heat-item:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
}

.heat-item.heat-big {
    grid-column: span 2;
    border-color: var(--danger);
}

.heat-type {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.heat-time {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--cyan);
}

.heat-big .heat-time {
    color: var(--danger);
    font-size: 24px;
}

/* ===== CTA BUNN ===== */
.regler-cta {
    margin-top: 80px;
    padding: 60px 32px;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--cyan);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 20px 80px rgba(0, 229, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.regler-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--cyan-glow), transparent 40%);
    opacity: 0.2;
    pointer-events: none;
}

.regler-cta > * {
    position: relative;
    z-index: 1;
}

.regler-cta .cta-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.regler-cta p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 28px;
}

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
    .regler-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .toc {
        position: static;
        order: 0;
    }

    .toc-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .toc-link {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .regler-container {
        padding: 24px 16px 80px;
    }

    .toc {
        padding: 16px;
    }

    .para-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .para-num {
        font-size: 28px;
    }

    .rule {
        padding: 20px;
    }

    .rule-title {
        font-size: 16px;
    }

    .heat-item.heat-big {
        grid-column: span 1;
    }

    .regler-cta {
        padding: 40px 20px;
        margin-top: 60px;
    }
}
