/*
Theme Name: Рабочая тетрадь
Description: Тема для интерактивной рабочей тетради по чтению
Version: 1.0
Author: Developer
*/

/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок сайта */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-left {
    flex: 0 0 auto;
}

.site-logo-link {
    text-decoration: none;
    color: white;
}

.site-logo-link:hover {
    opacity: 0.9;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: white;
}

.site-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    margin: 0;
}

.header-center {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header-nav-link:hover {
    opacity: 1;
    border-bottom-color: rgba(255,255,255,0.5);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.exit-session-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.exit-session-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.login-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* Адаптивность для заголовка */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-center {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .site-subtitle {
        font-size: 0.85rem;
    }
}

/* Основной контент */
.main-content {
    padding: 3rem 0;
}

.intro-block {
    text-align: left;
    margin-bottom: 3rem;
    width: 100%;
}

.intro-title {
    font-size: 2rem;
    font-weight: bold;
    color: #495057;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.5rem; /* 18pt - для текста более 400 знаков */
    color: #6c757d;
    line-height: 1.7;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057;
    margin-bottom: 1rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.category-description {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.5rem; /* 18pt - для текста более 400 знаков */
}

.category-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.modules-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

/* Карточка модуля */
.module-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.module-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #495057;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.module-author {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

.module-description {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.5rem; /* 18pt - для текста более 400 знаков */
}

.module-description strong {
    color: #495057;
    font-weight: 600;
}

.module-description br {
    line-height: 1.8;
}

.module-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.module-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Адаптивность */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .site-subtitle {
        font-size: 1rem;
    }
    
    .module-card {
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
}

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

.module-card {
    animation: fadeInUp 0.6s ease forwards;
}

.module-card:nth-child(2) {
    animation-delay: 0.1s;
}

.module-card:nth-child(3) {
    animation-delay: 0.2s;
}

.module-card:nth-child(4) {
    animation-delay: 0.3s;
}

