/* ========================================================================== */
/* MODS PAGE STYLES */
/* ========================================================================== */
.page {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 50px 20px;
    gap: 30px;
    min-height: 80vh;
    box-sizing: border-box;
    opacity: 0;
    animation: contentFadeUp 0.8s ease-out 0.2s forwards;
}

.content {
    flex: 1;
    width: 100%;  /* <-- Додано */
    background: linear-gradient(169deg, #1b1a1b 0%, #1b1a1b 100%);
    border: 1px solid #cccccc;
    border-radius: 12px;
    padding: 40px;
    color: #ffffff;
}

.wiki-container {
    max-width: 950px;
    margin: 80px auto;
    padding: 20px;
}


.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    font-family: 'Nunito-normal', sans-serif;
    color: #666;
}

.wiki-title {
    font-family: 'Minecraft', monospace;
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 10px;
}

/* Алерт */
.title-alert.mod-danger {
    font-family: 'Nunito-normal', sans-serif;
    background: rgba(255, 76, 76, 0.1);
    border-left: 5px solid #ff4c4c;
    padding: 20px;
    border-radius: 8px;
    color: #ffd1d1;
    margin: 20px 0 30px 0;
}

/* Навігація */
.mods-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.mod-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.mod-nav-item:hover { transform: translateY(-3px); }
.allowed-box:hover { border-color: #7bc788; background: rgba(123, 199, 136, 0.05); }
.forbidden-box:hover { border-color: #ff4c4c; background: rgba(255, 76, 76, 0.05); }

.mod-nav-icon { font-size: 2em; margin-bottom: 5px; }
.mod-nav-title { font-family: 'Minecraft', monospace; color: #fff; }

/* Список рекомендованих */
.mods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 50px;
}

.mod-entry {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 100%);
    border-left: 3px solid #444;
    border-radius: 6px;
    transition: 0.3s;
}

.mod-entry:hover { background: rgba(255,255,255,0.06); transform: translateX(10px); }
.status-req { border-left-color: #7bc788; }

.mod-info { flex: 1; }
.mod-name { 
    display: block; 
    font-family: 'Nunito-normal', sans-serif; 
    font-weight: bold; 
    color: #fff; 
    font-size: 1.1em;
}
.mod-desc { font-size: 0.9em; color: #888; margin-top: 4px; line-height: 1.4; }

.mod-label {
    font-family: 'Minecraft', monospace;
    font-size: 0.75em;
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    border-radius: 4px;
}

/* Контейнер для списку збірок */
.modpack-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 850px;
    margin: 20px auto;
    padding: 0 10px; /* Ваш стандартний падінг 10 */
}

/* Картка-посилання */
.modpack-entry {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    color: var(--color-primary); /* Використовуємо вашу змінну */
    transition: all var(--transition-medium);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

/* Ефект при наведенні */
.modpack-entry:hover {
    transform: translateX(5px); /* Зміщення вбік замість підйому */
    background: rgba(123, 199, 136, 0.1); /* Легкий зелений відтінок */
    border-color: #7bc788;
    box-shadow: 0 0 20px rgba(123, 199, 136, 0.2);
}

/* Блок з картинкою (лого збірки) */
.modpack-image {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    margin-right: 18px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modpack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Текстовий блок */
.modpack-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modpack-name {
    font-family: 'Minecraft', sans-serif;
    font-size: 1.25em;
    color: #7bc788;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.modpack-desc {
    font-family: 'Nunito-normal', sans-serif;
    font-size: 0.9em;
    color: #bbbbbb;
    line-height: 1.4;
    margin: 0;
}


.status-req .mod-label { background: rgba(123, 199, 136, 0.2); color: #7bc788; }

/* Блок заборонених (Теги) */
.forbidden-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.forbidden-category {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 76, 76, 0.1);
}

.forbidden-category h3 { 
    font-family: 'Minecraft', monospace; 
    color: #ff4c4c; 
    margin-bottom: 15px; 
    font-size: 1.1em;
}

.mod-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.mod-tags-list li {
    background: rgba(255, 76, 76, 0.1);
    color: #ffbaba;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Nunito-normal', sans-serif;
    border: 1px solid rgba(255, 76, 76, 0.15);
}

.mod-tags-list li:hover {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.15);
}


.back-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    margin-top: 30px;
    transition: 0.3s;
}

.back-link:hover { color: #fff; }

@media (max-width: 600px) {
    .mods-nav-grid { grid-template-columns: 1fr; }
    .mod-entry { flex-direction: column; align-items: flex-start; gap: 10px; }


    .modpack-entry {
        padding: 12px;
    }
    
    .modpack-image {
        width: 55px;
        height: 55px;
        margin-right: 12px;
    }

    .modpack-name {
        font-size: 1.1em;
    }

    .modpack-desc {
        font-size: 0.8em;
    }
    .content {
        padding: 20px 15px;
    }

}
