/* Platform Rules Page */

.rules-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.rules-header {
    margin-bottom: 2rem;
}

.rules-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.rules-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.rules-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.rules-loading .material-icons-outlined {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sections */
.rules-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.rules-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
}

.section-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 1rem 0 0 0;
}

/* Intro Section */
.rules-intro p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.rules-key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.key-point {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.key-point .material-icons-outlined {
    color: #3b82f6;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.key-point strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.key-point p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

/* Standing Levels */
.standing-levels-grid {
    display: grid;
    gap: 1rem;
}

.standing-level-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--level-color);
}

.level-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-icon {
    color: var(--level-color);
    font-size: 1.25rem;
}

.level-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.level-points {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.level-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* Violations Table */
.violations-table-wrapper {
    overflow-x: auto;
}

.violations-table {
    width: 100%;
    border-collapse: collapse;
}

.violations-table th,
.violations-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.violations-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.violations-table td {
    color: var(--text-primary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.violations-table tr:last-child td {
    border-bottom: none;
}

.violations-table .violation-name {
    font-weight: 500;
}

.violations-table .violation-points {
    font-weight: 600;
    color: #f97316;
}

.violations-table .violation-decay {
    color: var(--text-secondary);
}

.violations-table .violation-decay.permanent {
    color: #ef4444;
    font-weight: 500;
}

.violations-table .permanent-violation {
    background: rgba(239, 68, 68, 0.05);
}

.table-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
}

.table-note .material-icons-outlined {
    color: #ef4444;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.table-note p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.feature-item .material-icons-outlined {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* Appeals Section */
.appeals-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appeals-steps li {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.appeals-steps strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.appeals-steps p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.appeals-steps a {
    color: #3b82f6;
    text-decoration: none;
}

.appeals-steps a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .rules-page {
        padding: 1rem;
    }

    .rules-section {
        padding: 1rem;
    }

    .rules-key-points {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .violations-table th,
    .violations-table td {
        padding: 0.5rem 0.75rem;
    }
}
