/*
Theme Name: EuroMed Café
Theme URI: https://euromedcafe.org
Author: EuroMed Café
Description: Custom WordPress Theme — Mediterranean film, music & culture magazine
Version: 1.0.0
License: Proprietary
Text Domain: euromedcafe
*/

/* ===== Variables ===== */
:root {
    --emc-bg: #1A1A1A;
    --emc-surface: #2A2A2A;
    --emc-primary: #E07040;
    --emc-secondary: #D4C5A9;
    --emc-text: #E8E4DF;
    --emc-text-muted: #9A958F;
    --emc-accent: #4A90A4;
    --emc-border: #3A3A3A;
    --emc-font-heading: 'Playfair Display', serif;
    --emc-font-body: 'DM Sans', sans-serif;
    --emc-max-w: 1200px;
    --emc-narrow: 800px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--emc-font-body);
    background: var(--emc-bg);
    color: var(--emc-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emc-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--emc-secondary); }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--emc-font-heading);
    color: var(--emc-text);
    line-height: 1.2;
    margin-bottom: 0.8rem;
}
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin-bottom: 1rem; }
blockquote {
    font-style: italic;
    color: var(--emc-secondary);
    font-size: 1.05rem;
    border-left: 2px solid var(--emc-primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

/* ===== Layout ===== */
.emc-container {
    max-width: var(--emc-max-w);
    margin: 0 auto;
    padding: 0 2rem;
}
.emc-container--narrow { max-width: var(--emc-narrow); }

/* ===== Header ===== */
.emc-header {
    border-bottom: 1px solid var(--emc-border);
    padding: 1.2rem 0;
}
.emc-header__inner {
    max-width: var(--emc-max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.emc-logo {
    font-family: var(--emc-font-heading);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--emc-text);
    letter-spacing: -0.02em;
    text-decoration: none;
}
.emc-logo:hover { color: var(--emc-text); }
.emc-logo span { color: var(--emc-primary); }

/* Nav */
.emc-nav ul { list-style: none; display: flex; gap: 2rem; }
.emc-nav a {
    color: var(--emc-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.emc-nav a:hover,
.emc-nav .current-menu-item a,
.emc-nav .current_page_item a { color: var(--emc-primary); }
.emc-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--emc-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem;
}

/* ===== Hero ===== */
.emc-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 50%, #2E2018 100%);
}
.emc-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.emc-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    display: block;
}
.emc-hero__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(26,26,26,0.95));
}
.emc-hero__tag {
    display: inline-block;
    background: var(--emc-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    margin-bottom: 1rem;
}
.emc-hero h1 {
    font-size: 3rem;
    max-width: 700px;
    margin-bottom: 0.8rem;
    line-height: 1.15;
}
.emc-hero p {
    color: var(--emc-text-muted);
    font-size: 1.05rem;
    max-width: 550px;
}

/* ===== Editorial Intro ===== */
.emc-editorial {
    margin-bottom: 3.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--emc-border);
}
.emc-editorial__inner {
    max-width: var(--emc-narrow);
    margin: 0 auto;
}
.emc-editorial__heading {
    font-family: var(--emc-font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--emc-secondary);
    margin-bottom: 1.2rem;
    letter-spacing: 0.01em;
}
.emc-editorial__text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--emc-text-muted);
}
.emc-editorial__text p {
    margin-bottom: 1rem;
}
.emc-editorial__text a {
    color: var(--emc-text);
    border-bottom: 1px solid var(--emc-primary);
    transition: color 0.2s, border-color 0.2s;
}
.emc-editorial__text a:hover {
    color: var(--emc-primary);
}
.emc-editorial__link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--emc-primary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ===== Section ===== */
.emc-section { margin-bottom: 3rem; }
.emc-section-title {
    font-family: var(--emc-font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--emc-primary);
    display: inline-block;
}

/* ===== Card Grid ===== */
.emc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.emc-card {
    background: var(--emc-surface);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
}
.emc-card:hover { transform: translateY(-3px); }
.emc-card__image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #3A3020, #2A2A2A);
    display: block;
}
.emc-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emc-card__body { padding: 1.2rem; }
.emc-card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emc-primary);
    margin-bottom: 0.5rem;
}
.emc-card h3 {
    font-family: var(--emc-font-heading);
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.emc-card h3 a { color: var(--emc-text); }
.emc-card h3 a:hover { color: var(--emc-primary); }
.emc-card p {
    font-size: 0.85rem;
    color: var(--emc-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}
.emc-card__meta {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    color: var(--emc-text-muted);
    display: flex;
    gap: 1rem;
}

/* ===== Feature Block ===== */
.emc-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--emc-surface);
    border-left: 4px solid var(--emc-accent);
    border-radius: 4px;
}
.emc-feature__image { border-radius: 4px; overflow: hidden; min-height: 300px; }
.emc-feature__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emc-feature__image a { display: block; height: 100%; }
.emc-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.emc-feature h2 { font-size: 1.8rem; line-height: 1.25; }
.emc-feature h2 a { color: var(--emc-text); text-decoration: none; }
.emc-feature h2 a:hover { color: var(--emc-primary); }

/* ===== Article Header ===== */
.emc-article__header { margin-bottom: 1.5rem; }
.emc-article__topline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.emc-article__tag {
    display: inline-block;
    background: var(--emc-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.7rem;
    border-radius: 2px;
}
.emc-article__date {
    font-size: 0.85rem;
    color: var(--emc-text-muted);
}
.emc-article__title {
    font-size: 2.4rem;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}
.emc-article__featured-image {
    margin-bottom: 2rem;
    border-radius: 4px;
    overflow: hidden;
}
.emc-article__featured-image img { width: 100%; height: auto; display: block; }
.emc-article__content { font-size: 1.05rem; line-height: 1.8; }
.emc-article__content p { margin-bottom: 1.2rem; }
.emc-article__content h2 { margin-top: 2rem; font-size: 1.6rem; }
.emc-article__content h3 { margin-top: 1.5rem; }
.emc-article__content ul,
.emc-article__content ol { margin: 1rem 0 1.5rem 1.5rem; }
.emc-article__content li { margin-bottom: 0.4rem; }
.emc-article__content hr {
    border: none;
    border-top: 1px solid var(--emc-border);
    margin: 2rem 0;
}

/* ===== Interview Subject Card ===== */
.emc-interview-subject {
    background: var(--emc-surface);
    border-left: 4px solid var(--emc-accent);
    border-radius: 4px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
}
.emc-interview-subject__main {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.emc-interview-subject__name {
    font-family: var(--emc-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--emc-text);
}
.emc-interview-subject__role {
    font-size: 0.9rem;
    color: var(--emc-secondary);
}
.emc-interview-subject__details {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: var(--emc-text-muted);
    flex-wrap: wrap;
}
.emc-interview-subject__details span::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--emc-text-muted);
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}
.emc-interview-subject__details span:first-child::before { display: none; }

/* ===== CPT Infocard (Film / Musik) ===== */
.emc-cpt-infocard {
    background: var(--emc-surface);
    border-left: 4px solid var(--emc-primary);
    border-radius: 4px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
}
.emc-cpt-infocard--musik { border-left-color: var(--emc-accent); }
.emc-cpt-infocard__main {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.emc-cpt-infocard__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--emc-text-muted);
}
.emc-cpt-infocard__value {
    font-family: var(--emc-font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--emc-text);
}
.emc-cpt-infocard__details {
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: var(--emc-text-muted);
    flex-wrap: wrap;
}
.emc-cpt-infocard__details span::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--emc-text-muted);
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}
.emc-cpt-infocard__details span:first-child::before { display: none; }
.emc-cpt-infocard__award {
    color: var(--emc-primary);
    font-weight: 600;
}

/* ===== Single (legacy) ===== */
.emc-single { max-width: var(--emc-narrow); margin: 0 auto; padding: 2rem 0 4rem; }
.emc-single__header { margin-bottom: 2rem; }
.emc-single__header h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.emc-single__meta {
    font-size: 0.85rem;
    color: var(--emc-text-muted);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.emc-single__thumbnail { margin-bottom: 2rem; border-radius: 4px; overflow: hidden; }
.emc-single__content { font-size: 1.05rem; line-height: 1.8; }
.emc-single__content p { margin-bottom: 1.2rem; }
.emc-single__content h2 { margin-top: 2rem; font-size: 1.6rem; }
.emc-single__content h3 { margin-top: 1.5rem; }
.emc-single__content ul,
.emc-single__content ol { margin: 1rem 0 1.5rem 1.5rem; }
.emc-single__content li { margin-bottom: 0.4rem; }
.emc-single__footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--emc-border);
}

/* ===== CPT Meta ===== */
.emc-cpt-meta {
    background: var(--emc-surface);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.emc-cpt-meta table { width: 100%; border-collapse: collapse; }
.emc-cpt-meta td {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--emc-border);
    font-size: 0.9rem;
}
.emc-cpt-meta td:first-child {
    font-weight: 700;
    color: var(--emc-primary);
    width: 140px;
}

/* ===== Related Posts ===== */
.emc-related { margin-top: 3rem; }
.emc-related h2 { font-size: 1.4rem; margin-bottom: 1rem; }

/* ===== Archive ===== */
.emc-archive { padding: 2rem 0 4rem; }
.emc-archive__header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--emc-primary);
}
.emc-archive__header h1 { margin-bottom: 0.3rem; }
.emc-archive__desc { color: var(--emc-text-muted); font-size: 0.95rem; }

/* ===== Page ===== */
.emc-page { padding: 2rem 0 4rem; }
.emc-page h1 { margin-bottom: 1.5rem; }
.emc-page__content { font-size: 1.05rem; line-height: 1.8; }
.emc-page__content p { margin-bottom: 1.2rem; }
.emc-page__content h2 { margin-top: 2rem; }
.emc-page__content ul,
.emc-page__content ol { margin: 1rem 0 1.5rem 1.5rem; }

/* ===== Legal ===== */
.emc-legal { padding: 2rem 0 4rem; }
.emc-legal h1 { margin-bottom: 1.5rem; font-size: 2rem; }
.emc-legal__content { font-size: 0.95rem; line-height: 1.8; color: var(--emc-text-muted); }
.emc-legal__content h2 { color: var(--emc-text); margin-top: 2rem; font-size: 1.3rem; }
.emc-legal__content p { margin-bottom: 1rem; }
.emc-legal__updated { margin-top: 2rem; font-size: 0.8rem; color: var(--emc-text-muted); }

/* ===== Pagination ===== */
.emc-pagination { margin-top: 3rem; text-align: center; }
.emc-pagination .nav-links { display: flex; justify-content: center; gap: 0.5rem; }
.emc-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--emc-surface);
    color: var(--emc-text-muted);
    border-radius: 4px;
    font-size: 0.9rem;
}
.emc-pagination .page-numbers.current,
.emc-pagination .page-numbers:hover { background: var(--emc-primary); color: #fff; }

/* ===== Post Nav ===== */
.emc-post-nav { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2rem; }
.emc-post-nav a { color: var(--emc-text-muted); font-size: 0.9rem; }
.emc-post-nav a:hover { color: var(--emc-primary); }

/* ===== 404 ===== */
.emc-404 { text-align: center; padding: 6rem 1rem; }
.emc-404 h1 { font-size: 6rem; color: var(--emc-primary); margin-bottom: 0.5rem; }
.emc-404 h2 { color: var(--emc-text-muted); margin-bottom: 1rem; }
.emc-btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: var(--emc-primary);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 1rem;
}
.emc-btn:hover { background: #c85e30; color: #fff; }

/* ===== Search ===== */
.emc-search-form { display: flex; gap: 0.5rem; margin-top: 1.5rem; justify-content: center; }
.emc-search-form__input {
    padding: 0.5rem 1rem;
    background: var(--emc-surface);
    border: 1px solid var(--emc-border);
    color: var(--emc-text);
    border-radius: 4px;
    font-family: var(--emc-font-body);
    font-size: 0.9rem;
    width: 300px;
}
.emc-search-form__input:focus { outline: none; border-color: var(--emc-primary); }
.emc-search-form__submit {
    padding: 0.5rem 1rem;
    background: var(--emc-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--emc-font-body);
    font-weight: 600;
}

/* ===== Footer ===== */
.emc-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--emc-border);
    padding: 2rem 0;
}
.emc-footer__inner {
    max-width: var(--emc-max-w);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}
.emc-footer__nav { margin-bottom: 1rem; }
.emc-footer__nav ul { list-style: none; display: flex; justify-content: center; gap: 2rem; }
.emc-footer__nav a { color: var(--emc-text-muted); font-size: 0.85rem; }
.emc-footer__nav a:hover { color: var(--emc-primary); }
.emc-footer__copyright { color: var(--emc-text-muted); font-size: 0.85rem; }
.emc-footer__disclaimer {
    margin-top: 0.5rem;
    color: var(--emc-text-muted);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .emc-header__inner { padding: 0 1rem; }
    .emc-nav-toggle { display: block; }
    .emc-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--emc-bg);
        border-bottom: 1px solid var(--emc-border);
        padding: 1rem;
        z-index: 100;
    }
    .emc-nav--open { display: block; }
    .emc-nav ul { flex-direction: column; gap: 0.8rem; text-align: center; }
    .emc-header { position: relative; }
    .emc-hero { min-height: 350px; }
    .emc-hero h1 { font-size: 2rem; }
    .emc-hero__overlay { padding: 2rem 1rem; }
    .emc-card-grid { grid-template-columns: 1fr; }
    .emc-feature { grid-template-columns: 1fr; }
    .emc-container { padding: 0 1rem; }
    h1 { font-size: 1.8rem; }
    .emc-footer__nav ul { flex-direction: column; gap: 0.5rem; }
    .emc-search-form { flex-direction: column; align-items: center; }
    .emc-search-form__input { width: 100%; max-width: 300px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .emc-card-grid { grid-template-columns: repeat(2, 1fr); }
}
