/* ============================================
   Blog - Milliomosok.hu
   Uses main.css header/footer styles
   ============================================ */

:root {
    --blog-gold: #bc9275;
    --blog-gold-light: #d8b38c;
    --blog-text: #e0d6cc;
    --blog-text-muted: #8a8090;
    --blog-card-bg: rgba(30, 30, 48, 0.6);
    --blog-border: rgba(188, 146, 117, 0.2);
    --blog-radius: 12px;
    --blog-max-width: 1200px;
}

/* ---------- Blog Nav (in header) ---------- */
.blog-nav {
    display: flex;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: 2rem;
}
.blog-nav::-webkit-scrollbar { display: none; }
.blog-nav__link {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #a8a8a8;
    white-space: nowrap;
    transition: all 0.2s;
    text-transform: uppercase;
}
.blog-nav__link:hover,
.blog-nav__link.active {
    color: var(--blog-gold);
    background: rgba(188, 146, 117, 0.1);
}

/* ---------- Blog Main ---------- */
.blog-main {
    flex: 1;
    min-height: 60vh;
}

/* ---------- Hero ---------- */
.blog-hero {
    padding: 80px 24px 60px;
    text-align: center;
    border-bottom: 1px solid var(--blog-border);
}
.blog-hero--small { padding: 48px 24px 36px; }
.blog-hero__inner { max-width: var(--blog-max-width); margin: 0 auto; }
.blog-hero__title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #fff, var(--blog-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.blog-hero--small .blog-hero__title { font-size: 36px; }
.blog-hero__subtitle {
    font-size: 18px;
    color: var(--blog-text-muted);
    margin: 0;
}

/* ---------- Container & Grid ---------- */
.blog-container {
    max-width: var(--blog-max-width);
    margin: 0 auto;
    padding: 40px 24px;
}
.blog-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* ---------- Cards ---------- */
.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}
.blog-card {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    overflow: hidden;
    border: 1px solid var(--blog-border);
    transition: transform 0.25s, box-shadow 0.25s;
    backdrop-filter: blur(4px);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.blog-card__image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.blog-card:hover .blog-card__image { transform: scale(1.05); }
.blog-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 35, 0.8);
    color: var(--blog-text-muted);
}
.blog-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(188, 146, 117, 0.9);
    color: #111;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
}
.blog-card__body { padding: 20px; }
.blog-card__meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: var(--blog-text-muted);
    margin-bottom: 8px;
}
.blog-card__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.blog-card__title a { color: #fff; }
.blog-card__title a:hover { color: var(--blog-gold); }
.blog-card__excerpt {
    font-size: 14px;
    color: var(--blog-text-muted);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-gold);
    text-decoration: none;
    transition: color 0.2s;
}
.blog-card__read-more:hover {
    color: var(--blog-gold-light);
}

/* ---------- Article (show page) ---------- */
.blog-article__hero {
    max-height: 500px;
    overflow: hidden;
}
.blog-article__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--blog-text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.blog-breadcrumb a { color: var(--blog-gold); }
.blog-breadcrumb--light a { color: rgba(255,255,255,0.7); }
.blog-breadcrumb--light a:hover { color: #fff; }
.blog-article__header { margin-bottom: 32px; }
.blog-article__title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #fff;
}
.blog-article__meta {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: var(--blog-text-muted);
    flex-wrap: wrap;
}
.blog-article__tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.blog-tag {
    padding: 4px 12px;
    background: rgba(188, 146, 117, 0.12);
    border: 1px solid var(--blog-border);
    border-radius: 16px;
    font-size: 13px;
    color: var(--blog-gold);
    transition: background 0.2s;
}
.blog-tag:hover {
    background: rgba(188, 146, 117, 0.25);
    color: var(--blog-gold-light);
}

/* Article body styles */
.blog-article__body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--blog-text);
}
.blog-article__body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 40px 0 16px;
}
.blog-article__body h3 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 32px 0 12px;
}
.blog-article__body h4, .blog-article__body h5 {
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin: 28px 0 12px;
}
.blog-article__body p { margin: 0 0 20px; }
.blog-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.blog-article__body blockquote {
    border-left: 3px solid var(--blog-gold);
    margin: 24px 0;
    padding: 16px 24px;
    background: rgba(188, 146, 117, 0.06);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--blog-gold-light);
}
.blog-article__body ul, .blog-article__body ol {
    padding-left: 24px;
    margin: 0 0 20px;
}
.blog-article__body li { margin-bottom: 8px; }
.blog-article__body a { color: var(--blog-gold); text-decoration: underline; }
.blog-article__body pre {
    background: rgba(10, 10, 20, 0.6);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
}
.blog-article__body code {
    background: rgba(188, 146, 117, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ---------- Share ---------- */
.blog-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
    padding-top: 24px;
    border-top: 1px solid var(--blog-border);
}
.blog-share__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--blog-text-muted);
}
.blog-share__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: transform 0.2s;
}
.blog-share__btn:hover { transform: scale(1.1); }
.blog-share__btn--fb { background: #1877f2; }
.blog-share__btn--tw { background: #1da1f2; }

/* ---------- Related ---------- */
.blog-related { margin-top: 48px; }
.blog-related__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}
.blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.blog-related__card {
    background: var(--blog-card-bg);
    border-radius: var(--blog-radius);
    overflow: hidden;
    border: 1px solid var(--blog-border);
    transition: transform 0.2s;
}
.blog-related__card:hover { transform: translateY(-2px); }
.blog-related__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.blog-related__card h4 {
    padding: 12px 16px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.blog-related__card time {
    padding: 0 16px 12px;
    display: block;
    font-size: 13px;
    color: var(--blog-text-muted);
}

/* ---------- Sidebar ---------- */
.blog-sidebar__cta {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    padding: 28px;
    text-align: center;
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}
.blog-sidebar__cta h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}
.blog-sidebar__cta p {
    font-size: 14px;
    color: var(--blog-text-muted);
    margin: 0 0 16px;
}
.blog-sidebar__cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #b98e73, #d8b38c);
    color: #111 !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 20px;
    transition: transform 0.2s;
}
.blog-sidebar__cta-btn:hover { transform: translateY(-1px); }

.blog-sidebar__widget {
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.blog-sidebar__widget-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--blog-border);
    color: #fff;
}
.blog-sidebar__cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar__cat-list li { margin-bottom: 8px; }
.blog-sidebar__cat-list a {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--blog-text);
    transition: color 0.2s;
}
.blog-sidebar__cat-list a:hover { color: var(--blog-gold); }
.blog-sidebar__count {
    background: rgba(188, 146, 117, 0.15);
    color: var(--blog-gold);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.blog-sidebar__popular {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-sidebar__popular li { margin-bottom: 12px; }
.blog-sidebar__popular-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.blog-sidebar__popular-item img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.blog-sidebar__popular-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
.blog-sidebar__popular-item time {
    font-size: 12px;
    color: var(--blog-text-muted);
}

/* ---------- Pagination ---------- */
.blog-pagination { margin-top: 32px; }
.blog-pagination .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    justify-content: center;
}
.blog-pagination .page-link {
    padding: 8px 14px;
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    color: var(--blog-text);
    font-size: 14px;
}
.blog-pagination .page-item.active .page-link {
    background: var(--blog-gold);
    border-color: var(--blog-gold);
    color: #111;
}

/* ---------- Empty State ---------- */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
}
.blog-empty h2 { color: #fff; font-size: 28px; margin: 0 0 12px; }
.blog-empty p { color: var(--blog-text-muted); }
.blog-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: var(--blog-card-bg);
    border: 1px solid var(--blog-border);
    border-radius: 20px;
    color: var(--blog-gold);
    font-weight: 600;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-grid__sidebar { order: -1; }
    .blog-hero__title { font-size: 32px; }
    .blog-hero--small .blog-hero__title { font-size: 26px; }
    .blog-article__title { font-size: 28px; }
    .blog-related__grid { grid-template-columns: 1fr; }
    .blog-cards { grid-template-columns: 1fr; }
    .blog-nav { margin-left: 1rem; }
}

@media (max-width: 480px) {
    .blog-nav { display: none; }
    .blog-container { padding: 20px 12px; }
    .blog-hero { padding: 48px 16px 36px; }
    .blog-hero__title { font-size: 26px; }
    .blog-article__title { font-size: 24px; }
    .blog-article__body { font-size: 16px; }
}
