/* r/PowerBI Wiki Mockup Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1b;
    background: #f6f7f8;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #f2c811 0%, #e8b708 100%);
    padding: 1rem 2rem;
    border-bottom: 3px solid #1a1a1b;
}

.header-content {
    max-width: 900px;  /* Match content width for alignment */
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subreddit-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subreddit-icon {
    font-size: 2.5rem;
    background: #1a1a1b;
    color: #f2c811;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1b;
}

.subtitle {
    font-size: 0.9rem;
    color: #1a1a1b;  /* Darker for better contrast on yellow */
    font-weight: 500;
}

.mockup-badge {
    background: #ff4500;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Navigation */
.wiki-nav {
    background: #1a1a1b;
    padding: 0;
    display: flex;
    justify-content: center;  /* Center nav links */
    max-width: 100%;
    overflow-x: auto;
}

.wiki-nav-inner {
    max-width: 900px;  /* Match content width */
    width: 100%;
    display: flex;
    gap: 0;
    padding: 0 1rem;
}

.wiki-nav a {
    color: #d7dadc;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.wiki-nav a:hover {
    background: #333;
    color: #fff;
}

.wiki-nav a.active {
    color: #f2c811;
    border-bottom-color: #f2c811;
}

/* Main Content */
.wiki-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.alert-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

section {
    background: white;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h2 {
    font-size: 1.4rem;
    color: #1a1a1b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f2c811;
}

h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 1.5rem 0 0.75rem 0;
}

h4 {
    font-size: 1rem;
    color: #1a1a1b;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 0.75rem;
    color: #333;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: #0079d3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.section-link {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* FAQ Items */
.faq-item {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #f2c811;
}

.faq-item h4 {
    color: #1a1a1b;
    margin-bottom: 0.25rem;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.priority-1 { background: #dc3545; color: white; }
.priority-2 { background: #fd7e14; color: white; }
.priority-3 { background: #ffc107; color: #1a1a1b; }
.priority-4 { background: #28a745; color: white; }

/* Evidence boxes */
.evidence-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.evidence-box strong {
    color: #0056b3;
}

/* Warning boxes */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    color: #664d03;  /* Dark amber for better contrast */
}

.warning-box strong {
    color: #664d03;
}

.warning-box a {
    color: #0056b3;  /* Darker blue for links in warning boxes */
}

/* Code/pre */
code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: "SF Mono", Monaco, "Courier New", monospace;
    font-size: 0.9em;
}

pre {
    background: #1a1a1b;
    color: #d7dadc;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Footer */
footer {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid #e0e0e0;
}

footer a {
    color: #0079d3;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .wiki-nav {
        padding: 0 1rem;
    }

    .wiki-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    section {
        padding: 1rem;
    }
}
