/* Discord Dark Theme */
body {
    background-color: #36393f;
    color: #dcddde;
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    padding: 90px 20px 20px 20px;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Обертка для контента и навигации */
.content-wrapper {
    max-width: 1300px; /* 950px + 280px + 40px отступы */
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Класс для контента с боковой навигацией */
.content-wrapper.with-nav .container {
    margin: 0;
    flex: 1;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 10px;
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.header:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.4);
}

.header h1 {
    margin: 0;
    font-size: 2.0em;
    font-weight: 600;
}

.header p {
    margin: 10px 0 0 0;
    font-size: 1.2em;
    opacity: 0.9;
}

.section {
    background-color: #2f3136;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #202225;
    scroll-margin-top: 100px;
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.section h2 {
    color: #7289da;
    margin-top: 0;
    font-size: 1.5em;
    font-weight: 600;
    border-bottom: 2px solid #7289da;
    padding-bottom: 10px;
}

.section h3 {
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Стили для ссылок в секциях - Discord стиль */
.section a {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;

    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;

    background-color: rgba(88, 101, 242, 0.3);
    color: #c9cdfb;

    text-decoration: none;
    cursor: pointer;

    transition: background-color 0.15s ease,
                color 0.15s ease;
}

.section a::before {
    margin-right: 5px;
    opacity: 0.7;
}

.section a:hover {
    background-color: rgba(88, 101, 242, 0.9);
    color: #ffffff;
}

.section .fake-link {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 15px;

    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;

    background-color: rgba(88, 101, 242, 0.3);
    color: #c9cdfb;

    cursor: default; /* убираем pointer */
    user-select: none; /* нельзя выделять */
    text-decoration: none;

    transition: background-color 0.15s ease,
                color 0.15s ease;
}

.section .fake-link::before {
    content: "/";
    margin-right: 5px;
    opacity: 0.7;
}

.section .fake-link:hover {
    background-color: rgba(88, 101, 242, 0.9);
    color: #ffffff;
}


.discord-message {
    background-color: #40444b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #7289da;
    position: relative;
}

.discord-message.admin {
    border-left-color: #f04747;
}

.discord-message.user {
    border-left-color: #43b581;
}

.discord-message.info {
    border-left-color: #faa61a;
}

.discord-message.auto {
    border-left-color: #9b59b6;
}

.command-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.command-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.command-text {
    flex: 1;
}

.thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.command-thumbnail {
    width: 160px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #40444b;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.command-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(114, 137, 218, 0.3);
}

/* Модальное окно для изображений */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.command-header.has-permissions {
    justify-content: space-between;
}

.command-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    color: white;
}

.command-title {
    display: flex;
    align-items: center;
}

.command-name {
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
}

.command-description {
    color: #b9bbbe;
    margin-bottom: 10px;
}

.command-permissions {
    background-color: #f04747;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    display: inline-block;
    margin-top: 10px;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.feature-list li {
    background-color: #40444b;
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid #43b581;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background-color: #4a5058;
    border-left-color: #4fc38a;
}

.feature-list li::before {
    content: "✓";
    color: #43b581;
    font-weight: bold;
    margin-right: 10px;
}

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

.tech-item {
    background-color: #40444b;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tech-item:hover {
    background-color: #4a5058;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 0px;
    background-color: #2f3136;
    border: 1px solid #202225;
    border-radius: 8px;
    color: #7289da;
}

.emoji {
    font-size: 1.2em;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active { background-color: #43b581; }
.status-inactive { background-color: #f04747; }
.status-dev { background-color: #faa61a; }

/* Menu bar styles */
.menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2f3136;
    padding: 16px 0;
    text-align: center;
    border-bottom: 1px solid #202225;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.menu-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-bar li {
    display: inline-block;
    margin: 0 10px;
}

.menu-bar a {
    text-decoration: none;
    color: #b9bbbe;
    font-weight: 500;
    font-size: 1em;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.17s ease;
    border: 1px solid transparent;
}

.menu-bar a:hover {
    background: #4f545c;
    color: #ffffff;
    border-color: #5865f2;
}

/* Additional styles for content */
.discord-message ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.discord-message li {
    margin-bottom: 5px;
}

.discord-message strong {
    color: #fff;
}

.container.strict-container {
    background: #36393f;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 30px;
    margin: 40px auto;
    max-width: 950px;
    border: 1px solid #202225;
}

.container.strict-container h1 {
    color: #ffffff;
    background: none;
    border-radius: 0;
    padding: 0 0 16px 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: left;
    font-weight: 600;
    box-shadow: none;
    border-bottom: 2px solid #202225;
}

@media (max-width: 600px) {
    .container {
        padding: 10px 2vw 10px 2vw;
    }
    h1 {
        font-size: 1.3em;
        padding: 14px 0 6px 0;
    }
    .quote-block {
        padding: 12px 10px 12px 18px;
        font-size: 1em;
    }
}

/* Кнопки и ссылки */
button, .btn {
    background: #5865f2;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 10px 16px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    margin: 8px 4px;
    transition: all 0.17s ease;
    box-shadow: 0 2px 10px rgba(88,101,242,0.3);
}

button:hover, .btn:hover {
    background: #4752c4;
    box-shadow: 0 2px 10px rgba(88,101,242,0.5);
    transform: translateY(-1px);
}

/* Навигация по странице - Discord стиль */
.page-nav {
    position: fixed;
    top: 100px;
    width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: #2f3136;
    border: 1px solid #202225;
    border-radius: 8px;
    padding: 0;
    flex-shrink: 0;
}

.page-nav h3 {
    margin: 0;
    color: #7289da;
    font-size: 0.9em;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid #40444b;
    background: #292b2f;
    border-radius: 8px 8px 0 0;
}

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

.nav-list li {
    margin-bottom: 0;
    border-bottom: 1px solid #40444b;
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-list a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #dcddde;
    text-decoration: none;
    transition: all 0.17s ease;
    font-size: 0.9em;
    border-left: 3px solid transparent;
    position: relative;
}

.nav-list a:hover {
    background: #40444b;
    color: #ffffff;
    border-left-color: #7289da;
}

.nav-list a.active {
    background: #40444b;
    color: #7289da;
    border-left-color: #7289da;
    font-weight: 600;
}

/* Адаптация для экранов, где навигация не помещается */
@media (max-width: 1300px) {
    .page-nav {
        display: none;
    }
    
    .content-wrapper {
        max-width: 950px;
        display: block;
    }
    
    .container {
        margin: 0 auto;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}
