@import "/css/global.css";

/* Основная структура */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.wiki-main {
    flex: 1 0 auto;
    width: 100%;
}

/* Header */
#header {
    background: url("../../images/wiki/wiki-bg.png") no-repeat center center fixed;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
}

#header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

#header .content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 100px 150px;
}

.header-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.header-wrapper .title {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
    margin: 0;
    display: inline-block;
}

.header-wrapper .title span {
    color: var(--main-color);
}

.header-wrapper .minecraft-server-ip {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Wiki Content */
#wiki-content {
    width: 100%;
    padding-bottom: 50px;
}

#wiki-content .content {
    padding: 50px 150px;
    max-width: 1400px;
    margin: 0 auto;
}

.wiki-container {
    display: flex;
    gap: 40px;
}

/* Left Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 100px;
}

.accordion-item {
    background: var(--stats-background);
    border-radius: 8px;
    padding: 15px 20px;
    color: var(--white-color);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Right Content */
.wiki-content {
    flex-grow: 1;
}

.wiki-article {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.article-title {
    color: var(--white-color);
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-content {
    background: var(--stats-background);
    border-radius: 10px;
    padding: 30px;
}

.article-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 400px;
    object-fit: cover;
}

.placeholder-text {
    color: var(--description-color);
    font-size: 18px;
    text-align: left;
    padding: 20px;
}

.link-in-text {
	color: #E5E5E5;
    font-weight: bold;
	text-decoration: none;
}

.placeholder-text span {
	color: #E5E5E5;
    font-weight: bold;
	text-decoration: none;
}


/* Responsive */
@media screen and (max-width: 1200px) {
    .wiki-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .accordion {
        position: static;
    }
    
    #wiki-content .content {
        padding: 50px;
    }
}

@media screen and (max-width: 768px) {
    #header .content {
        padding: 80px 30px;
    }
    
    .header-wrapper .title {
        font-size: 40px;
    }
    
    .header-wrapper .minecraft-server-ip {
        position: static;
        transform: none;
        margin-top: 20px;
    }
    
    #wiki-content .content {
        padding: 30px;
    }
}

@media screen and (max-width: 480px) {
    .header-wrapper .title {
        font-size: 30px;
    }
}



/* Footer */
#footer {
    flex-shrink: 0;
}