/*
 Theme Name:   Michi-Bird GeneratePress Child
 Theme URI:    https://www.michi-bird.de/
 Description:  Schnelles, warmes & persönliches Reise- und Rezept-Magazin Child-Theme (GeneratePress) für Michi-Bird – Michis Reise- & Rezeptblog.
 Author:       Michaela & Philipp Roeder (Web-Roeder)
 Author URI:   https://web-roeder.de/
 Template:     generatepress
 Version:      2.5.0
 Text Domain:  generatepress-child
*/

:root {
    --mb-primary: #1e40af;
    --mb-primary-light: #2563eb;
    --mb-primary-soft: #eff6ff;
    --mb-recipe: #b45309;
    --mb-recipe-light: #d97706;
    --mb-recipe-soft: #fef3c7;
    --mb-photo: #047857;
    --mb-photo-soft: #d1fae5;
    --mb-bg: #f8fafc;
    --mb-card: #ffffff;
    --mb-text: #0f172a;
    --mb-body: #334155;
    --mb-muted: #64748b;
    --mb-border: #e2e8f0;
    --mb-radius: 16px;
    --mb-radius-sm: 10px;
    --mb-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --mb-shadow-hover: 0 14px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(37, 99, 235, 0.08);
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--mb-bg) !important;
    color: var(--mb-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* Container & Layout */
.site.grid-container {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 28px 20px 56px !important;
    box-sizing: border-box;
}

#primary.content-area {
    width: 100% !important;
    float: none !important;
}

/* Sticky Branded Header */
.mb-site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.mb-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.mb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.mb-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.mb-brand-text {
    display: flex;
    flex-direction: column;
}

.mb-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mb-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.mb-brand-tagline {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mb-recipe);
    letter-spacing: 0.01em;
}

.mb-nav-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mb-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.mb-nav-list li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--mb-body) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.mb-nav-list li a:hover,
.mb-nav-list li.is-active a {
    background: var(--mb-primary-soft);
    color: var(--mb-primary) !important;
}

.mb-nav-list li.mb-nav-recipes a:hover,
.mb-nav-list li.mb-nav-recipes.is-active a {
    background: var(--mb-recipe-soft);
    color: var(--mb-recipe) !important;
}

/* Hero Hub Banner (Homepage & Archives) */
.mb-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #1e40af 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 38px 36px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.18);
}

.mb-hero-recipe {
    background: linear-gradient(135deg, #451a03 0%, #78350f 55%, #b45309 100%);
}

.mb-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #fef3c7;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mb-hero h1 {
    color: #ffffff !important;
    font-size: 2.25rem;
    line-height: 1.22;
    font-weight: 800;
    margin: 0 0 14px 0 !important;
    letter-spacing: -0.02em;
    max-width: 860px;
}

.mb-hero p {
    color: #e2e8f0;
    font-size: 1.06rem;
    line-height: 1.68;
    max-width: 820px;
    margin: 0 0 22px 0;
}

.mb-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mb-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.24);
    transition: all 0.2s ease;
}

.mb-pill-btn:hover {
    background: #ffffff;
    color: var(--mb-text) !important;
    transform: translateY(-2px);
}

.mb-pill-btn-primary {
    background: #f59e0b;
    color: #0f172a !important;
    border-color: #f59e0b;
}

.mb-pill-btn-primary:hover {
    background: #fbbf24;
    color: #0f172a !important;
}

/* Section Heading */
.mb-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 34px 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mb-border);
    flex-wrap: wrap;
}

.mb-section-head h2 {
    margin: 0 !important;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--mb-text);
    letter-spacing: -0.01em;
}

.mb-section-head a {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--mb-primary-light);
    text-decoration: none;
}

/* Post Cards Grid (2-Column Magazine & 3-Column Spotlight) */
.mb-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mb-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.mb-card {
    background: var(--mb-card);
    border-radius: var(--mb-radius);
    border: 1px solid var(--mb-border);
    box-shadow: var(--mb-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mb-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mb-shadow-hover);
    border-color: #cbd5e1;
}

.mb-card-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
    overflow: hidden;
}

.mb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mb-card:hover .mb-card-media img {
    transform: scale(1.04);
}

.mb-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.mb-card-badge.is-recipe {
    background: rgba(180, 83, 9, 0.92);
}

.mb-card-badge.is-photo {
    background: rgba(4, 120, 87, 0.9);
}

.mb-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mb-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--mb-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.mb-card-title {
    margin: 0 0 10px 0 !important;
    font-size: 1.22rem !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
}

.mb-card-title a {
    color: var(--mb-text) !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

.mb-card-title a:hover {
    color: var(--mb-primary-light) !important;
}

.mb-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.62;
    color: var(--mb-body);
    margin: 0 0 16px 0;
    flex: 1;
}

.mb-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.86rem;
    font-weight: 700;
}

.mb-card-readmore {
    color: var(--mb-primary-light) !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mb-card-readmore:hover {
    text-decoration: underline !important;
}

/* Single Post & Page Styling */
.single .inside-article,
.page .inside-article {
    background: var(--mb-card) !important;
    border-radius: 20px;
    border: 1px solid var(--mb-border);
    box-shadow: var(--mb-shadow);
    padding: 40px 48px !important;
    max-width: 880px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mb-single-breadcrumbs {
    font-size: 0.85rem;
    color: var(--mb-muted);
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.mb-single-breadcrumbs a {
    color: var(--mb-primary-light);
    text-decoration: none;
    font-weight: 600;
}

.mb-single-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--mb-border);
    font-size: 0.88rem;
    color: var(--mb-muted);
}

.mb-single-meta-pill {
    background: var(--mb-primary-soft);
    color: var(--mb-primary);
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-decoration: none !important;
}

.single h1.entry-title,
.page h1.entry-title {
    font-size: 2.15rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--mb-text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

/* Hide default GP entry-meta since we render our richer mb-single-meta-bar */
.single .entry-header .entry-meta {
    display: none !important;
}

.entry-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--mb-text);
    margin-top: 34px;
    margin-bottom: 14px;
}

.entry-content h3 {
    font-size: 1.26rem;
    font-weight: 700;
    color: var(--mb-text);
    margin-top: 28px;
    margin-bottom: 10px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Pagination */
.mb-pagination {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--mb-border);
    color: var(--mb-text);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mb-pagination .page-numbers.current,
.mb-pagination .page-numbers:hover {
    background: var(--mb-primary);
    color: #ffffff;
    border-color: var(--mb-primary);
}

/* Custom Branded Footer */
.mb-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 52px 20px 32px;
    margin-top: 48px;
    border-top: 4px solid var(--mb-primary-light);
}

.mb-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mb-footer h4 {
    color: #ffffff !important;
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 14px 0;
}

.mb-footer p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #94a3b8;
    margin: 0 0 12px 0;
}

.mb-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mb-footer ul li {
    margin-bottom: 9px;
}

.mb-footer ul li a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: color 0.18s ease;
}

.mb-footer ul li a:hover {
    color: #fbbf24 !important;
}

.mb-footer-bottom {
    max-width: 1180px;
    margin: 22px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 960px) {
    .mb-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mb-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .mb-header-inner { padding: 10px 14px; }
    .mb-nav-wrap { width: 100%; overflow-x: auto; padding-bottom: 4px; }
    .mb-nav-list { flex-wrap: nowrap; white-space: nowrap; }
    .mb-hero { padding: 26px 20px; border-radius: 16px; }
    .mb-hero h1 { font-size: 1.65rem; }
    .mb-grid, .mb-grid-3 { grid-template-columns: 1fr; }
    .single .inside-article, .page .inside-article { padding: 22px 18px !important; }
    .single h1.entry-title, .page h1.entry-title { font-size: 1.65rem; }
    .mb-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
