/* ===== ОСНОВНЫЕ СТИЛИ ТЕРМИНАЛА 80-х ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'AnimeAce', 'Courier New', 'Fira Code', monospace;
}

/* ===== ПОДКЛЮЧЕНИЕ ШРИФТА ANIMEACE ===== */

@font-face {
    font-family: 'AnimeAce';
    src: url('https://vram4.neocities.org/Anime%20Ace.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== ТЕРМИНАЛЬНАЯ ОБОЛОЧКА ===== */

.terminal {
    max-width: 1200px;
    width: 100%;
    background: #0a0f0a;
    border: 2px solid #2aff6e;
    box-shadow: 0 0 20px rgba(42, 255, 110, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

/* ===== ВЕРХНЯЯ СТРОКА СТАТУСА ===== */

.status-bar {
    background: #0a1f0a;
    border-bottom: 1px solid #2aff6e;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: #2aff6e;
}

.status-left {
    display: flex;
    gap: 8px;
}

.prompt {
    color: #2aff6e;
    font-weight: bold;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */

.terminal-content {
    padding: 20px;
}

/* ===== НАВИГАЦИОННАЯ ПАНЕЛЬ ===== */

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2aff6e;
}

.nav-left {
    flex-shrink: 0;
}

.badge-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.badge-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.badge-gif {
    display: block;
    border: none;
    image-rendering: pixelated;
}

.nav-right {
    flex-shrink: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-menu li {
    display: inline;
}

.nav-link {
    color: #2aff6e;
    text-decoration: none;
    font-family: 'AnimeAce', 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #8fff8f;
    text-shadow: 0 0 5px #2aff6e;
}

/* ===== РАЗДЕЛИТЕЛИ ===== */

.separator {
    color: #2aff6e;
    font-family: monospace;
    font-size: 12px;
    margin: 20px 0;
    text-align: center;
    opacity: 0.6;
}

/* ===== ПРИВЕТСТВЕННЫЙ БЛОК ===== */

.welcome-section {
    margin: 20px 0;
}

.ascii-art {
    color: #2aff6e;
    font-family: monospace;
    font-size: 8px;
    line-height: 1.2;
    white-space: pre;
    margin-bottom: 20px;
    text-align: center;
}

.boot-message, .greeting-message {
    color: #2aff6e;
    font-family: 'AnimeAce', 'Courier New', monospace;
    font-size: 14px;
    margin: 8px 0;
}

.greeting-message {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #2aff6e;
}

/* ===== СЕКЦИИ КОНТЕНТА ===== */

.content-section {
    margin: 30px 0;
    scroll-margin-top: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-bracket {
    color: #2aff6e;
    font-size: 24px;
    font-weight: bold;
}

.section-title {
    color: #2aff6e;
    font-family: 'AnimeAce', 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
}

.section-content {
    padding-left: 20px;
}

.section-content p {
    color: #2aff6e;
    font-family: 'AnimeAce', 'Courier New', monospace;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.6;
}

.highlight {
    color: #8fff8f;
    text-shadow: 0 0 3px #2aff6e;
}

/* ===== СПИСОК ТВОРЧЕСТВА ===== */

.creativity-list {
    margin: 15px 0 15px 30px;
}

.creativity-item {
    color: #2aff6e;
    font-family: 'AnimeAce', 'Courier New', monospace;
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.arrow {
    color: #2aff6e;
    font-weight: bold;
}

.status-badge {
    font-size: 10px;
    color: #2aff6e;
    border: 1px solid #2aff6e;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.info-message {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dotted #2aff6e;
    font-size: 12px;
}

/* ===== КОНТАКТЫ ===== */

.contact-item {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-link, .contact-text {
    color: #2aff6e;
    font-family: 'AnimeAce', 'Courier New', monospace;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: #8fff8f;
    text-decoration: underline;
}

/* ===== ДРУЗЬЯ В ВИДЕ БЭЙДЖЕВ 88x31 С ТЕКСТОМ ===== */

.friends-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 15px;
    margin: 20px 0;
}

.friend-badge {
    display: inline-block;
    transition: all 0.2s ease;
}

.friend-badge-link {
    display: inline-block;
    text-decoration: none;
}

/* Контейнер бэйджа с текстом-заглушкой */
.friend-badge-placeholder {
    width: 88px;
    height: 31px;
    background: #0a1f0a;
    border: 1px solid #2aff6e;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
}

/* Текст внутри бэйджа */
.friend-badge-text {
    color: #2aff6e;
    font-family: 'AnimeAce', 'Courier New', monospace;
    font-size: 9px;
    font-weight: normal;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
    padding: 0 2px;
}

/* Эффект при наведении */
.friend-badge:hover {
    transform: translateY(-2px);
}

.friend-badge:hover .friend-badge-placeholder {
    border-color: #8fff8f;
    background: #1a2f1a;
    box-shadow: 0 0 5px rgba(42, 255, 110, 0.3);
}

.friend-badge:hover .friend-badge-text {
    color: #8fff8f;
    text-shadow: 0 0 2px #2aff6e;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .friends-badges {
        justify-content: center;
        gap: 12px;
    }
}

/* ===== ФУТЕР ===== */

.terminal-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #2aff6e;
}

.footer-line {
    color: #2aff6e;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    margin: 5px 0;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 768px) {
    .terminal {
        margin: 10px;
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    .nav-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nav-menu {
        justify-content: center;
        gap: 12px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .ascii-art {
        font-size: 5px;
        overflow-x: auto;
    }
    
    .section-content {
        padding-left: 10px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .boot-message, .greeting-message, .section-content p, .creativity-item, .contact-link {
        font-size: 12px;
    }
    
    .section-bracket {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 14px;
    }
}

/* ===== СКРОЛЛБАР В СТИЛЕ ТЕРМИНАЛА ===== */

::-webkit-scrollbar {
    width: 8px;
    background: #0a0f0a;
}

::-webkit-scrollbar-track {
    background: #0a0f0a;
    border-left: 1px solid #2aff6e;
}

::-webkit-scrollbar-thumb {
    background: #2aff6e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8fff8f;
}