/* Дополнительные стили для статей (artigo-solo-vivo.html, artigo-calendario-plantio.html) */

/* Улучшенный контейнер статьи */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.article-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #4CAF50);
    border-radius: 12px 12px 0 0;
}

/* Заголовок статьи */
.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2E7D32;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 16px;
}

.article-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 2px;
}

/* Метаинформация статьи */
.article-meta {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding: 16px;
    background: rgba(76, 175, 80, 0.05);
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

/* Содержание статьи */
.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #444;
}

.article-content h2 {
    color: #2E7D32;
    font-size: 1.8rem;
    margin: 32px 0 16px 0;
    padding-left: 16px;
    border-left: 4px solid #4CAF50;
    position: relative;
}

.article-content h3 {
    color: #388E3C;
    font-size: 1.4rem;
    margin: 24px 0 12px 0;
}

.article-content p {
    margin-bottom: 16px;
    text-align: justify;
}

/* Выделенные блоки */
.highlight-box {
    background: linear-gradient(135deg, #E8F5E8, #F1F8E9);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #4CAF50;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '💡';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
}

.tip-box {
    background: linear-gradient(135deg, #FFF8E1, #FFFDE7);
    border-left: 5px solid #FFC107;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    position: relative;
}

.tip-box::before {
    content: '💭';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
}

.warning-box {
    background: linear-gradient(135deg, #FFEBEE, #FCE4EC);
    border-left: 5px solid #F44336;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    position: relative;
}

.warning-box::before {
    content: '⚠️';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1.5rem;
}

/* Списки */
.article-content ul, .article-content ol {
    margin: 16px 0;
    padding-left: 32px;
}

.article-content li {
    margin-bottom: 8px;
    position: relative;
}

.article-content ul li::before {
    content: '🌱';
    position: absolute;
    left: -24px;
    font-size: 0.9rem;
}

/* Таблицы */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.article-table th {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.article-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
}

.article-table tr:nth-child(even) {
    background: rgba(76, 175, 80, 0.05);
}

.article-table tr:hover {
    background: rgba(76, 175, 80, 0.1);
}

/* Навигация по статье */
.article-nav {
    position: sticky;
    top: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.article-nav h4 {
    color: #2E7D32;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

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

.article-nav li {
    margin-bottom: 8px;
}

.article-nav a {
    color: #4CAF50;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.article-nav a:hover {
    background: rgba(76, 175, 80, 0.1);
    padding-left: 16px;
}

/* Календарь посадки */
.planting-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.month-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.month-card:hover {
    border-color: #4CAF50;
    transform: scale(1.02);
}

.month-name {
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.plant-list {
    font-size: 0.9rem;
    color: #666;
}

/* Прогресс чтения */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Кнопка "Вернуться наверх" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2E7D32;
    transform: translateY(-2px);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-container {
    animation: fadeInUp 0.8s ease;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .article-container {
        padding: 20px 16px;
        margin: 10px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .planting-calendar {
        grid-template-columns: 1fr;
    }
    
    .article-nav {
        position: relative;
        top: auto;
    }
}

/* Печать */
@media print {
    .article-nav,
    .back-to-top,
    .reading-progress {
        display: none;
    }
    
    .article-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}