/* ============================================================
   MOBILMANÓ MŰHELY – DESIGN STÍLUSLAP
   Az eredeti oldal (https://mobilmanomuhely.hu/) kinézetét
   rögzíti, az oldal újraírásakor közvetlenül alkalmazható.
   A HTML szerkezetnek az eredeti osztályneveit kell használnia:
   .site-header, .site-title, .main-navigation, .site-main,
   .hirek-section, .hirek-grid, .hirek-card, .kurzus-section,
   .kurzusok-grid, .kurzus-card, .kapcsolat-section,
   .archive-header, .single-hirek-header, .entry-content,
   .site-footer, .button
   ============================================================ */

/* ===== 1. DESIGN TOKENEK ===== */
:root {
    /* Betűtípusok */
    --font-main: "Nunito", "Comic Sans MS", cursive, sans-serif;
    --font-weight-normal: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Alap színek */
    --color-text: #5a4a42;
    --color-text-muted: #7a6a62;
    --color-white: #ffffff;

    /* Márka színek */
    --color-pink: #FF6B9D;
    --color-orange: #FF8E53;
    --color-yellow: #FFD93D;
    --color-teal: #5fb3b3;

    /* Gradiensek */
    --gradient-page: linear-gradient(135deg, #fff9e6 0%, #e8f5ff 50%, #fff0f5 100%);
    --gradient-header: linear-gradient(135deg, #FF6B9D 0%, #FF8E53 100%);
    --gradient-badge: linear-gradient(135deg, #FFD93D, #FF9F43);
    --gradient-kurzus-bg: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-kapcsolat-bg: linear-gradient(135deg, #ffd89b 0%, #f8b500 100%);
    --gradient-footer: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Árnyékok */
    --shadow-pink-soft: 0 4px 15px rgba(255, 107, 157, 0.3);
    --shadow-pink-card: 0 8px 25px rgba(255, 107, 157, 0.15);
    --shadow-pink-card-hover: 0 15px 35px rgba(255, 107, 157, 0.25);
    --shadow-teal-card: 0 10px 30px rgba(168, 237, 234, 0.3);
    --shadow-teal-card-hover: 0 20px 40px rgba(168, 237, 234, 0.4);
    --shadow-badge-img: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-button: 0 4px 15px rgba(255, 107, 157, 0.3);
    --shadow-button-hover: 0 8px 25px rgba(255, 107, 157, 0.4);

    /* Kerekítések */
    --radius-pill: 20px;
    --radius-badge: 15px;
    --radius-card-kurzus: 25px;
    --radius-section: 30px;

    /* Elrendezés */
    --container-max-width: 1200px;
}

/* ===== 2. ALAPOK ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-weight: var(--font-weight-normal);
    background: var(--gradient-page);
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
}

a {
    color: var(--color-orange);
    text-decoration: none;
}

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

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

.site-main {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem 20px;
}

/* Tartalmi szövegek */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: var(--color-pink);
}

/* ===== 3. FEJLÉC ÉS NAVIGÁCIÓ ===== */
.site-header {
    background: var(--gradient-header);
    padding: 1rem 0;
    box-shadow: var(--shadow-pink-soft);
}

.site-title {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.site-title a {
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.main-navigation a {
    color: var(--color-white);
    font-weight: var(--font-weight-semibold);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    margin: 0 0.25rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
    color: var(--color-white);
}

/* ===== 4. HÍREK ===== */
.hirek-section {
    margin: 3rem 0 1.5rem;
    padding-bottom: 1rem;
}

.hirek-section h2 {
    color: var(--color-pink);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.hirek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.hirek-card {
    border: none;
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-pink-card);
    transition: all 0.3s ease;
}

.hirek-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow-pink-card-hover);
}

.hirek-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hirek-card-content {
    padding: 1.5rem;
}

.hirek-card h3 {
    color: var(--color-pink);
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.hirek-card h3 a {
    color: var(--color-pink);
}

.hirek-card .date {
    background: var(--gradient-badge);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-badge);
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.hirek-card .excerpt {
    color: var(--color-text-muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Egy hír oldala */
.single-hirek-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.single-hirek-header h1 {
    color: var(--color-pink);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.single-hirek-header .meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ===== 5. KURZUSOK ===== */
.kurzus-section {
    background: var(--gradient-kurzus-bg);
    padding: 2rem;
    border-radius: var(--radius-section);
    margin: 1rem auto;
    max-width: var(--container-max-width);
}

.kurzus-section h2 {
    color: var(--color-pink);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.kurzusok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.kurzus-card {
    border: none;
    border-radius: var(--radius-card-kurzus);
    background: var(--color-white);
    box-shadow: var(--shadow-teal-card);
    transition: all 0.3s ease;
}

.kurzus-card:hover {
    transform: translateY(-10px) rotate(-1deg) scale(1.02);
    box-shadow: var(--shadow-teal-card-hover);
}

.kurzus-badge-img {
    float: right;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 12px;
    margin-bottom: 10px;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow-badge-img);
}

.kurzus-card-content {
    padding: 1.5rem;
    overflow: hidden;
}

.kurzus-card-content::after {
    content: "";
    display: table;
    clear: both;
}

.kurzus-card h3 {
    color: var(--color-teal);
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
}

.kurzus-card h3 a {
    color: var(--color-teal);
}

.kurzus-duration {
    display: inline-block;
    background: var(--gradient-header);
    color: var(--color-white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-pink-soft);
}

.kurzus-card-content .kurzus-duration {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
}

.kurzus-card .excerpt {
    color: var(--color-text-muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Kurzus lista / archívum fejléc */
.archive-header,
.kurzus-archive-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.archive-header h1,
.kurzus-archive-header h1 {
    color: var(--color-pink);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Egy kurzus oldala */
.single-kurzus-header h1 {
    color: var(--color-pink);
    font-size: 2.5rem;
}

/* ===== 6. KAPCSOLAT SZAKASZ ÉS ŰRLAP ===== */
.kapcsolat-section {
    background: var(--gradient-kapcsolat-bg);
    padding: 3rem;
    margin: 3rem 0;
    border-radius: var(--radius-section);
    text-align: center;
}

.kapcsolat-section h2 {
    color: var(--color-white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 3px solid var(--color-white);
    border-radius: var(--radius-badge);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.3);
}

.button,
.button-submit {
    background: var(--gradient-header);
    color: var(--color-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-card-kurzus);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
}

.button:hover,
.button-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
    color: var(--color-white);
}

/* WordPress Contact Form 7 kompatibilitás (ha marad WP) */
.wpcf7-form input,
.wpcf7-form textarea {
    width: 100%;
    padding: 1rem;
    border: 3px solid var(--color-white);
    border-radius: var(--radius-badge);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-family: inherit;
}

.wpcf7-form input[type="submit"] {
    background: var(--gradient-header);
    color: var(--color-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-card-kurzus);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
}

/* Információs doboz a kurzusoldalak alján */
.info-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

/* Előző/következő kurzus navigáció */
.post-navigation {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hír oldalak egyszerű navigációja (eredeti: felülvonal nélkül, egymás alatt) */
.post-navigation.nav-simple {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ===== 7. LÁBLÉC ===== */
.site-footer {
    background: var(--gradient-footer);
    color: var(--color-white);
    padding: 3rem 0;
    margin-top: 4rem;
    text-align: center;
}

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

/* ===== 8. LAPOZÓ ===== */
.pagination a,
.page-numbers {
    background: var(--gradient-header);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-badge);
    margin: 0 0.25rem;
    display: inline-block;
}

/* ===== 9. EMOJI IKONOK ===== */
.emoji,
img.wp-smiley {
    display: inline !important;
    width: 1.5em;
    height: 1.5em;
    vertical-align: -0.25em;
}

/* ===== 10. MOBIL NÉZET ===== */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
    }

    .site-title {
        margin-bottom: 0.5rem;
    }

    .site-title a {
        font-size: 1.4rem;
    }

    .main-navigation ul {
        justify-content: center;
        gap: 0.25rem;
    }

    .main-navigation a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        margin: 0.15rem;
    }

    .hirek-grid,
    .kurzusok-grid {
        grid-template-columns: 1fr;
    }

    .hirek-section,
    .kurzus-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .single-hirek-header h1,
    .single-kurzus-header h1,
    .archive-header h1,
    .kurzus-archive-header h1 {
        font-size: 1.8rem;
    }
}
