/* ===============================================
   Wiki Page Styles
   =============================================== */

.wiki-container {
    display: flex;
    min-height: 100vh;
    margin-top: 60px;
    background: #0a0a14;
}

/* ===============================================
   Sidebar
   =============================================== */

.wiki-sidebar {
    width: 280px;
    background: linear-gradient(135deg, #181828 60%, #22223a 100%);
    border-right: 2px solid rgba(224, 179, 255, 0.2);
    padding: 30px 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.wiki-sidebar-header {
    padding: 0 25px 20px;
    border-bottom: 2px solid rgba(224, 179, 255, 0.2);
}

.wiki-sidebar-header h2 {
    font-size: 24px;
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: marbleShift 8s ease infinite;
}

.wiki-nav {
    padding: 20px 0;
}

.wiki-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 25px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    border-left: 4px solid transparent;
}

.wiki-nav-item:hover {
    background: rgba(224, 179, 255, 0.1);
    color: #ffb3d9;
}

.wiki-nav-item.active {
    background: rgba(224, 179, 255, 0.15);
    border-left-color: #ffb3d9;
    color: #ffffff;
}

.nav-icon {
    font-size: 20px;
}

/* ===============================================
   Main Content
   =============================================== */

.wiki-content {
    flex: 1;
    padding: 40px 50px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.wiki-header {
    width: 100%;
    margin-bottom: 35px;
    background: none;
    padding: 0 0 20px 0;
    box-sizing: border-box;
}

.wiki-header h1 {
    font-size: 42px;
    background: linear-gradient(135deg, #e0b3ff, #ffb3d9, #b3e0ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: marbleShift 8s ease infinite;
    margin-bottom: 20px;
}

.wiki-search {
    max-width: 500px;
}

.wiki-search input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(30, 30, 45, 0.8);
    border: 1px solid rgba(224, 179, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.wiki-search input:focus {
    outline: none;
    border-color: #ffb3d9;
    box-shadow: 0 0 15px rgba(255, 179, 217, 0.3);
}

/* ===============================================
   Wiki Items Grid
   =============================================== */

.wiki-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.wiki-card {
    background: linear-gradient(135deg, #181828 60%, #22223a 100%);
    border: 2px solid rgba(224, 179, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wiki-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(224, 179, 255, 0.1), rgba(179, 224, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wiki-card:hover {
    transform: translateY(-4px);
    border-color: #ffb3d9;
    box-shadow: 0 8px 24px rgba(224, 179, 255, 0.3);
}

.wiki-card:hover::before {
    opacity: 1;
}

.wiki-card-content {
    position: relative;
    z-index: 1;
}

.wiki-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.wiki-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.wiki-card-subtitle {
    font-size: 13px;
    color: #b3e0ff;
    margin-bottom: 10px;
}

.wiki-card-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ===============================================
   Article View
   =============================================== */

.wiki-article {
    max-width: 900px;
}

.wiki-article.hidden {
    display: none;
}

.back-button {
    background: rgba(224, 179, 255, 0.1);
    border: 1px solid rgba(224, 179, 255, 0.3);
    color: #ffb3d9;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.back-button:hover {
    background: rgba(224, 179, 255, 0.2);
    border-color: #ffb3d9;
}

.article-content {
    background: linear-gradient(135deg, #181828 60%, #22223a 100%);
    border: 2px solid rgba(224, 179, 255, 0.2);
    border-radius: 12px;
    padding: 40px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(224, 179, 255, 0.2);
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.article-subtitle {
    font-size: 16px;
    color: #b3e0ff;
}

.article-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(224, 179, 255, 0.3);
    margin: 0 auto 30px;
    display: block;
    box-shadow: 0 4px 20px rgba(224, 179, 255, 0.4);
}

.article-section {
    margin-bottom: 30px;
}

.article-section h2 {
    font-size: 24px;
    color: #ffb3d9;
    margin-bottom: 15px;
}

.article-section p, .article-section li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

.article-section ul {
    list-style: none;
    padding-left: 0;
}

.article-section li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.article-section li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ffb3d9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: rgba(224, 179, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(224, 179, 255, 0.1);
}

.info-label {
    font-size: 13px;
    color: #b3e0ff;
    margin-bottom: 6px;
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

/* ===============================================
   Loading & Empty States
   =============================================== */

.loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    grid-column: 1 / -1;
}

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    grid-column: 1 / -1;
}

/* ===============================================
   Notification
   =============================================== */

.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(30, 30, 45, 0.95);
    border: 1px solid rgba(224, 179, 255, 0.3);
    border-radius: 8px;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2000;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.error {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.notification.success {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.2);
}

/* ===============================================
   Responsive
   =============================================== */

@media (max-width: 968px) {
    .wiki-container {
        flex-direction: column;
    }

    .wiki-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 2px solid rgba(224, 179, 255, 0.2);
    }

    .wiki-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }

    .wiki-nav-item {
        flex: 1 1 150px;
        justify-content: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .wiki-nav-item.active {
        border-left: none;
        border-bottom-color: #ffb3d9;
    }

    .wiki-content {
        padding: 30px 20px;
    }

    .wiki-header h1 {
        font-size: 32px;
    }

    .wiki-items {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 25px;
    }
}
