/* Flavory kit additions for AceCMS: server-rendered form feedback, honeypot,
   pagination, and a couple of fixes the WP theme handled with plugin markup. */

.form-status {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 14px;
}

.form-status.success_message,
.success_message {
    background: #eaf6ea;
    border-left: 4px solid #4c9a4c;
    color: #2f6b2f;
    padding: 12px 16px;
    border-radius: 3px;
}

.form-status.error_message,
.error_message {
    background: #fdecea;
    border-left: 4px solid #e25111;
    color: #a3301a;
    padding: 12px 16px;
    border-radius: 3px;
}

.form-error {
    display: block;
    margin-top: 6px;
    color: #e25111;
    font-size: 13px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Laravel paginator markup inside the theme's pagination styling. */
.pagination-theme .page-item.disabled .page-link,
.pagination-theme .page-item.disabled span {
    opacity: .45;
    cursor: not-allowed;
}

.pagination-theme .page-item.active .page-link {
    background: #e25111;
    border-color: #e25111;
    color: #fff;
}

/* Trending gallery: keep a stable tile height when images differ in ratio. */
.home-gallery .item-container .image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.feature-img img {
    margin: 0 auto;
    max-height: 90px;
    width: auto;
}

.no_record_found {
    padding: 30px 0;
    font-size: 16px;
}

.image_source p {
    font-size: 12px;
    color: #888;
}

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

/* Flavory Food & Living - Recipe Article Typography */
.entry-content p,
.post-content p,
.recipe-body p {
    line-height: 1.8;
    margin-top: 0;
    margin-bottom: 18px;
}

.entry-content h2,
.post-content h2,
.recipe-body h2 {
    margin-top: 38px !important;
    margin-bottom: 16px !important;
    line-height: 1.35;
}

.entry-content h3,
.post-content h3,
.recipe-body h3 {
    margin-top: 28px !important;
    margin-bottom: 12px !important;
    line-height: 1.4;
}

.entry-content h4,
.post-content h4,
.recipe-body h4 {
    margin-top: 22px !important;
    margin-bottom: 10px !important;
    line-height: 1.4;
}

.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol,
.recipe-body ul,
.recipe-body ol {
    margin-top: 8px;
    margin-bottom: 22px;
    padding-left: 28px;
}

.entry-content li,
.post-content li,
.recipe-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.entry-content > h2:first-child,
.post-content > h2:first-child,
.recipe-body > h2:first-child {
    margin-top: 12px !important;
}

/* Recipe star rating (post detail, under the date row). */
.recipe-rating {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 4px 0 18px;
    font-size: 13px;
    color: #666;
}

.recipe-rating-label {
    font-weight: 600;
    color: #444;
}

.recipe-rating-stars {
    display: inline-flex;
    gap: 2px;
}

.recipe-rating-star {
    appearance: none;
    background: none;
    border: 0;
    padding: 0 1px;
    margin: 0;
    color: #d0d0d0;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.recipe-rating-star.is-on,
.recipe-rating:not(.is-locked) .recipe-rating-star:hover,
.recipe-rating:not(.is-locked) .recipe-rating-star.is-hover {
    color: #e25111;
}

.recipe-rating.is-locked .recipe-rating-star {
    cursor: default;
}

.recipe-rating-meta {
    color: #888;
}

.recipe-rating-status {
    width: 100%;
    color: #2f6b2f;
    font-size: 12px;
}

.recipe-rating-status.is-error {
    color: #a3301a;
}
