/*
Theme Name: Baba Memes
Theme URI: https://baba-memes.de
Author: Baba Memes
Author URI: https://baba-memes.de
Description: Schlankes Blog-Theme für den Baba Memes YouTube Kanal. Navy/Blau Design passend zum Shop.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baba-memes
Tags: blog, youtube, memes, custom-menu, featured-images
*/

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-navy: #0e1b4d;
    --color-blue: #4770db;
    --color-red: #e32402;
    --color-yellow: #fdab00;
    --color-bg-light: #eff0f5;
    --color-white: #ffffff;
    --color-text: #0e1b4d;
    --color-text-light: #5a6080;
    --color-border: #d8dae5;
    --font-heading: 'Questrial', sans-serif;
    --font-body: 'Archivo', sans-serif;
    --max-width: 1200px;
    --content-width: 800px;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(14, 27, 77, 0.08);
    --shadow-hover: 0 4px 20px rgba(14, 27, 77, 0.15);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-navy);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1.2em;
}

/* === LAYOUT === */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.content-area {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px 24px;
}

/* === HEADER === */
.site-header {
    background: var(--color-navy);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(14, 27, 77, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo a {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-logo img {
    height: 40px;
    width: auto;
}

/* === NAVIGATION === */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-yellow);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--color-yellow);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    margin: 5px 0;
    transition: 0.3s;
}

/* === BLOG CARDS (Index) === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    padding: 40px 0;
}

/* Ganze Card klickbar */
.post-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card__link:hover {
    transform: translateY(-4px);
    color: inherit;
}

.post-card__link:hover .post-card {
    box-shadow: var(--shadow-hover);
}

.post-card__link:hover .post-card__title {
    color: var(--color-blue);
}

.post-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
}

.post-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card__link:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__content {
    padding: 24px;
}

.post-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-blue);
    background: rgba(71, 112, 219, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.post-card__title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--color-navy);
    transition: color 0.2s ease;
}

.post-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-card__meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* === SINGLE POST === */
.single-post__header {
    text-align: center;
    padding: 60px 24px 32px;
}

.single-post__category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-blue);
    margin-bottom: 16px;
}

.single-post__title {
    font-size: 2.4rem;
    max-width: 720px;
    margin: 0 auto 16px;
}

.single-post__meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.single-post__featured {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.single-post__content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px 60px;
}

.single-post__content p {
    font-size: 1.05rem;
    margin-bottom: 1.5em;
}

.single-post__content h2 {
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.single-post__content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

.single-post__content ul,
.single-post__content ol {
    margin: 0 0 1.5em 1.5em;
}

.single-post__content li {
    margin-bottom: 0.5em;
}

/* Bilder zentrieren (Shopify-Import + WordPress) */
.single-post__content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    border-radius: var(--radius);
}

.single-post__content p[style*="text-align: center"],
.single-post__content p[style*="text-align:center"] {
    text-align: center !important;
}

.single-post__content p[style*="text-align: center"] img,
.single-post__content p[style*="text-align:center"] img {
    display: inline-block;
    margin: 0 auto;
}

/* WordPress Alignment-Klassen */
.single-post__content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.single-post__content .alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.single-post__content .alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

.single-post__content .has-text-align-center {
    text-align: center;
}

/* WordPress Figure/Caption */
.single-post__content figure {
    margin: 1.5em 0;
    text-align: center;
}

.single-post__content figcaption {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 8px;
    font-style: italic;
}

/* Shopify-Import: Inline-Style-Klassen vom MS Word Export */
.single-post__content .MsoNormal,
.single-post__content .MsoListParagraphCxSpFirst,
.single-post__content .MsoListParagraphCxSpMiddle,
.single-post__content .MsoListParagraphCxSpLast {
    margin-bottom: 1em;
}

/* MS Word Comments entfernen */
.single-post__content .MsoCommentReference {
    display: none;
}

.single-post__content blockquote {
    border-left: 4px solid var(--color-blue);
    padding: 16px 24px;
    margin: 1.5em 0;
    background: rgba(71, 112, 219, 0.05);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.single-post__content iframe,
.single-post__content .wp-block-embed {
    margin: 2em 0;
}

/* YouTube Embed Responsive */
.wp-block-embed-youtube .wp-block-embed__wrapper,
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === SOCIAL SHARING === */
.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    margin: 40px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.social-share__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-light);
    color: var(--color-navy);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.social-share__btn:hover {
    transform: scale(1.1);
}

.social-share__btn--twitter:hover { background: #1da1f2; color: #fff; }
.social-share__btn--facebook:hover { background: #1877f2; color: #fff; }
.social-share__btn--whatsapp:hover { background: #25d366; color: #fff; }
.social-share__btn--telegram:hover { background: #0088cc; color: #fff; }
.social-share__btn--copy:hover { background: var(--color-navy); color: #fff; }

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination a {
    background: var(--color-white);
    color: var(--color-navy);
    box-shadow: var(--shadow);
}

.pagination a:hover {
    background: var(--color-blue);
    color: var(--color-white);
}

.pagination .current {
    background: var(--color-navy);
    color: var(--color-white);
}

/* === FOOTER === */
.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--color-blue);
}

.footer-nav h4 {
    color: var(--color-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--color-yellow);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
}

/* === 404 === */
.error-404 {
    text-align: center;
    padding: 80px 24px;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--color-blue);
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* === AUTHOR BOX === */
.author-box {
    max-width: var(--content-width);
    margin: 40px auto;
    padding: 24px 28px;
    background: var(--color-bg-light);
    border-radius: var(--radius);
    border-top: 3px solid var(--color-navy);
}

.author-box__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.author-box__avatar,
.author-box__header img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
}

.author-box__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
    display: block;
}

.author-box__name:hover {
    color: var(--color-blue);
}

.author-box__role {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

.author-box__bio {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text);
    margin: 0;
}

.author-box__socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.author-box__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-navy);
    transition: all 0.2s ease;
    border: 1px solid var(--color-border);
}

.author-box__social:hover {
    transform: scale(1.1);
}

.author-box__social--youtube:hover { background: #ff0000; color: #fff; border-color: #ff0000; }
.author-box__social--instagram:hover { background: #e4405f; color: #fff; border-color: #e4405f; }
.author-box__social--tiktok:hover { background: #000; color: #fff; border-color: #000; }
.author-box__social--twitter:hover { background: #000; color: #fff; border-color: #000; }
.author-box__social--linkedin:hover { background: #0077b5; color: #fff; border-color: #0077b5; }

/* === AUTHOR PAGE === */
.author-page {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 48px 24px 60px;
}

.author-page__profile {
    text-align: center;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.author-page__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-border);
    margin-bottom: 16px;
}

.author-page__name {
    font-size: 2rem;
    margin-bottom: 4px;
}

.author-page__role {
    font-size: 1rem;
    color: var(--color-blue);
    font-weight: 500;
    margin-bottom: 16px;
}

.author-page__bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 650px;
    margin: 0 auto 20px;
}

.author-page__socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.author-page__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-bg-light);
    color: var(--color-navy);
    transition: all 0.2s ease;
    border: 1px solid var(--color-border);
}

.author-page__social:hover { transform: scale(1.1); }
.author-page__social--youtube:hover { background: #ff0000; color: #fff; border-color: #ff0000; }
.author-page__social--instagram:hover { background: #e4405f; color: #fff; border-color: #e4405f; }
.author-page__social--tiktok:hover { background: #000; color: #fff; border-color: #000; }
.author-page__social--twitter:hover { background: #000; color: #fff; border-color: #000; }
.author-page__social--linkedin:hover { background: #0077b5; color: #fff; border-color: #0077b5; }

.author-page__heading {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-navy);
        padding: 16px 24px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav a {
        display: block;
        padding: 12px 0;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .single-post__title {
        font-size: 1.8rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 16px;
    }

    .content-area {
        padding: 24px 16px;
    }

    .single-post__header {
        padding: 40px 16px 24px;
    }
}
