/* ═══════════════════════════════════════════════════════════════
   規章頁面專用樣式 - Cyberpunk Theme
   ═══════════════════════════════════════════════════════════════ */

/* Hero Override */
.rules-hero .server-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.rules-preamble {
    background: rgba(254, 228, 64, 0.08);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--neon-yellow);
    border: 1px solid rgba(254, 228, 64, 0.2);
}

.rules-preamble p {
    margin: 1rem 0;
    line-height: 1.9;
    font-size: 1.4rem;
    color: var(--text-secondary);
}

.rules-preamble strong {
    color: var(--text-primary);
}

.rules-scope {
    text-align: center;
    font-size: 1.15rem !important;
    color: var(--neon-yellow) !important;
    font-family: var(--font-display);
    font-weight: 600;
    margin-top: 2rem !important;
    border-top: 1px solid rgba(254, 228, 64, 0.2);
    padding-top: 1.5rem;
    letter-spacing: 1px;
}

/* Main Content */
.rules-main {
    margin: 2rem 0;
}

.rules-article {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(0, 245, 212, 0.1);
    animation: cardReveal 0.6s ease-out 0.3s both;
}

/* Chapter Sections */
.rules-chapter {
    margin: 3rem 0;
    animation: fadeIn 0.5s ease-out both;
}

.chapter-title {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 1.6rem;
    margin: 2rem 0 1.5rem;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(0, 245, 212, 0.3);
    position: relative;
    letter-spacing: 1px;
}

.chapter-title::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

/* Rules Block */
.rules-block {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid var(--neon-cyan);
    margin: 1.5rem 0;
}

/* Individual Rules */
.rule-item {
    display: flex;
    margin: 1.5rem 0;
    padding: 1.2rem;
    background: rgba(0, 245, 212, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: translateX(8px);
    background: rgba(0, 245, 212, 0.08);
    border-color: rgba(0, 245, 212, 0.2);
}

.rule-number {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: var(--bg-deep);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 1.5rem;
    min-width: 80px;
    text-align: center;
    align-self: flex-start;
    box-shadow: var(--glow-cyan);
}

.rule-content {
    flex: 1;
    line-height: 1.9;
    color: var(--text-secondary);
    font-size: 1.35rem;
}

.rule-content strong {
    color: var(--text-primary);
}

/* Lists */
.definition-list,
.penalty-list {
    margin: 1rem 0;
    padding-left: 0;
}

.definition-list li,
.penalty-list li {
    margin: 0.8rem 0;
    padding: 0.8rem 1rem;
    padding-left: 2.5rem;
    background: rgba(0, 245, 212, 0.05);
    border-radius: 8px;
    list-style: none;
    position: relative;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.definition-list li:hover,
.penalty-list li:hover {
    background: rgba(0, 245, 212, 0.1);
    transform: translateX(5px);
}

.definition-list li::before,
.penalty-list li::before {
    content: counter(list-item, decimal);
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--neon-cyan);
    color: var(--bg-deep);
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.rule-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.rule-content ol li {
    margin: 0.6rem 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Survival Section */
.survival-section {
    margin-top: 4rem;
    border-top: 2px solid var(--neon-yellow);
    padding-top: 2rem;
}

.section-divider {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--neon-yellow);
    margin: 3rem 0 2rem;
    padding: 1.5rem;
    background: rgba(254, 228, 64, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(254, 228, 64, 0.2);
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(254, 228, 64, 0.3);
}

/* Footer */
.rules-footer {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 245, 212, 0.1);
}

.version-info {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--neon-yellow) !important;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.update-date {
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.rules-footer .footer-content p {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .rules-hero .server-title {
        font-size: 1.8rem;
    }

    .rules-article {
        padding: 2rem;
    }

    .rule-item {
        flex-direction: column;
        gap: 1rem;
    }

    .rule-number {
        align-self: flex-start;
        margin-right: 0;
    }

    .chapter-title {
        font-size: 1.4rem;
    }

    .rules-preamble {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .rules-article {
        padding: 1.5rem;
    }

    .rules-preamble {
        padding: 1rem;
    }

    .chapter-title {
        font-size: 1.2rem;
    }

    .rules-block {
        padding: 1.5rem;
    }
}
