/*
Theme Name: Magazine Tech
Description: Журнальная тема для медиа и lifestyle - magazine tech
Version: 1.0
*/

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #212121;
    background: #fafafa;
}

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

/* Хедер */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: #e3f2fd;
    padding: 10px 0;
    font-size: 14px;
}

.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-date {
    color: #757575;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #757575;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
}

.social-link:hover {
    color: #2196f3;
}

.header-main {
    padding: 30px 0;
}

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

.site-logo {
    font-size: 48px;
    font-weight: 700;
    text-decoration: none;
    color: #2196f3;
    font-family: 'Georgia', serif;
    letter-spacing: -1px;
}

.site-tagline {
    color: #757575;
    font-size: 14px;
    margin-top: 5px;
    font-style: italic;
}

.header-search form {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
}

.header-search input {
    padding: 12px 20px;
    border: none;
    outline: none;
    width: 300px;
    font-size: 14px;
}

.header-search button {
    padding: 12px 20px;
    background: #2196f3;
    color: white;
    border: none;
    cursor: pointer;
}

/* Навигация */
.main-navigation {
    background: #2196f3;
    padding: 0;
}

.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 18px 25px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.main-menu a:hover {
    background: #1976d2;
}

/* Hero Section */
.hero-section {
    margin-bottom: 60px;
}

.hero-post {
    position: relative;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 150, 243, 0.8);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    color: white;
    z-index: 2;
}

.hero-category {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-title a {
    color: white;
    text-decoration: none;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.hero-excerpt {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.95;
}

.hero-read-more {
    background: white;
    color: #2196f3;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s;
}

.hero-read-more:hover {
    transform: translateY(-2px);
}

/* Trending Section */
.trending-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2196f3;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2196f3;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.trending-post {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.trending-post:hover {
    transform: translateY(-5px);
}

.trending-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.trending-content {
    padding: 25px;
}

.trending-category {
    background: #2196f3;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.trending-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.trending-title a {
    color: #212121;
    text-decoration: none;
}

.trending-title a:hover {
    color: #2196f3;
}

.trending-meta {
    color: #757575;
    font-size: 14px;
}

/* Categories Sections */
.categories-sections {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.category-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e3f2fd;
}

.category-title {
    font-size: 28px;
    font-weight: 700;
    color: #2196f3;
}

.view-all {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid #2196f3;
    border-radius: 20px;
    transition: all 0.3s;
}

.view-all:hover {
    background: #2196f3;
    color: white;
}

.category-posts {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.category-post.featured {
    grid-row: span 2;
}

.category-post {
    display: flex;
    flex-direction: column;
}

.category-post.regular {
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.category-image img {
    width: 100%;
    border-radius: 8px;
}

.category-post.featured .category-image img {
    height: 250px;
    object-fit: cover;
}

.category-post.regular .category-image {
    flex-shrink: 0;
    width: 80px;
}

.category-post.regular .category-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.category-content {
    padding-top: 15px;
}

.category-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.category-post.regular .category-post-title {
    font-size: 14px;
}

.category-post-title a {
    color: #212121;
    text-decoration: none;
}

.category-post-title a:hover {
    color: #2196f3;
}

.category-meta {
    color: #757575;
    font-size: 13px;
    margin-bottom: 10px;
}

.category-excerpt {
    color: #757575;
    font-size: 14px;
    line-height: 1.5;
}

/* Single Post */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.single-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-category {
    background: #2196f3;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.single-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    color: #212121;
}

.single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info img {
    border-radius: 50%;
}

.author-name {
    font-weight: 600;
    color: #212121;
    display: block;
}

.post-date {
    color: #757575;
    font-size: 14px;
}

.post-stats {
    display: flex;
    gap: 20px;
    color: #757575;
    font-size: 14px;
}

.single-featured-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    height: auto;
}

.single-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.single-content p {
    margin-bottom: 25px;
}

.single-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #2196f3;
}

.single-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #1976d2;
}

.single-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.post-tags {
    margin-bottom: 30px;
}

.post-tags a {
    background: #e3f2fd;
    color: #2196f3;
    padding: 5px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 12px;
    margin-right: 8px;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.related-posts h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2196f3;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-post {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.related-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.related-content a {
    color: #212121;
    text-decoration: none;
}

.related-content a:hover {
    color: #2196f3;
}

.related-date {
    color: #757575;
    font-size: 12px;
}

/* Футер */
.site-footer {
    background: #212121;
    color: white;
    margin-top: 80px;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #2196f3;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    font-size: 24px;
    text-decoration: none;
}

.footer-categories {
    list-style: none;
}

.footer-categories li {
    margin-bottom: 8px;
}

.footer-categories a {
    color: #ccc;
    text-decoration: none;
}

.footer-categories a:hover {
    color: #2196f3;
}

.footer-post {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.footer-post h5 {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-post a {
    color: #ccc;
    text-decoration: none;
}

.footer-post a:hover {
    color: #2196f3;
}

.footer-post span {
    color: #888;
    font-size: 12px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background: #2196f3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #2196f3;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .header-search input {
        width: 250px;
    }

    .main-menu {
        flex-direction: column;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .category-posts {
        grid-template-columns: 1fr;
    }

    .category-post.regular {
        flex-direction: column;
    }

    .single-post {
        padding: 30px 20px;
    }

    .single-title {
        font-size: 28px;
    }

    .single-meta {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
