/* assets/css/radiate-style.css - Šablona Radiate pro filosofie-uspechu.cz */

/* Základní reset a box-sizing */
html {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    color: #444;
    background-color: #EAEAEA;
    line-height: 1.7;
    font-size: 16px;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    background-color: #EAEAEA;
}

/* Typografie */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Source Sans Pro', 'Merriweather', sans-serif;
    color: #222;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.2em 0 0.5em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    clear: both;
}

h1 {
    font-size: 2.1rem;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1.5em;
}

a {
    color: #632E9B;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #551487;
    text-decoration: underline;
}

/* Horní parallax pozadí */
#parallax-bg {
    background-image: url('../images/pozadi-iq-testy-prijimacky.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: scroll;
    background-size: auto 196px;
    height: 196px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

@media (min-width: 1500px) {
    #parallax-bg {
        background-size: 100% 100%;
    }
}

/* Hlavní kontejner stránky */
#page {
    position: relative;
    z-index: 2;
    max-width: 1218px;
    margin: 0 auto;
}

/* Hlavička */
#masthead {
    margin-bottom: 1px;
    padding-top: 25px;
    position: relative;
}

.header-wrap {
    background: rgba(255, 255, 255, 0.60);
    /* Průhlednost pozadí: 10% průhlednost / 90% krytí */
    padding: 20px 30px 0;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(1px);
    /* Jemné rozostření kresby pod hlavičkou pro perfektní čitelnost textu */
}

.header-wrap:after {
    content: "";
    display: table;
    clear: both;
}

.site-branding {
    float: left;
    margin-bottom: 20px;
}

.site-title {
    margin: 0;
    font-size: 2.2rem;
    font-family: 'Merriweather', serif;
    display: flex;
    align-items: center;
}

.site-title img {
    margin-right: 15px;
    border-radius: 4px;
}

.site-title a {
    color: #161616;
}

.site-title a:hover {
    text-decoration: none;
}

.site-description {
    margin: 6px 0 0;
    color: #777;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 4px;
    border-radius: 3px;
    display: inline-block;
}

/* Vyhledávání v hlavičce */
.header-search-icon {
    float: right;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 15px;
    color: #666;
}

.search-form {
    float: right;
    margin-top: 10px;
    display: flex;
}

.search-form input[type="search"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px 0 0 3px;
    font-size: 14px;
    outline: none;
}

.search-form .search-submit {
    background: #632E9B;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.search-form .search-submit:hover {
    background: #551487;
}

/* Hlavní menu */
.main-navigation {
    clear: both;
    background: #161616;
    margin: 0 -30px;
    padding: 0 20px;
    border-top: 3px solid #632E9B;
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 14px 18px;
    color: #ffffff;
    font-family: 'Merriweather', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
}

.main-navigation a:hover,
.main-navigation .current_page_item>a,
.main-navigation .current-menu-item>a {
    background: #551487;
    color: #ffffff;
    text-decoration: none;
}

/* Rozbalovací podmenu (dropdown) */
.main-navigation ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #161616;
    min-width: 210px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 999;
    flex-direction: column;
    flex-wrap: nowrap;
    border-top: 2px solid #632E9B;
}

.main-navigation li:hover > ul.sub-menu {
    display: flex;
}

.main-navigation ul.sub-menu li {
    width: 100%;
}

.main-navigation ul.sub-menu a {
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.88rem;
    white-space: nowrap;
}

.main-navigation ul.sub-menu li:last-child a {
    border-bottom: none;
}

/* Obsah a rozložení mřížky */
.site-content {
    background: rgba(255, 255, 255, 0.50);
}

.content-area {
    margin-top: 0;
}

.content-area > .site-main,
.content-area > .site-main > article:first-child {
    margin-top: 0;
}

.inner-wrap {
    max-width: 1218px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    box-sizing: border-box;
}

#primary {
    flex: 1 1 68%;
    min-width: 0;
    width: auto;
}

#secondary {
    flex: 0 0 340px;
    width: 340px;
    max-width: 100%;
}

/* Když je #secondary mimo .inner-wrap (zobrazen pod hlavním blokem), zobrazit widgety vedle sebe */
:not(.inner-wrap) > #secondary {
    width: 100%;
    max-width: 1218px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

:not(.inner-wrap) > #secondary > .widget:not(.mobile-search-widget) {
    flex: 1 1 calc(50% - 15px);
    min-width: 280px;
    box-sizing: border-box;
}

/* Články a bílé karty */
article.hentry,
.widget {
    background: #ffffff;
    padding: 35px 40px;
    margin-bottom: 30px;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.entry-header {
    margin-bottom: 25px;
}

.entry-title {
    margin: 0 0 12px;
    font-size: 2rem;
}

.entry-title a {
    color: #161616;
}

.entry-meta {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 20px;
}

.entry-meta a {
    color: #888;
}

.entry-content,
.entry-summary {
    font-size: 1.05rem;
    color: #333;
}

article.hentry img,
.entry-content img,
.entry-summary img {
    max-width: 100%;
    height: auto;
}

/* Obrázky a WP zarovnání */
img.alignleft,
.wp-caption.alignleft {
    float: left;
    margin: 6px 24px 18px 0;
}

img.alignright,
.wp-caption.alignright {
    float: right;
    margin: 6px 0 18px 24px;
}

img.aligncenter,
.wp-caption.aligncenter {
    display: block;
    margin: 20px auto;
    text-align: center;
}

.wp-caption {
    background: #fdfdfd;
    border: 1px solid #e5e5e5;
    padding: 8px;
    box-sizing: border-box;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 6px;
}

/* Vlastní třídy webu (contGama, rowGama, media-textGama) */
.contGama {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.rowGama {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 12px;
    background-color: #e0f2f1;
    padding: 12px 16px;
    border-radius: 4px;
}

.rowGama img {
    width: 75px;
    min-width: 50px;
    margin-right: 15px;
}

.contGama2 a {
    font-size: 1.15rem;
    color: #004d40;
}

.contGama2 p {
    margin: 4px 0 0;
    font-size: 0.95rem;
}

.media-textGama {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 24px;
}

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

.media-textGama__content {
    flex-grow: 1;
    padding-left: 20px;
}

/* Widgety v pravém sloupci */
.widget {
    padding: 25px 30px;
}

.widget-title {
    font-size: 1.25rem;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #632E9B;
    color: #161616;
}

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

.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #444;
}

.widget a:hover {
    color: #632E9B;
}

/* Patička */
.site-footer {
    background: #161616;
    color: #aaa;
    text-align: center;
    padding: 25px 20px;
    margin-top: 1px;
    font-size: 0.9rem;
}

/* Komentáře */
.comments-area {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}

.comment-list ol.children {
    list-style: none;
    padding-left: 35px;
}

.comment-body {
    background: #fbfbfb;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #632E9B;
    padding: 18px 22px;
    margin-bottom: 18px;
    border-radius: 0 4px 4px 0;
}

.comment.bypostauthor .comment-body {
    border-left-color: #27ae60;
    background: #f6fcf8;
}

.author-badge {
    background: #27ae60;
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 6px;
}

.avatar-circle {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: #632E9B;
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    font-weight: bold;
}

.avatar-admin {
    background: #27ae60;
}

.comment-metadata {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.comment-form-row {
    display: flex;
    gap: 20px;
}

.comment-form-row p {
    flex: 1;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.comment-form input[type="submit"] {
    background: #632E9B;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.comment-form input[type="submit"]:hover {
    background: #551487;
}

.comment-alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.comment-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.comment-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobilní vyhledávání v sidebaru: na desktopu skryté */
.mobile-search-widget {
    display: none;
}

/* Responsivita */
@media (max-width: 900px) {
    /* Přemístění vyhledávání na mobilních zařízeních: v hlavičce skrýt, nad Doporučené zobrazit */
    .header-wrap .search-form,
    .header-wrap .header-search-icon {
        display: none !important;
    }

    .mobile-search-widget {
        display: block;
        padding: 18px 20px;
        margin-bottom: 25px;
    }

    .mobile-search-widget .search-form {
        float: none;
        display: flex;
        width: 100%;
        margin-top: 0;
    }

    .mobile-search-widget .search-form label {
        flex: 1;
        display: flex;
        margin: 0;
    }

    .mobile-search-widget .search-form input[type="search"] {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #ccc;
        border-right: none;
        border-radius: 4px 0 0 4px;
        padding: 10px 14px;
        font-size: 15px;
    }

    .mobile-search-widget .search-form .search-submit {
        border-radius: 0 4px 4px 0;
        padding: 10px 18px;
        font-size: 15px;
        white-space: nowrap;
    }

    .inner-wrap {
        flex-direction: column;
        gap: 20px;
    }

    #primary,
    #secondary {
        width: 100%;
        flex: 1 1 100%;
    }

    :not(.inner-wrap) > #secondary {
        flex-direction: column;
        gap: 0;
    }

    :not(.inner-wrap) > #secondary > .widget {
        width: 100%;
        flex: 1 1 100%;
    }

    .media-textGama {
        flex-direction: column;
    }

    .media-textGama__content {
        padding-left: 0;
        padding-top: 15px;
    }

    .rowGama {
        flex-direction: column;
        text-align: center;
    }

    .rowGama img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .comment-form-row {
        flex-direction: column;
        gap: 0;
    }
}