/* ===== WIKI – LIBRARY WITH REAL BOOKS ===== */

/* Library header – engraved wooden sign */
.wiki-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 24px 28px;
    background: linear-gradient(180deg, #4a3728 0%, #5c4033 25%, #6b4e3d 50%, #5c4033 75%, #4a3728 100%);
    border-radius: 4px;
    border: 3px solid #3d2e22;
    box-shadow:
        0 8px 24px rgba(0,0,0,0.4),
        inset 0 2px 0 rgba(255,255,255,0.08),
        inset 0 -2px 0 rgba(0,0,0,0.3),
        inset 2px 0 0 rgba(255,255,255,0.05),
        inset -2px 0 0 rgba(0,0,0,0.2);
    position: relative;
}

.wiki-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-bottom: 2px dashed rgba(139, 90, 43, 0.4);
    border-radius: 2px 2px 0 0;
}

.wiki-header::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 16px;
    height: 0;
    border-bottom: 2px dashed rgba(139, 90, 43, 0.35);
    pointer-events: none;
}

.wiki-header h1 {
    margin: 0 0 8px 0;
    font-size: 2.2rem;
    color: #e8dcc8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 1px rgba(0,0,0,0.3);
    font-family: var(--default-font-family, 'Shrikhand');
    letter-spacing: 0.02em;
}

.wiki-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #c4b59a;
    font-style: italic;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* Card catalog search */
.wiki-search {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #6d5a45;
    border-radius: 6px;
    font-size: 1rem;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.03) 6px), linear-gradient(135deg, #6b5a3d 0%, #7d6b4a 35%, #8f7d5c 50%, #7d6b4a 65%, #6b5a3d 100%);
    color: #2d2520;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.12);
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: #5c4d3d;
}

.search-input:focus {
    outline: none;
    border-color: #8f7d5c;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.15), 0 0 0 2px rgba(143,125,92,0.25);
}

/* Shelf labels (categories) */
.wiki-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 18px;
    border: 2px solid #6d5a45;
    border-radius: 6px;
    background: linear-gradient(135deg, #5c4033 0%, #6b4e3d 50%, #5c4033 100%);
    color: #e8dcc8;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.category-btn:hover {
    background: linear-gradient(135deg, #6b4e3d 0%, #7d6b4a 50%, #6b4e3d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}

.category-btn.active {
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%), linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%);
    color: #0f0f0f;
    border-color: #4d7c0f;
    box-shadow: 0 4px 0 0 #166534, 0 5px 12px rgba(0,0,0,0.35), inset 0 -2px 4px rgba(0,0,0,0.2);
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* Library stats – small wooden plaques */
.wiki-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: linear-gradient(180deg, #5c4033 0%, #4a3728 50%, #3d2e22 100%);
    border: 2px solid #3d2e22;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.06), inset 0 -2px 0 rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
    position: relative;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 10px;
    right: 10px;
    height: 0;
    border-bottom: 2px dashed rgba(139, 90, 43, 0.4);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    margin: 0 0 4px 0;
    font-size: 1.8rem;
    color: #e8dcc8;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.stat-card p {
    margin: 0;
    color: #c4b59a;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Shelf and books grid */
.wiki-shelf {
    position: relative;
    margin-bottom: 28px;
    padding: 0 0 20px 0;
}

.shelf-bar {
    height: 20px;
    background: linear-gradient(180deg, #3d2e22 0%, #4a3728 30%, #5c4033 60%, #4a3728 100%);
    border: 2px solid #3d2e22;
    border-radius: 4px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 2px 0 rgba(255,255,255,0.06), inset 0 -2px 0 rgba(0,0,0,0.2);
}

.shelf-bar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    border-radius: 2px 2px 0 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Book card – real book look (spine + cover) */
.article-item {
    background: linear-gradient(135deg, #5c2c2c 0%, #6b3535 25%, #7d4040 50%, #6b3535 75%, #5c2c2c 100%);
    border: 2px solid #4a2424;
    padding: 0;
    margin: 0;
    border-radius: 2px 2px 6px 6px;
    transition: all 0.25s ease;
    color: #e8dcc8;
    box-shadow:
        0 8px 20px rgba(0,0,0,0.4),
        0 2px 0 0 #3d1f1f,
        inset 0 2px 0 rgba(255,255,255,0.08),
        inset 0 -2px 0 rgba(0,0,0,0.25),
        inset 8px 0 12px -4px rgba(0,0,0,0.35);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    flex-direction: column;
}

.article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    bottom: 0;
    background: linear-gradient(90deg, #3d1f1f 0%, #4a2424 40%, #3d1f1f 100%);
    box-shadow: inset 2px 0 4px rgba(0,0,0,0.4);
    border-right: 1px solid rgba(0,0,0,0.3);
}

.article-item:nth-child(4n+2) {
    background: linear-gradient(135deg, #2c3d2c 0%, #354a35 25%, #405040 50%, #354a35 75%, #2c3d2c 100%);
    border-color: #243d24;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 2px 0 0 #1f3d1f, inset 0 2px 0 rgba(255,255,255,0.08), inset 0 -2px 0 rgba(0,0,0,0.25), inset 8px 0 12px -4px rgba(0,0,0,0.35);
}

.article-item:nth-child(4n+2)::before {
    background: linear-gradient(90deg, #1f3d1f 0%, #244a24 40%, #1f3d1f 100%);
}

.article-item:nth-child(4n+3) {
    background: linear-gradient(135deg, #2c2c3d 0%, #35354a 25%, #404050 50%, #35354a 75%, #2c2c3d 100%);
    border-color: #24243d;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 2px 0 0 #1f1f3d, inset 0 2px 0 rgba(255,255,255,0.08), inset 0 -2px 0 rgba(0,0,0,0.25), inset 8px 0 12px -4px rgba(0,0,0,0.35);
}

.article-item:nth-child(4n+3)::before {
    background: linear-gradient(90deg, #1f1f3d 0%, #24244a 40%, #1f1f3d 100%);
}

.article-item:nth-child(4n+4) {
    background: linear-gradient(135deg, #4a3728 0%, #5c4033 25%, #6b4e3d 50%, #5c4033 75%, #4a3728 100%);
    border-color: #3d2e22;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 2px 0 0 #3d2e22, inset 0 2px 0 rgba(255,255,255,0.08), inset 0 -2px 0 rgba(0,0,0,0.25), inset 8px 0 12px -4px rgba(0,0,0,0.35);
}

.article-item:nth-child(4n+4)::before {
    background: linear-gradient(90deg, #3d2e22 0%, #4a3728 40%, #3d2e22 100%);
}

.article-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0,0,0,0.5), 0 4px 0 0 rgba(0,0,0,0.2), inset 0 2px 0 rgba(255,255,255,0.12);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-left: 20px;
    padding-right: 14px;
    padding-top: 12px;
}

.article-category {
    background: rgba(0,0,0,0.35);
    color: #e8dcc8;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.1);
}

.article-date {
    color: #c4b59a;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 0 14px 0 20px;
    flex: 1;
}

.article-link h2 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #f0e6d0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 0 1px rgba(0,0,0,0.3);
    line-height: 1.35;
    transition: color 0.2s ease;
    font-family: var(--default-font-family, 'Shrikhand');
    letter-spacing: 0.02em;
}

.article-item:hover .article-link h2 {
    color: #fff8e8;
}

.article-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #b8a890;
    padding: 0 14px 0 20px;
}

.article-author, .article-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.article-preview {
    color: #a89880;
    line-height: 1.45;
    font-size: 0.88rem;
    margin-top: 8px;
    padding: 12px 14px 14px 20px;
    border-top: 2px dashed rgba(139, 90, 43, 0.4);
    flex: 1;
}

/* Wiki actions */
.wiki-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

#articles-list {
    width: 100%;
}

/* Buttons – library style (green primary to match site) */
.btn {
    background: linear-gradient(135deg, #5c4033 0%, #6b4e3d 50%, #5c4033 100%);
    color: #e8dcc8;
    padding: 12px 24px;
    border: 2px solid #6d5a45;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin: 10px 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.08);
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #6b4e3d 0%, #7d6b4a 50%, #6b4e3d 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.12);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35), inset 0 2px 6px rgba(0,0,0,0.2);
}

.btn.primary {
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 25%, transparent 50%), linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%);
    color: #0f0f0f;
    border-color: #4d7c0f;
    box-shadow: 0 5px 0 0 #166534, 0 6px 14px rgba(0,0,0,0.35), inset 0 -2px 4px rgba(0,0,0,0.2);
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 0 #166534, 0 8px 18px rgba(0,0,0,0.4), inset 0 -2px 4px rgba(0,0,0,0.2);
}

.btn.primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 #166534, 0 4px 10px rgba(0,0,0,0.3), inset 0 2px 8px rgba(0,0,0,0.25);
}

/* Loading state – library style */
.loading-state {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, #5c4033 0%, #6b4e3d 50%, #5c4033 100%);
    border-radius: 8px;
    border: 2px solid #6d5a45;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.08);
    color: #e8dcc8;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(232,220,200,0.2);
    border-top: 4px solid #e8dcc8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error and empty states – library style */
.error-message, .no-articles {
    background: linear-gradient(135deg, #5c4033 0%, #6b4e3d 50%, #5c4033 100%);
    border: 2px solid #6d5a45;
    padding: 48px 24px;
    border-radius: 8px;
    text-align: center;
    color: #e8dcc8;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35), inset 0 2px 0 rgba(255,255,255,0.08);
}

.error-icon, .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.9;
}

.error-message h3, .no-articles h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #f0c0a0;
}

.no-articles h3 {
    color: #e8dcc8;
}

.error-message p, .no-articles p {
    margin: 0 0 20px 0;
    color: #c4b59a;
    font-size: 1rem;
    line-height: 1.5;
}

/* Article page (single article) content – parchment / open book */
.article-content {
    line-height: 1.65;
    color: #2d2520;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.02) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.02) 6px), linear-gradient(135deg, #e8dcc8 0%, #f0e6d8 30%, #e8dcc8 70%, #ddd4c4 100%);
    padding: 28px 32px;
    border-radius: 4px;
    margin-top: 20px;
    border: 2px solid #6d5a45;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.4), inset 0 -2px 0 rgba(0,0,0,0.08);
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 0;
    border-bottom: 2px dashed rgba(139, 90, 43, 0.35);
    pointer-events: none;
}

#article-content {
    white-space: pre-wrap;
}

#article-title {
    color: #2d2520;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

#article-meta {
    color: #5c4d3d;
    font-style: italic;
    margin-bottom: 20px;
}

.article-content h1, .article-content h2, .article-content h3 {
    color: #3d352c;
    margin-top: 22px;
    margin-bottom: 10px;
}

.article-content p {
    margin-bottom: 14px;
}

.article-content ul, .article-content ol {
    margin-bottom: 14px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content strong {
    color: #2d2520;
}

.article-content em {
    color: #5c4d3d;
}

.article-content hr {
    border: none;
    border-top: 2px dashed rgba(139, 90, 43, 0.4);
    margin: 22px 0;
}

/* Wiki edit page – create-page-like layout */
.wiki-edit-container.article-form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.wiki-edit-container .back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #2d2520;
    text-decoration: none;
    font-weight: 600;
}

.wiki-edit-container .back-link:hover {
    color: #5c4033;
    text-decoration: underline;
}

.wiki-edit-container .wiki-edit-page-title {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    color: #2d2520;
    font-family: var(--default-font-family, 'Baloo 2', cursive);
}

.wiki-edit-container .fun-subtitle {
    margin: 0 0 20px 0;
    font-size: 1rem;
    color: #5c4d3d;
}

.wiki-edit-container .article-form-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wiki-edit-container .article-form-fields > label {
    display: block;
    font-weight: bold;
    margin-bottom: -8px;
}

.wiki-edit-container .wiki-edit-title-input,
.wiki-edit-container .article-form-fields input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid #6d5a45;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5f1ea 0%, #e8e0d4 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    color: #2d2520;
}

.wiki-edit-container .editor-hint {
    font-size: 0.9rem;
    color: #5c4d3d;
    margin: 0 0 8px 0;
}

.wiki-edit-container .article-rich-editor-container {
    margin-bottom: 8px;
}

.wiki-edit-container .publish-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid rgba(139, 115, 85, 0.4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.wiki-edit-container .publish-btn {
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    border: 3px solid;
    border-color: #047857 #34d399 #34d399 #047857;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3), inset 0 2px 4px rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wiki-edit-container .publish-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #059669, #047857);
    transform: translateY(-1px);
}

.wiki-edit-container .publish-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wiki-edit-container .publish-btn-secondary {
    background: linear-gradient(145deg, #6b5344, #5c4033);
    color: #e8dcc8;
    border-color: #4a3728 #8b7355 #8b7355 #4a3728;
}

.wiki-edit-container .publish-btn-secondary:hover:not(:disabled) {
    background: linear-gradient(145deg, #7d6b5a, #6b5344);
}

.wiki-edit-container .publish-btn-cancel {
    background: linear-gradient(145deg, #94a3b8, #64748b);
    color: #fff;
    border-color: #475569 #cbd5e1 #cbd5e1 #475569;
}

.wiki-edit-container .publish-btn-cancel:hover:not(:disabled) {
    background: linear-gradient(145deg, #64748b, #475569);
}

.wiki-edit-form {
    max-width: 100%;
}

.wiki-my-drafts-section {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(145deg, #e8e0d4 0%, #d4c8b8 100%);
    border: 2px solid #8b7355;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}

.wiki-my-drafts-title {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: #2d2520;
}

.wiki-my-drafts-hint {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #5c4d3d;
}

.wiki-my-drafts-list {
    margin: 0;
    padding-left: 24px;
}

.wiki-my-drafts-list li {
    margin: 6px 0;
}

.wiki-my-drafts-list a {
    color: #5c4033;
    font-weight: 600;
    text-decoration: none;
}

.wiki-my-drafts-list a:hover {
    text-decoration: underline;
}

.wiki-draft-date {
    font-size: 0.85rem;
    color: #6b5344;
    margin-left: 8px;
}

/* ===== FEATURED ARTICLES ===== */

.wiki-featured-title {
    font-size: 1.3rem;
    color: #e8d48b;
    font-family: var(--default-font-family, 'Shrikhand');
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.wiki-featured-title .material-icons {
    color: #f5c842;
    font-size: 1.4rem;
}

.wiki-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.wiki-featured-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: linear-gradient(160deg, #4a3520 0%, #3a2910 60%, #2e2008 100%);
    border: 2px solid #8B6914;
    border-radius: 6px;
    text-decoration: none;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,220,100,0.12),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
    overflow: hidden;
}

.wiki-featured-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5c842, transparent);
    opacity: 0.6;
}

.wiki-featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,220,100,0.2);
    border-color: #d4a017;
}

.wiki-featured-star {
    color: #f5c842;
    font-size: 1.1rem !important;
}

.wiki-featured-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f0e4c0;
    line-height: 1.3;
}

.wiki-featured-card-meta {
    font-size: 0.78rem;
    color: #9c835a;
}

.wiki-featured-empty {
    color: #9c835a;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

/* Star badge on article cards */
.wiki-star-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1a1200;
    background: linear-gradient(135deg, #f5c842, #d4a017);
    border-radius: 10px;
    padding: 2px 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.wiki-star-badge .material-icons {
    font-size: 0.85rem !important;
}

/* Featured outline on article cards */
.article-item--featured {
    border-color: #8B6914 !important;
    box-shadow:
        0 4px 16px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(245,200,66,0.12) !important;
}

/* Admin feature toggle button */
.wiki-feature-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    color: #9c835a;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.wiki-feature-btn:hover {
    color: #f5c842;
    background: rgba(245,200,66,0.1);
}

.wiki-feature-btn[data-featured="1"] {
    color: #f5c842;
}

.wiki-feature-btn .material-icons {
    font-size: 1.1rem !important;
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .wiki-header h1 {
        font-size: 1.8rem;
    }
    .wiki-featured-grid {
        grid-template-columns: 1fr 1fr;
    }
}
