/* Wiki-specific styles */
.wiki-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.wiki-header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.wiki-header h1 {
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    max-height: 80px;
    width: auto;
}

.wiki-intro {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.wiki-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

.wiki-nav {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.wiki-nav h2 {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.wiki-topic-list {
    list-style: none;
    padding: 0;
    counter-reset: topic;
}

.wiki-topic-list li {
    counter-increment: topic;
    margin-bottom: 8px;
}

.wiki-topic-list li a {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.wiki-topic-list li a::before {
    content: counter(topic) ". ";
    color: #667eea;
    font-weight: 600;
}

.wiki-topic-list li a:hover {
    background: #f0f0f0;
}

.wiki-topic-list li a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wiki-topic-list li a.active::before {
    color: white;
}

.wiki-overview,
.wiki-article {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.wiki-overview h2,
.wiki-article h2 {
    color: #667eea;
    margin-bottom: 20px;
}

.wiki-overview h3,
.wiki-article h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.wiki-overview p,
.wiki-article p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.wiki-article ul,
.wiki-article ol {
    color: #555;
    margin-bottom: 15px;
    padding-left: 25px;
}

.wiki-article li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.wiki-footer {
    text-align: center;
    padding: 30px;
    color: white;
}

.wiki-footer a {
    color: white;
}

/* Konteringsexempel */
.kontering-example {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.kontering-example h4 {
    color: #333;
    margin-bottom: 10px;
}

.kontering-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.kontering-table th,
.kontering-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.kontering-table th {
    background: #667eea;
    color: white;
    font-weight: 500;
}

.kontering-table td:nth-child(2),
.kontering-table td:nth-child(3) {
    text-align: right;
    font-family: monospace;
}

/* CTA till övning */
.wiki-cta {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px;
    text-align: center;
}

.wiki-cta p {
    margin-bottom: 15px;
}

/* Navigation mellan artiklar */
.wiki-article-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.wiki-article-nav a {
    color: #667eea;
    text-decoration: none;
}

.wiki-article-nav a:hover {
    text-decoration: underline;
}

/* Responsiv */
@media (max-width: 768px) {
    .wiki-content {
        grid-template-columns: 1fr;
    }

    .wiki-nav {
        position: static;
    }

    .wiki-article-nav {
        flex-direction: column;
        gap: 10px;
    }
}
