/*
Theme Name: Root ITX Child
Description: Дочерняя тема для IT-блога с современным дизайном
Template: root
Version: 2.0
Text Domain: root-itx-child
*/

/* ===== БАЗОВЫЕ СТИЛИ ===== */
body.blog-itx {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) fixed;
    line-height: 1.7;
    color: #2c3e50;
}

.blog-itx .site {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 15px rgba(116, 75, 162, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ===== УЛУЧШЕННЫЕ КАРТОЧКИ ===== */
.blog-itx .post-card-one,
.blog-itx .post-card-square,
.blog-itx .post-card-two,
.blog-itx .post-card-inline {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.blog-itx .post-card-one:hover,
.blog-itx .post-card-square:hover,
.blog-itx .post-card-two:hover,
.blog-itx .post-card-inline:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ===== СТИЛИ ДЛЯ КОДА ===== */
.blog-itx pre,
.blog-itx code {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 8px;
    border: 1px solid #334155;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.95em;
}

.blog-itx pre {
    padding: 20px;
    overflow-x: auto;
    position: relative;
    margin: 20px 0;
}

.blog-itx code {
    padding: 3px 6px;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.blog-itx .itx-home-wrapper {
    padding: 40px;
}

.blog-itx .itx-home-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 40px;
}

/* ===== ЗАГОЛОВКИ ===== */
.blog-itx h1,
.blog-itx h2,
.blog-itx h3 {
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 1em;
}

.blog-itx h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== НАВИГАЦИЯ ===== */
.blog-itx .main-navigation {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 0;
}

.blog-itx .main-navigation ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0 20px;
}

.blog-itx .main-navigation li {
    margin: 0;
    position: relative;
}

.blog-itx .main-navigation a {
    color: #e2e8f0;
    padding: 20px 16px;
    display: block;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.blog-itx .main-navigation a:hover {
    background: rgba(102, 126, 234, 0.1);
    border-bottom-color: #667eea;
    color: #667eea;
}

/* Выпадающее меню */
.blog-itx .main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2d3748;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
}

.blog-itx .main-navigation li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== КНОПКИ ===== */
.blog-itx button,
.blog-itx .button,
.blog-itx input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-itx button:hover,
.blog-itx .button:hover,
.blog-itx input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ===== СПЕЦИАЛИЗИРОВАННЫЕ БЛОКИ ДЛЯ IT-КОНТЕНТА ===== */
.itx-note {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border-left: 4px solid #e17055;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.itx-warning {
    background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
    border-left: 4px solid #d63031;
    color: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.itx-success {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    border-left: 4px solid #00b894;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

/* Блоки с кодом */
.code-wrapper {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.code-header {
    background: #2d3748;
    color: #e2e8f0;
    padding: 10px 20px;
    font-family: 'SF Mono', monospace;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-language {
    background: #667eea;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.copy-button {
    background: transparent;
    border: 1px solid #cbd5e0;
    color: #cbd5e0;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* ===== УЛУЧШЕННАЯ ТИПОГРАФИКА ===== */
.blog-itx .entry-content {
    font-size: 1.125rem;
    line-height: 1.7;
}

.blog-itx .entry-content h2 {
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e2e8f0;
}

.blog-itx .entry-content h3 {
    margin-top: 2em;
    color: #4a5568;
}

.blog-itx .entry-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1.5em;
    margin-left: 0;
    font-style: italic;
    color: #4a5568;
    background: #f7fafc;
    padding: 1.5em;
    border-radius: 0 8px 8px 0;
}

/* Стили для таблиц */
.blog-itx .wp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-itx .wp-table th,
.blog-itx .wp-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

.blog-itx .wp-table th {
    background: #f7fafc;
    font-weight: 600;
}

.blog-itx .wp-table tr:nth-child(even) {
    background: #f7fafc;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .blog-itx .site {
        margin: 20px;
        border-radius: 12px;
    }
    
    .blog-itx .itx-home-wrapper {
        padding: 20px;
    }
    
    .blog-itx h1 {
        font-size: 2em;
    }

    .blog-itx .main-navigation ul {
        flex-direction: column;
        padding: 0;
    }

    .blog-itx .main-navigation a {
        padding: 15px 20px;
    }
    
    .blog-itx .entry-content {
        font-size: 1rem;
    }
}

/* Индикатор сложности поста */
.post-difficulty {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-right: 10px;
}

.difficulty-beginner {
    background: #d4edda;
    color: #155724;
}

.difficulty-intermediate {
    background: #fff3cd;
    color: #856404;
}

.difficulty-expert {
    background: #f8d7da;
    color: #721c24;
}

/* Время чтения */
.read-time {
    color: #6c757d;
    font-size: 0.9em;
    margin-left: 10px;
}