/* Regeln Page Styling */

:root {
    --primary-red: #dc2626;
    --red-glow: #ef4444;
    --dark-bg: #0f0f0f;
    --darker-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: rgba(220, 38, 38, 0.2);
}

.rules-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    padding: 6rem 2rem 4rem;
    position: relative;
}

.rules-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.rules-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.rules-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.rules-header h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-red), var(--red-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.rules-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-red);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: var(--red-glow);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.edit-btn[style*="background: #5865F2"]:hover {
    background: #4752C4 !important;
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.edit-btn svg {
    width: 20px;
    height: 20px;
}

/* Edit Section (unten) */
.rules-edit-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 38, 38, 0.1);
}

.edit-btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edit-btn-login:hover {
    background: rgba(88, 101, 242, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

/* Rules Content */
.rules-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.rules-content h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-red);
}

.rules-content h2 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.rules-content h3 {
    font-size: 1.4rem;
    color: var(--red-glow);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.rules-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.rules-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.rules-content ul,
.rules-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.rules-content li {
    margin-bottom: 0.5rem;
}

.rules-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

.rules-content a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rules-content a:hover {
    color: var(--red-glow);
    text-decoration: underline;
}

.rules-content em {
    color: var(--text-secondary);
    font-style: italic;
}

.rules-content blockquote {
    border-left: 4px solid var(--primary-red);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* Footer */
.rules-footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.rules-footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865F2;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.discord-link:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.discord-link svg {
    width: 24px;
    height: 24px;
}

/* Editor Page Specific */
.editor-page {
    padding-top: 5rem;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.editor-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.editor-header p {
    color: var(--text-secondary);
}

.editor-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--red-glow);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary svg,
.btn-secondary svg {
    width: 20px;
    height: 20px;
}

.editor-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.status-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.status-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.status-message.error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--primary-red);
}

.editor-info {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-red);
    border-radius: 8px;
    padding: 1.5rem;
}

.editor-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.editor-info ul {
    list-style: none;
    padding: 0;
}

.editor-info li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.editor-info li:before {
    content: "•";
    color: var(--primary-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

    .rules-header h1 {
        font-size: 2rem;
    }

    .rules-content {
        padding: 2rem 1.5rem;
    }

    .rules-content h1 {
        font-size: 2rem;
    }

    .rules-content h2 {
        font-size: 1.5rem;
    }

    .editor-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .editor-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
