body {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #f5f5f5;
    background: linear-gradient(180deg, #2c2c2c 30%, #1b1b1b);
    background-attachment: fixed;
    background: url('/asset/background.png') no-repeat center center fixed;
    background-size: cover;
}

.wiki-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.8), rgba(168, 84, 24, 0.6));
    padding: 15px 20px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(168, 84, 24, 0.6);
}

.wiki-header:hover {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.9), rgba(168, 84, 24, 0.8));
    padding: 15px 20px;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(168, 84, 24, 0.6);
}

.wiki-header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #f5f5f5;
}

.wiki-header .logo span {
    color: #ffcc00;
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar input {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    font-size: 0.9em;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    transition: border 0.3s;
}

.search-bar input:focus {
    border-color: #ffcc00;
}

.search-bar input:hover {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.2);
    transition: border 0.3s, background-color 0.3s;
}

.search-bar button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background: #ff4500;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.search-bar button:hover {
    background: #ff6347;
    transform: scale(1.05);
}

.content {
    display: flex;
    min-height: 80vh;
    margin: 20px;
    gap: 20px;
}

.sidebar {
    width: 200px;
    background: linear-gradient(to bottom, rgba(139, 0, 0, 0.98), rgba(59, 59, 59, 0.9));
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin: 15px 0;
}

.sidebar nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.sidebar nav ul li a:hover {
    background: #ff6347;
    color: white;
    transform: translateX(5px);
}

.main-content {
    flex-grow: 1;
    padding: 25px;
    background: rgba(43, 43, 43, 0.86);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.main-content h1 {
    color: #ffcc00;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

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

.category {
    background: linear-gradient(to bottom, rgba(139, 0, 0, 0.95), rgba(59, 59, 59, 0.9));
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.category:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.category img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s;
}

.category img:hover {
    transform: scale(1.1);
}

.wiki-footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to bottom, #8b0000, #3a3a3a);
    color: #f5f5f5;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
    font-size: 0.8em;
    line-height: 1.4;
    border-top: 2px solid rgba(168, 84, 24, 0.6);
}

.wiki-footer p {
    margin: 10px 0;
    padding: 0 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.wiki-footer a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
}

.wiki-footer a:hover {
    text-decoration: underline;
    color: #ffd700;
}

@media screen and (max-width: 768px) {
    .wiki-header {
        flex-direction: column;
        text-align: center;
    }
    
    .content {
        flex-direction: column;
        align-items: center;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .main-content {
        width: 100%;
    }

    .wiki-header .logo {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 480px) {
    .search-bar {
        flex-direction: column;
        gap: 5px;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .categories {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .wiki-header .logo {
        font-size: 1.2em;
    }
}
