/* 
 * Основные стили многофункциональной темы
 * Файл: my-style.css
 */

/* CSS переменные (фиксированный стиль «Океан») */
:root {
    --primary-color: #4b0082;
    --secondary-color: #ff1493;
    --accent-color: #00bfff;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #f9f9f9;
    --dark-bg: #1a1a2e;
    --card-bg: #fff;
    --border-color: #eaeaea;
    --footer-bg: #1a1a2e;
    --header-bg: #1a1a2e;
    --gradient-start: #4b0082;
    --gradient-end: #ff1493;
}

/* Основные стили */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; margin-bottom: 2rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1.25rem; }

/* Хедер */
.header {
    background: var(--header-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.logo a {
    color: var(--light-text);
    text-decoration: none;
}

.logo a:hover {
    color: var(--secondary-color);
}

.logo:hover {
    color: var(--secondary-color);
}

/* Навигация */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.25rem; /* расстояние между пунктами меню */
}

.nav-list > li {
    display: flex;
}

.nav-link {
    color: var(--light-text);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

 

/* Основной контент */
.main-content {
    flex: 1;
    padding: 4rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Карточки блога */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 соотношение */
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
}

.card-link {
    margin-top: auto;
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    color: var(--secondary-color);
}

.card-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(5px);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Related section */
.related-section {
    margin-top: 3rem;
}

.related-title {
    text-align: center;
    font-size: 2.25rem;
    margin: 0 0 1.5rem;
}

.pagination-item {
    margin: 0 0.25rem;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.current {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Футер */
.footer {
    background-color: var(--footer-bg);
    color: var(--light-text);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.footer-text {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-item {
    margin-bottom: 0.75rem;
}

.footer-nav-link {
    color: var(--light-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Страница поста */
.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.post-meta {
    color: #777;
    margin-bottom: 2rem;
}

.post-date {
    margin-right: 1rem;
}

.post-featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin-left: 0;
    font-style: italic;
    color: #555;
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 1.5rem 0;
    font-size: 0.875rem;
    color: #777;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumbs span {
    color: #555;
}

/* Медиа запросы */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .nav-list {
        display: none;
    }
    
    
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .post-title {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
} 