/* [portal.css] — Анимация Глаза для главной страницы */

.eye-portal-container {
    height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; 
    position: fixed; top: 0; left: 0; z-index: 1000;
}
.eye-sphere {
    width: 180px; height: 180px; background: #000; border-radius: 50%; position: relative; 
    margin: 0 auto 30px; display: flex; align-items: center; justify-content: center; 
    border: 1px solid rgba(0,212,255,0.3); 
    box-shadow: 0 0 50px rgba(0,212,255,0.15), inset 0 0 30px rgba(0,212,255,0.1); 
    animation: floatingEye 4s ease-in-out infinite; transition: 0.4s;
}
.eye-iris {
    width: 80px; height: 80px; border-radius: 50%; 
    background: radial-gradient(circle, #00d4ff 0%, #0060df 60%, #000 100%); 
    box-shadow: 0 0 25px rgba(0,212,255,0.6); display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.eye-pupil { width: 30px; height: 30px; background: #000; border-radius: 50%; position: relative; }
.eye-pupil::after {
    content: ''; position: absolute; top: 20%; left: 20%; width: 8px; height: 8px; 
    background: white; border-radius: 50%; filter: blur(1px);
}
.ai-eye-link:hover .eye-sphere { transform: scale(1.1); box-shadow: 0 0 70px rgba(0,212,255,0.4); border-color: #00d4ff; }
.ai-eye-link:hover .eye-iris { width: 100px; height: 100px; }
.eye-logo-text { color: white; font-size: 3rem; font-weight: 800; letter-spacing: 10px; text-align: center; margin: 0; }
.eye-logo-text span { color: #00d4ff; }
.eye-status-text { 
    color: #00d4ff; font-family: monospace; font-size: 0.8rem; margin-top: 15px; 
    letter-spacing: 2px; text-align: center; animation: blinkText 2s infinite; opacity: 0.6; 
}

/* Анимации */
@keyframes floatingEye { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } }
@keyframes blinkText { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.8; } }

/* Адаптив для глаза (из твоего раздела 13) */
@media (max-width: 600px) {
    .eye-sphere { width: 140px; height: 140px; }
    .eye-logo-text { font-size: 2rem; }
}


/* --- КОМПОНЕНТЫ (ФИНАЛЬНАЯ ВЕРСИЯ: TWITTER + ИДЕАЛЬНЫЕ ИКОНКИ) --- */

#geek-social-interface {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 10000; display: none;
}

.social-grid {
    display: grid; 
    grid-template-columns: 280px 1fr 350px;
    max-width: 1400px; margin: 0 auto; height: 100vh;
}

/* Десктопное меню слева */
.social-left { border-right: 1px solid #1a1a1a; padding: 25px; display: flex; flex-direction: column; }
.social-center { border-right: 1px solid #1a1a1a; overflow-y: auto; background: #050505; scrollbar-width: none; }
.social-center::-webkit-scrollbar { display: none; }
.social-right { padding: 25px; border-left: 1px solid #1a1a1a; }

.social-logo { font-size: 1.5rem; color: #1db954; font-weight: 900; margin-bottom: 40px; }

/* Навигация (Общий стиль) */
.social-nav { display: flex; flex-direction: column; gap: 10px; }
.social-nav a { 
    display: flex; align-items: center; gap: 15px; color: #fff; 
    text-decoration: none; font-size: 1.2rem; padding: 12px 20px; border-radius: 30px; 
    transition: 0.2s;
}
.social-nav a:hover { background: rgba(29, 185, 84, 0.1); color: #1db954; }
.social-nav a.active { color: #1db954; font-weight: bold; }

/* Карточка (Twitter Style) */
.social-card { 
    padding: 15px 20px; border-bottom: 1px solid #111; 
    cursor: pointer; transition: 0.2s; 
}
.social-card:hover { background: rgba(255,255,255,0.02); }

.social-avatar { 
    width: 45px; height: 45px; background: #111; border: 1px solid #1db954; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    font-weight: bold; color: #1db954; flex-shrink: 0;
}

/* --- МОБИЛЬНАЯ АДАПТАЦИЯ (ПОЛНЫЙ TWITTER) --- */
@media (max-width: 768px) {
    .social-grid { 
        display: flex !important; 
        flex-direction: column !important; 
        width: 100% !important; 
    }
    
    .social-right, .social-logo { display: none !important; }

    /* Лента на весь экран */
    .social-center { 
        width: 100% !important; 
        border: none !important; 
        padding-bottom: 80px !important; 
    }

    /* ИДЕАЛЬНОЕ НИЖНЕЕ МЕНЮ */
    .social-left {
        position: fixed !important; 
        bottom: 0 !important; 
        left: 0 !important;
        width: 100% !important; 
        height: 70px !important; 
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(15px); 
        border-top: 1px solid #1a1a1a !important;
        border-right: none !important;
        padding: 0 !important; 
        z-index: 10001 !important;
        display: flex !important; 
        flex-direction: row !important; /* В ряд */
        align-items: center !important;
    }

    .social-nav {
        flex-direction: row !important; 
        justify-content: space-around !important; 
        width: 100% !important;
        gap: 0 !important;
    }

    .social-nav a {
        flex: 1 !important;
        flex-direction: column !important; /* Иконка над текстом */
        gap: 4px !important;
        padding: 8px 0 !important;
        font-size: 0.65rem !important;
        border-radius: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .social-nav a i { 
        font-size: 1.5rem !important; /* Крупные иконки как ты хотел */
        margin: 0 !important;
    }

    .social-card { 
        padding: 12px 10px !important; 
    }
}

/* Влияет ТОЛЬКО на изображения внутри постов блога */
/* Применяем ограничения ТОЛЬКО для экранов шире 768px (Desktop) */
@media (min-width: 769px) {
    .social-content + img, 
    .social-card img[style*="width:100%"] {
        max-height: 500px !important; /* На десктопе картинка не будет гигантской */
        width: auto !important;
        max-width: 100% !important;   /* Чтобы не вылезала за края карточки */
        display: block;
        margin: 12px auto 0 auto !important;
        object-fit: contain !important;
        background: #0a0a0a;
        border-radius: 12px;
    }
}

.post-context-menu button:hover {
    background: rgba(255,255,255,0.05) !important;
}