/*
Theme Name: YnM
Theme URI: https://ynm.hu
Author: Markus
Author URI: https://ynm.hu
Description: Egyedi YnM WordPress sablon
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ynm
Tags: custom, minimal, responsive
*/

/* ============================================
   NAVBAR
   ============================================ */

.navbar .nav-link {
    color: #fff;
    transition: all 0.3s;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dropdown-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dropdown-menu {
    animation: slideDown 0.3s ease;
    z-index: 9999;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ÁLTALÁNOS KÁRTYA / GOMB
   ============================================ */

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.btn:hover {
    transform: scale(1.05);
}

footer a:hover {
    opacity: 1 !important;
    transform: translateX(3px);
}

footer .btn:hover {
    transform: scale(1.1) !important;
}

/* ============================================
   EMOJI - soha ne legyenek nagyok
   ============================================ */

img.emoji {
    height: 1em !important;
    width: 1em !important;
    max-width: 1em !important;
    object-fit: unset !important;
    display: inline !important;
    vertical-align: -0.1em !important;
}

/* Minden képtartóban lévő kép középre igazítása */
.post-card-featured-img-wrap img,
.post-card-medium-img-wrap img,
.post-card-small-img-wrap img,
.post-card-related-img-wrap img,
.article-featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.post-card-featured-img-wrap:hover img,
.post-card-medium-img-wrap:hover img,
.post-card-small-img-wrap:hover img,
.post-card-related-img-wrap:hover img {
    transform: scale(1.25);
}
/* --- Featured kártya képtartó --- */
.post-card-featured-img-wrap {
    height: 400px;
    overflow: hidden;
    background: #e9ecef;
}

.post-card-featured-img-wrap a {
    display: block;
    height: 100%;
}

.post-card-featured-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: fit-content;
    display: block !important;
}

/* --- Medium kártya képtartó --- */
.post-card-medium-img-wrap {
    height: 220px;
    overflow: hidden;
    background: #e9ecef;
}

.post-card-medium-img-wrap a {
    display: block;
    height: 100%;
}

.post-card-medium-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: unset !important;
    display: block !important;
}

/* --- Small kártya képtartó --- */
.post-card-small-img-wrap {
    height: 150px;
    overflow: hidden;
    background: #e9ecef;
}

.post-card-small-img-wrap a {
    display: block;
    height: 100%;
}

.post-card-small-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: unset !important;
    display: block !important;
}

/* --- Related kártya képtartó --- */
.post-card-related-img-wrap {
    height: 200px;
    overflow: hidden;
    background: #e9ecef;
}

.post-card-related-img-wrap a {
    display: block;
    height: 100%;
}

.post-card-related-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: unset !important;
    display: block !important;
}

/* --- Általános post-card hover --- */
.post-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   FEATURED KÁRTYA LAYOUT
   ============================================ */

.post-card-featured {
    margin-bottom: 40px;
}

.post-card-featured .row {
    margin: 0 !important;
}

.post-card-featured .col-lg-7 {
    padding: 0 !important;
}

/* ============================================
   KATEGÓRIA SZŰRŐ
   ============================================ */

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.category-filter .btn {
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.category-filter .btn:hover {
    background: #667eea !important;
    color: white !important;
    transform: translateY(-2px);
}

.category-filter .btn.active {
    background: #667eea !important;
    color: white !important;
}

/* ============================================
   BBC NEWS GRID
   ============================================ */

.bbc-news-grid {
    margin-bottom: 50px;
}

/* ============================================
   CIKK OLDAL
   ============================================ */

.article-featured-image {
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 40px;
}

.article-featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: fit-content;
    display: block !important;
    margin: 0 auto !important;
}

.article-title {
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.article-meta {
    margin-bottom: 30px;
}

.article-byline {
    font-size: 0.9rem;
    color: #6c757d;
}

.article-body {
    font-family: Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c2c2c;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2,
.article-body h3 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.article-body a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.article-body a:hover {
    border-bottom-color: #667eea;
}

/* ============================================
   KAPCSOLÓDÓ CIKKEK
   ============================================ */

.related-articles {
    border-top: 3px solid #667eea;
    padding: 80px 0;
    background: #f8f9fa;
}

.related-articles h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #667eea;
    margin-top: 10px;
}

/* ============================================
   LAPOZÓ
   ============================================ */

.page-links,
nav[aria-label="Page navigation"] {
    margin-top: 50px;
}

nav[aria-label="Page navigation"] ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
}

nav[aria-label="Page navigation"] a,
nav[aria-label="Page navigation"] span {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    text-decoration: none;
}

nav[aria-label="Page navigation"] a {
    background: #f0f0f0;
    color: #667eea;
    font-weight: 600;
}

nav[aria-label="Page navigation"] a:hover {
    background: #667eea;
    color: white;
}

nav[aria-label="Page navigation"] .page-numbers.current {
    background: #667eea;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
}

/* ============================================
   GOMB STÍLUSOK
   ============================================ */

.btn-outline-secondary {
    color: #667eea;
    border-color: #667eea;
    transition: all 0.3s;
}

.btn-outline-secondary:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* ============================================
   RESZPONZÍV
   ============================================ */

@media (max-width: 768px) {
    .article-title { font-size: 2rem; }
    .article-body  { font-size: 1rem; }
    .related-articles { padding: 40px 0; }

    .post-card-featured .row { flex-direction: column; }

    .post-card-featured .col-lg-7,
    .post-card-featured .col-lg-5 {
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
    }

    .post-card-featured { margin-bottom: 30px; }
}