/*
Theme Name: Goldens Heart
Theme URI: https://goldensheart.cz/
Author: Webess
Author URI: https://webess.cz/
Description: Věrná replikace původní Joomla šablony goldens_heart (chovatelská stanice zlatého retrívra) pro WordPress. Zelená paleta, hero fotka retrieverů, skript logo.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: goldensheart
*/

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { height: 100%; }

body {
    margin: 0;
    padding: 0;
    background: #E2F0B1 url('images/page.jpeg') top center no-repeat scroll;
    background-attachment: scroll;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}

a { color: #98C91D; text-decoration: none; }
a:hover { color: #59612E; text-decoration: underline; }

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

/* ---------- Sheet (central white area) ---------- */
.gh-sheet {
    width: 980px;
    max-width: 96%;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 0 0 40px 40px;
    position: relative;
    box-shadow: none;
}

/* ---------- Header ---------- */
.gh-header {
    position: relative;
    height: 433px;
    background: url('images/header.jpg') center top no-repeat;
    background-size: cover;
    border-radius: 0 0 0 0;
}

/* language switch top-left */
.gh-langs {
    position: absolute;
    top: 10px;
    left: -1px;
    z-index: 120;
    display: flex;
    gap: 6px;
}
.gh-langs a { display: inline-block; line-height: 0; opacity: .85; }
.gh-langs a:hover { opacity: 1; }
.gh-langs img { width: 28px; height: auto; border: 1px solid rgba(255,255,255,.6); border-radius: 2px; }
.gh-langs a.gh-active img { border-color: #59612E; opacity: 1; }

/* ---------- Navigation (matches Joomla art-hmenu: floating links, no box) ---------- */
.gh-nav {
    margin: -49px auto 0;
    position: relative;
    z-index: 499;
    text-align: center;
}
.gh-menu {
    display: inline-block;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    vertical-align: bottom;
}
.gh-menu > li {
    position: relative;
    display: block;
    float: left;
    margin: 0 0 0 11px;
}
.gh-menu > li:first-child { margin-left: 5px; }
.gh-menu > li:last-child { margin-right: 5px; }

/* image separator between top-level items (subtle, like Joomla menuseparator.png) */
.gh-menu > li::before {
    content: "";
    position: absolute;
    top: 0;
    left: -11px;
    width: 11px;
    height: 38px;
    background: url('images/menuseparator.png') center center no-repeat;
}
.gh-menu > li:first-child::before { display: none; }

.gh-menu > li > a {
    display: block;
    height: 38px;
    line-height: 38px;
    padding: 0 22px;
    border-radius: 3px;
    color: #FFFFFF;
    font-family: 'Palatino Linotype', Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 0 6px rgb(89, 97, 46);
    cursor: pointer;
}
.gh-menu > li > a:hover,
.gh-menu > li:hover > a {
    color: #59612E;
    text-decoration: none;
    background: none;
}
.gh-menu > li.current-menu-item > a,
.gh-menu > li.current-menu-ancestor > a,
.gh-menu > li.current_page_item > a {
    color: #FFFFFF;
    text-decoration: none;
    background: none;
}

/* ---------- Sub-menus (matches Joomla dropdown: green gradient, light hover) ---------- */
.gh-menu ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 9em;
    margin: 0;
    padding: 4px;
    list-style: none;
    z-index: 600;
    text-align: left;
    background: #D5E98B;
    border: 1px solid #9EB643;
    border-radius: 3px;
}
.gh-menu li:hover > ul.sub-menu { display: block; }
.gh-menu ul.sub-menu li {
    float: none;
    display: block;
    width: auto;
    margin: 2px 0;
}
.gh-menu ul.sub-menu li::before { display: none; }
.gh-menu ul.sub-menu a {
    display: block;
    height: 23px;
    line-height: 23px;
    min-width: 7em;
    padding: 0 10px;
    margin: 0;
    border: 1px solid #9EB643;
    border-radius: 3px;
    background: linear-gradient(to bottom, #B0C563 0%, #A5BD4C 50%, #8AA03B 50%, #9EB643 100%);
    color: #FFFFFF;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 12px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
    white-space: nowrap;
    text-shadow: none;
}
.gh-menu ul.sub-menu a:hover {
    background: linear-gradient(to bottom, #EFF7D4 0%, #E7F3BF 50%, #DDEDA1 50%, #E3F0B2 100%);
    border-color: #E2F0B1;
    color: #59612E;
}
/* third level (fly-out to the right) */
.gh-menu ul.sub-menu ul.sub-menu {
    top: 0;
    left: 100%;
}

/* ---------- Content ---------- */
.gh-content {
    padding: 30px 48px 40px;
}
.gh-page-title {
    text-align: center;
    color: #C6D98A;
    font-family: 'Palatino Linotype', Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: normal;
    font-size: 30px;
    margin: 6px 0 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #E1EFAE;
}
.gh-content h1,
.gh-content h2,
.gh-entry-title {
    color: #98C91D;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: normal;
}
.gh-entry-title { font-size: 18px; margin: 5px 0 6px; }
.gh-entry-title a { color: #98C91D; }
.gh-entry-title a:hover { color: #59612E; text-decoration: none; }

.gh-entry {
    margin-bottom: 42px;
    padding-bottom: 22px;
    border-bottom: 1px dashed #E1EFAE;
}
.gh-entry:last-child { border-bottom: none; }
.gh-entry-meta { color: #A3BC49; font-size: 12px; margin-bottom: 12px; font-style: italic; }
.gh-entry-content { font-size: 15px; color: #444; }
.gh-entry-content p { margin: 0 0 1em; }
.gh-entry-content img { margin: 4px; }
.gh-entry-content a { color: #98C91D; }
.gh-entry-content a:hover { color: #59612E; }

/* galleries / image grids */
.gh-entry-content .wp-block-gallery,
.gh-entry-content .gallery { display: flex; flex-wrap: wrap; gap: 10px; }

.gh-readmore {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: linear-gradient(to bottom, #ACC25B, #9EB643);
    color: #fff;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
}
.gh-readmore:hover { color: #FFF7D0; text-decoration: none; }

/* ---------- Footer ---------- */
.gh-footer {
    padding: 22px 48px 30px;
    text-align: center;
    color: #7d8a4f;
    font-size: 12px;
    border-top: 1px solid #E9F4C3;
}
.gh-footer a { color: #8DA43D; }

/* ---------- Pagination ---------- */
.gh-pagination { text-align: center; margin: 24px 0 10px; }
.gh-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    background: #EFF7D4;
    color: #59612E;
    border-radius: 4px;
}
.gh-pagination .page-numbers.current,
.gh-pagination .page-numbers:hover { background: #9EB643; color: #fff; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .gh-sheet { width: 100%; border-radius: 0; }
    .gh-header { height: 260px; }
    .gh-content, .gh-footer { padding-left: 20px; padding-right: 20px; }
    .gh-menu > li > a { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 600px) {
    .gh-header { height: 170px; }
    .gh-nav { margin-top: -28px; }
    .gh-menu { display: block; }
    .gh-menu > li { float: none; display: block; margin: 0; }
    .gh-menu > li::before { display: none; }
    .gh-menu > li > a { text-align: center; }
    .gh-menu ul.sub-menu { position: static; }
    .gh-page-title { font-size: 22px; }
}
