/* 
 * Night Coast V - Rules CSS
 * Vollständiges Design für Regelwerk-Seiten
 */

/* ===== VARIABLES ===== */
:root {
    --rule-blue: #0066ff;
    --rule-purple: #8a2be2;
    --rule-neon: #00ccff;
    --rule-green: #2ed573;
    --rule-red: #ff4757;
    --rule-yellow: #ffc107;
    --rule-orange: #ffa502;
    
    --police-color: #0066ff;
    --medic-color: #ff4757;
    --mechanic-color: #ffc107;
    --legal-color: #2ed573;
    --illegal-color: #8a2be2;
    
    --rule-bg-dark: #0a0e17;
    --rule-bg-card: #121826;
    --rule-bg-light: #1e2533;
    --rule-border: #2a3246;
    --rule-text: #ffffff;
    --rule-text-secondary: #b0b7c3;
}

/* ===== RESET & BASE ===== */
.rules-hero, .faction-hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.rules-hero::before, .faction-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.15) 0%, 
        rgba(138, 43, 226, 0.15) 100%);
    z-index: 1;
}

.faction-hero::before {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.15) 0%, 
        rgba(220, 53, 69, 0.15) 100%);
}

.rules-hero .container, .faction-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.rules-hero .section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--rule-blue), var(--rule-neon));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

.faction-hero .section-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--rule-purple), var(--rule-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--rule-text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.rules-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid var(--rule-border);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--rule-blue);
    transform: translateY(-3px);
}

.meta-item i {
    color: var(--rule-neon);
    font-size: 1.2rem;
}

.meta-item span {
    color: var(--rule-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ===== TABLE OF CONTENTS ===== */
.toc-section {
    padding: 60px 0;
    background: var(--rule-bg-card);
    position: relative;
}

.toc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--rule-blue) 50%, 
        transparent 100%);
}

.toc-card {
    background: var(--rule-bg-dark);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--rule-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.toc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--rule-blue), var(--rule-purple));
}

.toc-card h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--rule-text);
}

.toc-card h2 i {
    color: var(--rule-neon);
    font-size: 1.5rem;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--rule-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toc-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--rule-blue);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.toc-item:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--rule-blue);
    transform: translateX(5px);
}

.toc-item:hover::before {
    transform: translateX(0);
}

.toc-item i {
    color: var(--rule-neon);
    font-size: 1.3rem;
    min-width: 24px;
}

.toc-item span {
    font-weight: 500;
    font-size: 1rem;
    flex: 1;
}

/* ===== RULE CATEGORIES ===== */
.rules-content {
    padding: 80px 0;
    background: var(--rule-bg-dark);
    position: relative;
}

.rule-category {
    background: var(--rule-bg-card);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--rule-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.rule-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--rule-blue), var(--rule-purple));
}

.police-category::before {
    background: linear-gradient(180deg, var(--police-color), #0044cc);
}

.medic-category::before {
    background: linear-gradient(180deg, var(--medic-color), #cc0000);
}

.mechanic-category::before {
    background: linear-gradient(180deg, var(--mechanic-color), #cc9900);
}

.legal-category::before {
    background: linear-gradient(180deg, var(--legal-color), #1e9c4d);
}

.illegal-category::before {
    background: linear-gradient(180deg, var(--illegal-color), #5a2d8a);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.category-header h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    color: var(--rule-text);
    margin: 0;
}

.category-header h2 i {
    color: var(--rule-neon);
    font-size: 1.5rem;
}

.rule-count {
    background: rgba(0, 102, 255, 0.2);
    color: var(--rule-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 102, 255, 0.3);
}

/* ===== RULE ITEMS ===== */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.rule-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.rule-item:hover {
    background: rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.1);
}

.rule-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--rule-blue), var(--rule-purple));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.rule-text {
    flex: 1;
}

.rule-text h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--rule-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-text h3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--rule-blue), transparent);
    margin-left: 15px;
}

.rule-text > p {
    color: var(--rule-text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.rule-details {
    margin-top: 15px;
}

.rule-details > p {
    color: var(--rule-text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.rule-details ul {
    list-style: none;
    margin: 15px 0;
}

.rule-details li {
    color: var(--rule-text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.rule-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--rule-neon);
    font-weight: bold;
}

.rule-details ul ul {
    margin-left: 20px;
    margin-top: 10px;
}

.rule-details ul ul li::before {
    content: '○';
    color: var(--rule-blue);
}

.rule-example {
    background: rgba(0, 102, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--rule-blue);
    position: relative;
}

.rule-example::before {
    content: 'Beispiel:';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--rule-bg-card);
    color: var(--rule-neon);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0 10px;
}

.rule-example strong {
    color: var(--rule-neon);
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.rule-example ul {
    margin: 10px 0 0 0;
}

.rule-example li {
    color: var(--rule-text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
}

.rule-example li::before {
    content: '–';
    color: var(--rule-blue);
}

/* ===== PUNISHMENT SYSTEM ===== */
.punishment-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.punishment-level {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--rule-border);
    transition: all 0.3s ease;
}

.punishment-level:hover {
    transform: translateY(-5px);
    border-color: var(--rule-blue);
}

.level-header {
    text-align: center;
    margin-bottom: 20px;
}

.level-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.level-1 {
    background: linear-gradient(135deg, var(--rule-green), #1e9c4d);
    color: white;
}

.level-2 {
    background: linear-gradient(135deg, var(--rule-orange), #cc8400);
    color: white;
}

.level-3 {
    background: linear-gradient(135deg, var(--rule-red), #cc0000);
    color: white;
}

.level-4 {
    background: linear-gradient(135deg, #2f3542, #1a1e27);
    color: white;
}

.punishment-level h4 {
    font-size: 1.2rem;
    color: var(--rule-text);
    margin: 0;
}

.punishment-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.punishment-actions .action {
    background: rgba(0, 102, 255, 0.1);
    color: var(--rule-blue);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(0, 102, 255, 0.2);
    transition: all 0.3s ease;
}

.punishment-actions .action:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: scale(1.05);
}

/* ===== FINAL MESSAGE ===== */
.final-category {
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.1) 0%, 
        rgba(138, 43, 226, 0.1) 100%);
    border: 2px solid var(--rule-purple);
    padding: 50px;
}

.final-category::before {
    display: none;
}

.final-message {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
}

.message-content {
    flex: 1;
}

.message-content p {
    color: var(--rule-text);
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.message-content p::before {
    content: '⭐';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--rule-yellow);
}

.message-content .highlight {
    color: var(--rule-neon);
    font-weight: 700;
    font-size: 1.4rem;
    background: rgba(0, 204, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--rule-neon);
}

.slogan {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.slogan h3 {
    font-size: 2rem;
    color: var(--rule-text);
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--rule-blue), var(--rule-neon));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.slogan .welcome {
    font-size: 1.6rem;
    color: var(--rule-purple);
    font-weight: 800;
    font-style: italic;
    text-align: center;
}

.message-icon {
    font-size: 8rem;
    color: var(--rule-neon);
    opacity: 0.2;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.05); }
}

/* ===== FRACTIONS OVERVIEW ===== */
.factions-overview {
    padding: 80px 0;
    background: var(--rule-bg-card);
}

.overview-card {
    background: var(--rule-bg-dark);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid var(--rule-border);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.overview-card h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--rule-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.overview-card h2 i {
    color: var(--rule-neon);
}

.faction-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.faction-type {
    text-align: center;
    padding: 35px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.faction-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rule-blue);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.faction-type:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.faction-type:hover::before {
    transform: translateY(0);
}

.faction-type.police .type-icon { background: var(--police-color); }
.faction-type.medic .type-icon { background: var(--medic-color); }
.faction-type.legal .type-icon { background: var(--legal-color); }
.faction-type.illegal .type-icon { background: var(--illegal-color); }

.type-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.faction-type:hover .type-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.faction-type h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--rule-text);
}

.faction-type p {
    color: var(--rule-text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.type-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--rule-neon);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== PROMOTION CRITERIA ===== */
.promotion-criteria {
    margin-top: 25px;
}

.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.criteria-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.criteria-item:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--rule-blue);
    transform: translateY(-5px);
}

.criteria-item i {
    font-size: 2.2rem;
    color: var(--rule-neon);
    margin-bottom: 5px;
}

.criteria-item span {
    color: var(--rule-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===== MANAGEMENT SECTION ===== */
.management-section {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 2px solid var(--rule-border);
}

.management-section h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--rule-text);
}

.management-section h2 i {
    color: var(--rule-neon);
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.management-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--rule-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.management-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rule-blue), var(--rule-purple));
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.management-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
}

.management-card:hover::before {
    transform: translateY(0);
}

.management-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--rule-text);
}

.management-card h3 i {
    color: var(--rule-neon);
}

.management-card p {
    color: var(--rule-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.management-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.management-card li {
    color: var(--rule-text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 0.95rem;
}

.management-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--rule-green);
    font-weight: bold;
}

/* ===== RULES FOOTER ===== */
.rules-footer {
    margin-top: 80px;
}

.agreement-box {
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.1) 0%, 
        rgba(138, 43, 226, 0.1) 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    border: 2px solid var(--rule-blue);
    position: relative;
    overflow: hidden;
}

.agreement-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, 
        rgba(0, 102, 255, 0.2) 0%, 
        transparent 70%);
    z-index: 1;
}

.agreement-box > * {
    position: relative;
    z-index: 2;
}

.agreement-box h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--rule-text);
}

.agreement-box h3 i {
    color: var(--rule-neon);
}

.agreement-box p {
    color: var(--rule-text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.agreement-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.agreement-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-width: 140px;
    transition: all 0.3s ease;
}

.agreement-stats .stat:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-5px);
}

.agreement-stats .stat i {
    font-size: 2rem;
    color: var(--rule-neon);
}

.agreement-stats .stat span {
    color: var(--rule-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.agreement-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.agreement-buttons .btn {
    min-width: 200px;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .rules-hero .section-title,
    .faction-hero .section-title {
        font-size: 2.8rem;
    }
    
    .toc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .rules-hero .section-title,
    .faction-hero .section-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .final-message {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .message-icon {
        font-size: 6rem;
    }
    
    .faction-types {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rules-hero, .faction-hero {
        padding: 120px 0 60px;
    }
    
    .rules-hero .section-title,
    .faction-hero .section-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .rules-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .meta-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .rule-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .rule-number {
        margin: 0 auto;
    }
    
    .rule-text h3::after {
        display: none;
    }
    
    .category-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .rule-count {
        margin-top: 10px;
    }
    
    .faction-types {
        grid-template-columns: 1fr;
    }
    
    .criteria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .management-grid {
        grid-template-columns: 1fr;
    }
    
    .agreement-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .agreement-stats .stat {
        width: 100%;
        max-width: 250px;
    }
    
    .agreement-buttons {
        flex-direction: column;
    }
    
    .agreement-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .rules-hero .section-title,
    .faction-hero .section-title {
        font-size: 1.8rem;
    }
    
    .toc-card,
    .rule-category,
    .agreement-box {
        padding: 25px;
    }
    
    .overview-card {
        padding: 30px 20px;
    }
    
    .criteria-grid {
        grid-template-columns: 1fr;
    }
    
    .message-content p {
        font-size: 1.1rem;
        padding-left: 0;
    }
    
    .message-content p::before {
        display: none;
    }
    
    .slogan h3 {
        font-size: 1.6rem;
    }
    
    .slogan .welcome {
        font-size: 1.3rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .menu-toggle,
    .btn-discord,
    .toc-section,
    .agreement-box,
    .rules-footer,
    .agreement-buttons,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .rule-category {
        break-inside: avoid;
        border: 2px solid #ddd !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .section-title,
    .category-header h2,
    .rule-text h3 {
        color: black !important;
    }
    
    .rule-text p,
    .rule-details li {
        color: #333 !important;
    }
    
    .rule-number {
        background: #666 !important;
        color: white !important;
        box-shadow: none !important;
    }
}