/* Community Guidelines Page Styles */

.guidelines-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    animation: fadeInUp 0.6s var(--apple-ease) forwards;
}

.guidelines-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.guidelines-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.guidelines-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.guidelines-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar Navigation / Table of Contents */
.guidelines-sidebar {
    position: sticky;
    top: 100px;
    width: 280px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 10;
}

[data-theme="light"] .guidelines-sidebar {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.02);
}

.guidelines-toc-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s var(--apple-ease);
}

.guidelines-toc-link svg {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
    transition: color 0.3s var(--apple-ease);
}

.guidelines-toc-link:hover, .guidelines-toc-link.active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-left-color: var(--accent-blue);
    padding-left: 1.25rem;
}

.guidelines-toc-link:hover svg, .guidelines-toc-link.active svg {
    color: var(--accent-blue);
}

[data-theme="light"] .guidelines-toc-link:hover, [data-theme="light"] .guidelines-toc-link.active {
    background: rgba(0, 0, 0, 0.03);
}

/* Guidelines Body Card */
.guidelines-body {
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--nav-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
                0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .guidelines-body {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.guidelines-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--nav-border);
    border-radius: 99px;
}

[data-theme="light"] .guidelines-date {
    background: rgba(0, 0, 0, 0.03);
}

.guidelines-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.guidelines-section:last-child {
    margin-bottom: 0;
}

.guidelines-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.guidelines-section h2 svg {
    color: var(--accent-blue);
    width: 24px;
    height: 24px;
    transition: transform 0.4s var(--apple-spring);
}

.guidelines-section:hover h2 svg {
    transform: scale(1.15) rotate(5deg);
}

.guidelines-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.guidelines-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.guidelines-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.guidelines-section li {
    margin-bottom: 0.5rem;
}

.guidelines-section strong {
    color: var(--text-primary);
}

/* Callout highlight boxes */
.guidelines-highlight-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .guidelines-highlight-box {
    background: rgba(0, 102, 204, 0.03);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.guidelines-highlight-box svg {
    color: var(--accent-blue);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.guidelines-highlight-box p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--text-primary);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .guidelines-layout {
        flex-direction: column;
        gap: 2.5rem;
    }
    .guidelines-sidebar {
        position: static;
        width: 100%;
        backdrop-filter: none;
    }
    .guidelines-body {
        padding: 2.5rem 1.5rem;
    }
    .guidelines-hero h1 {
        font-size: 3rem;
    }
}
