/* Projekteigene Ergänzungen (it-witze.de) */

/* Sterne-Bewertung (nutzt das vorhandene rating_on.gif) */
.post-ratings {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    vertical-align: middle;
}
.post-ratings .star {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/rating_on.gif') no-repeat center center;
    background-size: contain;
}
.post-ratings .star-off {
    opacity: 0.25;
    filter: grayscale(100%);
}
.post-ratings .ratings-text {
    margin-left: 6px;
    font-size: 0.85em;
    color: #666;
}

/* Einzelner Witz: Bewertung unter dem Text etwas Luft geben */
.entry-content + .entry-rating,
.entry-rating {
    margin-top: 12px;
}

/* Listen-Abstand in der Witz-Übersicht */
.posts-loop .entry-summary p {
    margin-top: 0.5em;
}

/* ---- Aktive Kategorie in der Navigation hervorheben ---- */
#menu-kategorien .current-menu-item > a {
    background-color: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 -3px 0 #fff;
    font-weight: 700;
}
.mobile-nav-menu .current-menu-item > a {
    color: #fff;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 3px 0 0 #fff;
}

/* ---- Interaktives Sterne-Voting (Witz-Seite) ---- */
/* Gleiches seitliches Padding wie .entry-content/.entry-header (20px),
   damit Bewerten/Teilen bündig zu Titel und Witztext stehen. */
.rate-widget,
.share-links {
    padding-left: 20px;
    padding-right: 20px;
}
.rate-widget {
    margin: 14px 0;
}
.rate-stars {
    display: inline-flex;
    gap: 2px;
    cursor: pointer;
}
.rate-stars.is-done {
    cursor: default;
}
.rate-stars .rate-star {
    width: 22px;
    height: 22px;
    background: url('../images/rating_on.gif') no-repeat center center;
    background-size: contain;
    opacity: 0.25;
    filter: grayscale(100%);
    transition: opacity 0.1s ease, filter 0.1s ease;
}
.rate-stars .rate-star.is-active {
    opacity: 1;
    filter: none;
}
.rate-info {
    margin-left: 8px;
    font-size: 0.9em;
    color: #666;
}

/* ---- Teilen-Buttons ---- */
.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 14px 0;
}
.share-links .share-label {
    font-weight: 700;
    margin-right: 4px;
}
.share-links a,
.share-links button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f7f7f7;
    color: #3c2201;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    line-height: 1.4;
}
.share-links a:hover,
.share-links button:hover {
    background: #eee;
}

/* ---- Pagination ---- */
.pagination {
    margin: 24px 0;
}
.pagination .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pagination .page-current {
    color: #666;
    font-size: 0.9em;
}
.pagination a {
    display: inline-block;
    padding: 8px 14px;
    background: #3c2201;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}
.pagination a:hover {
    background: rgba(60, 34, 1, 0.85);
}

/* ---- Mehr aus der Kategorie ---- */
.related-jokes {
    margin: 28px 0 8px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}
.related-jokes .related-title {
    font-size: 1.15em;
    margin: 0 0 10px;
}
.related-jokes ul {
    margin: 0 0 10px;
    padding-left: 1.2em;
}
.related-jokes li {
    margin: 4px 0;
}
.related-jokes .related-all {
    margin: 0;
    font-size: 0.95em;
}

/* ---- Zufallswitz auf der Startseite ---- */
.random-feature {
    margin-bottom: 28px;
}
.random-feature .hentry {
    border-left: 4px solid #3c2201;
}
.random-again {
    font-size: 0.72em;
    font-weight: 400;
    white-space: nowrap;
    margin-left: 10px;
}

/* ---- Suche ---- */
.search-form {
    display: flex;
    gap: 6px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.search-form .search-submit {
    padding: 7px 12px;
    border: 0;
    border-radius: 4px;
    background: #3c2201;
    color: #fff;
    cursor: pointer;
}
.search-summary {
    color: #666;
    margin-bottom: 12px;
}
