/*
Theme Name: Lingodorf Blog
Theme URI: https://lingodorf.uz
Author: Lingodorf
Description: Lingodorf Blog Theme - 1:1 React Design
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: lingodorf-blog
*/

/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: white;
    color: #34495e;
    line-height: 1.6;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

ul, ol {
    list-style-position: inside;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== HEADER ===== */
.site-header {
    background-color: #ffffff;
    color: #333;
    padding: 1rem 0;
    width: 100%;
}

.header-nav {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo {
    font-size: 1.7rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo:hover {
    color: #007bff;
}

.blog-badge {
    background-color: #007bff;
    color: white;
    margin-left: 10px;
    padding: 1.5px 6px;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.study-button {
    display: inline-block;
    background-color: white;
    color: #333;
    padding: 0.45rem 1.5rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid #ccc;
    border-bottom: 3px solid #ccc;
    transition: background-color 0.3s ease;
}

.study-button:hover {
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
}

/* Search */
.search-container {
    margin-left: 1rem;
    max-width: 250px;
}

.search-form {
    position: relative;
    border-radius: 30px;
    border: 2px solid #ccc;
    transition: border-color 0.3s ease;
    background-color: white;
}

.search-form:focus-within {
    border-color: #999;
}

.search-input {
    padding: 0.6rem 1rem;
    padding-right: 2.5rem;
    border: none;
    border-radius: 30px;
    width: 100%;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
    font-family: 'Nunito', sans-serif;
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    padding: 0;
}

.search-button:hover {
    color: #666;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
    background-color: white;
    box-sizing: border-box;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: white;
    color: #333;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    border-top: 2px solid #ccc;
    padding-top: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: #333;
    text-decoration: none;
}

.footer-link:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
}

/* ===== HOMEPAGE - FEATURED POST ===== */
.featured-post {
    margin-bottom: 3rem;
}

.featured-post-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    max-width: 935px;
    margin: 0 auto;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    height: 320px;
}

.featured-post-link:hover {
    color: inherit;
}

.featured-text {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-title {
    font-size: 2rem;
    color: #3B82F6;
    margin-top: 0;
    margin-bottom: 1rem;
}

.featured-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: #34495e;
    line-height: 1.6;
}

.featured-image {
    width: 50%;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== SEPARATOR ===== */
.separator {
    border-bottom: 2px solid #e0e0e0;
    margin: 3rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

/* ===== BLOG CARDS GRID ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.card-meta span:first-child {
    margin-right: 1rem;
    position: relative;
    padding-right: 1rem;
}

.card-meta span:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 70%;
    background-color: #d3d3d3;
}

.card-title {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.card-title:hover {
    color: #3B82F6;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: #3B82F6;
}

/* ===== RECENT POSTS (LIST VIEW) ===== */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-bottom: 3rem;
}

.recent-post-item {
    display: flex;
    flex-direction: row;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
}

.recent-post-image {
    width: 30%;
    min-width: 200px;
    height: 180px;
    position: relative;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

.recent-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.recent-post-title {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.recent-post-title:hover {
    color: #3B82F6;
}

.recent-post-title a {
    color: inherit;
    text-decoration: none;
}

.recent-post-title a:hover {
    color: #3B82F6;
}

.recent-post-excerpt {
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== MORE BUTTON ===== */
.more-button-container {
    text-align: center;
    margin: 3rem auto;
}

.more-button {
    display: inline-block;
    background-color: white;
    color: #333;
    padding: 0.7rem 2rem;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 15px;
    border: 2px solid #ccc;
    border-bottom: 4px solid #ccc;
    transition: background-color 0.3s ease;
}

.more-button:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* ===== SINGLE POST ===== */
.single-post {
    max-width: 700px;
    margin: 0 auto;
}

.single-post-header {
    margin-bottom: 2rem;
}

.single-post-title {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    text-align: center;
}

.single-post-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    text-align: center;
}

.single-post-image {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.single-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
}

.single-post-content h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2rem 0 1rem 0;
}

.single-post-content h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
}

.single-post-content p {
    margin-bottom: 1.5rem;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single-post-content li {
    margin-bottom: 0.5rem;
}

/* ===== TAGS ===== */
.single-post-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.single-post-tags a {
    color: #007bff;
    text-decoration: none;
}

.single-post-tags a:hover {
    text-decoration: underline;
}

/* ===== SHARE BUTTONS ===== */
.share-buttons-section {
    margin: 2rem 0;
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: white;
    border-radius: 15px;
    border: 2px solid #ccc;
    border-bottom: 4px solid #ccc;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.share-button:hover {
    background-color: #f5f5f5;
}

.share-button.facebook {
    color: #3b5998;
}

.share-button.twitter {
    color: #1da1f2;
}

.share-button.telegram {
    color: #0088cc;
}

.share-button.linkedin {
    color: #0077b5;
}

.share-button.instagram {
    color: #e1306c;
}

.share-button i {
    position: relative;
    top: -2px;
}

/* ===== SIMILAR POSTS ===== */
.similar-posts-section {
    max-width: 700px;
    margin: 0 auto;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
}

.similar-posts-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.similar-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.similar-post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.similar-post-image {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.similar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.similar-post-content {
    padding: 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.similar-post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.similar-post-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1.3;
}

.similar-post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.similar-post-card-title a:hover {
    color: #3B82F6;
}

.no-similar-posts {
    text-align: center;
    padding: 2rem 1rem;
    color: #7f8c8d;
    font-size: 1.1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 1rem 0;
}

/* ===== ARCHIVE PAGE ===== */
.archive-page {
    max-width: 1000px;
    margin: 0 auto;
}

.archive-header {
    text-align: center;
    margin-bottom: 2rem;
}

.archive-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.archive-description {
    font-size: 1rem;
    color: #7f8c8d;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.archive-pagination {
    text-align: center;
    margin: 2rem 0;
}

.archive-pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.archive-pagination li {
    display: inline-block;
}

.archive-pagination a,
.archive-pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.archive-pagination a:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.archive-pagination .current {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

.no-posts p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ===== SEARCH RESULTS ===== */
.search-results-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Desktop - min-width nur für große Bildschirme */
@media (min-width: 1025px) {
    body {
        min-width: 1000px;
    }

    .site-header {
        min-width: 1000px;
    }

    .main-content {
        min-width: 1000px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .header-nav {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .main-content {
        max-width: 100%;
    }

    .single-post {
        max-width: 90%;
    }

    .similar-posts-section {
        max-width: 90%;
    }

    .similar-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .site-logo {
        font-size: 1.5rem;
    }

    .blog-badge {
        font-size: 1.2rem;
    }

    .study-button {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    .search-container {
        order: 3;
        margin-top: 0.5rem;
        max-width: 100%;
        width: 100%;
    }

    .main-content {
        padding: 1rem;
    }

    /* Single Post Mobile */
    .single-post {
        max-width: 100%;
    }

    .single-post-title {
        font-size: 1.8rem;
    }

    .single-post-content {
        font-size: 1rem;
    }

    /* Similar Posts Mobile */
    .similar-posts-section {
        max-width: 100%;
        padding: 0 1rem;
    }

    .similar-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .similar-post-image {
        height: 150px;
    }

    /* Featured Post Mobile */
    .featured-post-link {
        flex-direction: column;
        height: auto;
    }

    .featured-text {
        width: 100%;
        padding: 1.5rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-image {
        width: 100%;
        height: 250px;
        border-radius: 0 0 30px 30px;
    }

    /* Grid Mobile */
    .posts-grid,
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Recent Posts Mobile */
    .recent-post-item {
        flex-direction: column;
    }

    .recent-post-image {
        width: 100%;
        min-width: 100%;
    }

    .recent-post-content {
        padding: 1.2rem;
    }

    .recent-post-image img {
        border-radius: 15px 15px 0 0;
    }

    /* Blog Card Mobile */
    .blog-card {
        height: auto;
    }

    /* Footer Mobile */
    .footer-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .posts-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 140px;
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-meta {
        font-size: 0.75rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin: 0 0 0.5rem 0;
    }
}
