/*
Theme Name: ExpoTek
Theme URI: https://tekmag.ro/
Author: expoMedia
Description: Temă ultra-rapidă, zero CSS extern, scor 100 PageSpeed.
Version: 1.0
Text Domain: expotek
*/

/* Articole singulare*/ 

 /* Fundal și Spațiere */
    .post-main {
        padding: 40px 0;
        background: #ffffff;
    }

    /* CONTAINER IMAGINE: Limitat la 1000px */
    .post-hero-wrapper {
        max-width: 1000px;
        margin: 0 auto 30px;
        padding: 0 20px;
    }

    .post-hero-wrapper img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }

    /* CONTAINER TEXT: Limitat la 800px conform cerinței */
    .post-body-wrapper {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Fix SEO: H1 explicit pentru User Agent */
    .post-body-wrapper h1 {
        font-size: 2.8rem !important; /* Dimensiune clară pentru PageSpeed */
        font-weight: 900;
        line-height: 1.2;
        margin-bottom: 25px;
        color: #000;
        letter-spacing: -1px;
    }

    /* Stil conținut Gutenberg */
    .entry-content {
        font-size: 1.2rem;
        line-height: 1.8;
        color: #333;
    }

    .entry-content p { margin-bottom: 1.5rem; }
    
    .entry-content h2 { 
        font-size: 1.8rem; 
        margin: 40px 0 20px; 
        font-weight: 800; 
    }

    /* Fix pentru imagini din interiorul textului */
    .entry-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 20px 0;
    }

    @media (max-width: 768px) {
        .post-body-wrapper h1 { font-size: 2rem !important; }
        .post-hero-wrapper { padding: 0; } /* Imagine lipită de margini pe mobil */
        .post-hero-wrapper img { border-radius: 0; }
    }
    
    .share-container {
        max-width: 900px;
        margin: 30px auto;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        border-radius: 12px;
        background: #fff; /* Fundal negru conform cerinței */
    }

    .share-title {
        color: #000;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .share-buttons {
        display: flex;
        gap: 10px;
    }

    .share-buttons a {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #222; /* Gri foarte închis pentru butoane */
        transition: 0.3s ease;
    }

    .share-buttons svg {
        width: 18px;
        height: 18px;
        fill: #fff; /* Iconițe albe */
    }

    /* Efecte Hover */
    .share-buttons a:hover {
        background: #e31e24; /* Roșul tău pentru accent */
        transform: translateY(-3px);
    }

    @media (max-width: 600px) {
        .share-container { margin: 20px; flex-direction: column; text-align: center; }
    }



/* GRID FINAL 1200px - CENTRAT ȘI OPTIMIZAT */
.container-1200 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.related-posts-area { 
    margin-top: 40px; 
    margin-bottom: 40px; 
}

.related-section-title { 
    font-size: 20px; 
    font-weight: 800; 
    margin-bottom: 30px; 
    border: none; 
    padding: 0; 
    text-align: left;
}

.related-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); /* 4 coloane pe Desktop */
    gap: 25px; 
}

.related-img-wrapper { 
    position: relative; 
    height: 250px; 
    overflow: hidden; 
    border-radius: 12px; 
    margin-bottom: 10px; 
}

.related-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.4s ease; 
}

.related-item:hover img { 
    transform: scale(1.1); 
}

.related-cat-badge { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: #000; 
    color: #fff; 
    font-size: 11px; 
    padding: 4px 10px; 
    font-weight: 700; 
    border-radius: 4px; 
    z-index: 2;
}

.related-title { 
    font-size: 16px; 
    font-weight: 700; 
    color: #000; 
    line-height: 1.4; 
    text-decoration: none;
}

.related-link { text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); } /* 3 coloane pe tablete */
}

@media (max-width: 768px) {
    /* Forțăm 2 coloane pe mobil și ecrane mici */
    .related-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px; 
    } 
    .related-section-title { font-size: 18px; margin-bottom: 20px; }
    .related-img-wrapper { height: 180px; } /* Ajustat înălțimea pentru a arăta bine pe 2 coloane */
}

@media (max-width: 480px) {
    /* Păstrăm tot 2 coloane și pe telefoane foarte înguste */
    .related-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px; 
    }
    .related-img-wrapper { height: 140px; }
    .related-title { font-size: 14px; }
}













    /* Fundal și Spațiere */
    .post-main {
        padding: 40px 0;
        background: #ffffff;
    }

    /* CONTAINER IMAGINE: Limitat la 1000px */
    .post-hero-wrapper {
        max-width: 1000px;
        margin: 0 auto 30px;
        padding: 0 20px;
    }

    .post-hero-wrapper img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }

    /* CONTAINER TEXT: Limitat la 800px conform cerinței */
    .post-body-wrapper {
        max-width: 800px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Fix SEO: H1 explicit pentru User Agent */
    .post-body-wrapper h1 {
        font-size: 2.8rem !important; /* Dimensiune clară pentru PageSpeed */
        font-weight: 900;
        line-height: 1.2;
        margin-bottom: 25px;
        color: #000;
        letter-spacing: -1px;
    }

    /* Stil conținut Gutenberg */
    .entry-content {
        font-size: 1.2rem;
        line-height: 1.8;
        color: #333;
    }

    .entry-content p { margin-bottom: 1.5rem; }
    
    .entry-content h2 { 
        font-size: 1.8rem; 
        margin: 40px 0 20px; 
        font-weight: 800; 
    }

    /* Fix pentru imagini din interiorul textului */
    .entry-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 20px 0;
    }

    @media (max-width: 768px) {
        .post-body-wrapper h1 { font-size: 2rem !important; }
        .post-hero-wrapper { padding: 0; } /* Imagine lipită de margini pe mobil */
        .post-hero-wrapper img { border-radius: 0; }
    }
    
    .share-container {
        max-width: 900px;
        margin: 30px auto;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
        border-radius: 12px;
        background: #fff; /* Fundal negru conform cerinței */
    }

    .share-title {
        color: #000;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .share-buttons {
        display: flex;
        gap: 10px;
    }

    .share-buttons a {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #222; /* Gri foarte închis pentru butoane */
        transition: 0.3s ease;
    }

    .share-buttons svg {
        width: 18px;
        height: 18px;
        fill: #fff; /* Iconițe albe */
    }

    /* Efecte Hover */
    .share-buttons a:hover {
        background: #e31e24; /* Roșul tău pentru accent */
        transform: translateY(-3px);
    }

    @media (max-width: 600px) {
        .share-container { margin: 20px; flex-direction: column; text-align: center; }
    }
</style>
<style>
/* GRID FINAL 1200px - CENTRAT ȘI OPTIMIZAT */
.container-1200 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.related-posts-area { 
    margin-top: 40px; 
    margin-bottom: 40px; 
}

.related-section-title { 
    font-size: 20px; 
    font-weight: 800; 
    margin-bottom: 30px; 
    border: none; 
    padding: 0; 
    text-align: left;
}

.related-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); /* 4 coloane pe Desktop */
    gap: 25px; 
}

.related-img-wrapper { 
    position: relative; 
    height: 250px; 
    overflow: hidden; 
    border-radius: 12px; 
    margin-bottom: 10px; 
}

.related-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.4s ease; 
}

.related-item:hover img { 
    transform: scale(1.1); 
}

.related-cat-badge { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: #000; 
    color: #fff; 
    font-size: 11px; 
    padding: 4px 10px; 
    font-weight: 700; 
    border-radius: 4px; 
    z-index: 2;
}

.related-title { 
    font-size: 16px; 
    font-weight: 700; 
    color: #000; 
    line-height: 1.4; 
    text-decoration: none;
}

.related-link { text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); } /* 3 coloane pe tablete */
}

@media (max-width: 768px) {
    /* Forțăm 2 coloane pe mobil și ecrane mici */
    .related-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px; 
    } 
    .related-section-title { font-size: 18px; margin-bottom: 20px; }
    .related-img-wrapper { height: 180px; } /* Ajustat înălțimea pentru a arăta bine pe 2 coloane */
}

@media (max-width: 480px) {
    /* Păstrăm tot 2 coloane și pe telefoane foarte înguste */
    .related-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px; 
    }
    .related-img-wrapper { height: 140px; }
    .related-title { font-size: 14px; }
}







        /* Reset & Base */
        :root {
            --primary-red: #c50027;
            --dark-bg: #1a1a1a;
            --text-color: #333;
            --transition: all 0.3s ease;
        }

        body { 
            margin: 0; 
            padding: 0; 
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--text-color);
        }

        .tm-header {
            background: #ffffff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 15px 0;
        }

        .tm-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
        }

        .tm-logo {
            font-size: 28px;
            font-weight: 900;
            color: #000;
            text-decoration: none;
            letter-spacing: -1px;
            text-transform: uppercase;
        }

        .tm-logo span { color: var(--primary-red); }

        .nav-list {
            display: flex;
            list-style: none;
            gap: 30px;
            margin: 0;
            padding: 0;
        }

        .nav-list a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 600;
            font-size: 15px;
            transition: var(--transition);
        }

        .nav-list a:hover { color: var(--primary-red); }

        /* Hamburger */
        .hamburger {
            display: none;
            cursor: pointer;
            z-index: 1100;
            background: none;
            border: none;
            padding: 5px;
        }

        .bar {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px auto;
            background-color: #000;
            transition: var(--transition);
        }

        /* Mobile Overlay */
        .nav-mobile {
            position: fixed;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100vh;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
            z-index: 1050;
        }

        .nav-mobile.active { right: 0; }

        .mobile-nav-list {
            list-style: none;
            text-align: center;
            padding: 0;
        }

        .mobile-nav-list li { margin: 25px 0; }

        .mobile-nav-list a {
            font-size: 24px;
            font-weight: 800;
            color: #000;
            text-decoration: none;
        }

        /* Animations */
        #menu-toggle.active .bar:nth-child(2) { opacity: 0; }
        #menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
        #menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

        @media (max-width: 992px) {
            .nav-desktop { display: none; }
            .hamburger { display: block; }
        }













 /* LIMITARE LA 900PX ȘI CENTRARE */
    .comments-area { 
        max-width: 800px !important; 
        margin: 50px auto; 
        padding: 0 20px; 
        font-family: inherit; 
        clear: both;
    }

    #reply-title { font-size: 22px; font-weight: 900; margin-bottom: 25px; text-transform: uppercase; color: #000; }
    
    /* Layout 2 Coloane (Nume/Email) */
    .c-flex { display: flex; gap: 15px; margin-bottom: 15px; }
    .c-col { flex: 1; }
    .c-full { width: 100%; margin-bottom: 15px; }

    /* Input-uri */
    .comments-area input, .comments-area textarea {
        width: 100%; padding: 14px 18px; border: 1px solid #ddd; border-radius: 10px;
        background: #fafafa; font-size: 15px; box-sizing: border-box; transition: 0.3s;
    }
    .comments-area input:focus, .comments-area textarea:focus { 
        border-color: #e31e24; outline: none; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    }
    .comments-area textarea { height: 120px; resize: vertical; }

    /* Buton */
    .form-submit { text-align: right; margin: 10px 0 0; }
    #submit { 
        background: #222; color: #fff; padding: 14px 40px; border: none; 
        border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; 
    }
    #submit:hover { background: #e31e24; transform: translateY(-2px); }

    /* Stil Liste Comentarii Existente (dacă apar) */
    .comment-list { list-style: none; padding: 0; margin-bottom: 40px; }
    .comment-body { background: #f9f9f9; padding: 25px; border-radius: 15px; margin-bottom: 20px; font-size: 15px; color: #333; line-height: 1.6; }
    .comment-author b { color: #000; font-size: 16px; }
    .comment-meta { font-size: 12px; color: #999; margin-bottom: 10px; }

    /* Responsive Mobil */
    @media (max-width: 600px) {
        .c-flex { flex-direction: column; gap: 10px; }
        #submit { width: 100%; text-align: center; }
        .comments-area { margin: 30px auto; }
