/* ============================================================
   CLA SEO — Front-end Styles
   Botones sociales, newsletter, ads, rating
============================================================ */

/* ── AD PLACEHOLDERS (modo prueba) ── */
.cla-ad-placeholder {
    background: repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 10px, #ebebeb 10px, #ebebeb 20px);
    border: 2px dashed #C5B8A8;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: #7A6A5A;
    font-family: Georgia, serif;
    margin: 1.5rem 0;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.cla-ad-placeholder span { font-weight: 700; font-size: 0.9rem; }
.cla-ad-placeholder small { font-size: 0.75rem; opacity: 0.7; }
.cla-ad-wrapper { margin: 1.5rem 0; text-align: center; }

/* ── SHARE BAR ── */
.cla-share-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: white;
    border-radius: 40px;
    padding: 12px 8px;
    box-shadow: 0 4px 24px rgba(92,61,46,0.12);
    border: 1px solid #F5E8D0;
}

.cla-share-bar__label {
    font-family: Georgia, serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #C5B8A8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin: 0 0 4px;
}

.cla-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--share-color, #ccc);
    color: white !important;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cla-share-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cla-share-btn__label {
    position: absolute;
    left: calc(100% + 8px);
    background: #5C3D2E;
    color: white;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-family: Georgia, serif;
}

.cla-share-btn:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.cla-share-btn:hover .cla-share-btn__label { opacity: 1; }

.cla-share-count {
    text-align: center;
    padding: 0.5rem;
    font-family: Georgia, serif;
    font-size: 0.85rem;
    color: #7A6A5A;
    font-style: italic;
}

/* Mobile: share bar horizontal bottom */
@media (max-width: 768px) {
    .cla-share-bar {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        border-radius: 16px 16px 0 0;
        padding: 10px 16px;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 -4px 24px rgba(92,61,46,0.12);
    }
    .cla-share-bar__label { writing-mode: horizontal-tb; margin: 0; }
    .cla-share-btn__label { display: none; }
    .cla-share-btn { width: 44px; height: 44px; }
    body { padding-bottom: 80px; }
}

/* ── NEWSLETTER ── */
.cla-newsletter {
    border-radius: 20px;
    text-align: center;
    padding: 2rem;
}

.cla-newsletter--card {
    background: linear-gradient(135deg, #FDF6EC, #F5E8D0);
    border: 2px solid #EDD9B8;
    box-shadow: 0 4px 24px rgba(92,61,46,0.08);
}

.cla-newsletter--inline {
    background: none;
    padding: 1rem 0;
}

.cla-newsletter__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }

.cla-newsletter__title {
    font-family: 'Dancing Script', cursive, Georgia, serif;
    font-size: 1.8rem;
    color: #C4714B;
    margin: 0 0 0.5rem;
}

.cla-newsletter__text {
    font-family: Georgia, serif;
    font-style: italic;
    color: #7A6A5A;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.cla-newsletter__fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cla-newsletter__fields input {
    padding: 0.75rem 1rem;
    border: 2px solid #EDD9B8;
    border-radius: 99px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    text-align: center;
    background: white;
    color: #5C3D2E;
    outline: none;
    transition: border-color 0.2s;
}

.cla-newsletter__fields input:focus { border-color: #C4714B; }

.cla-newsletter__btn {
    width: 100%;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
}

.cla-newsletter__legal {
    font-size: 0.72rem;
    color: #C5B8A8;
    margin-top: 0.5rem;
    font-style: italic;
}

.cla-newsletter__success p,
.cla-newsletter__error p {
    padding: 1rem;
    border-radius: 12px;
    font-family: Georgia, serif;
}

.cla-newsletter__success p { background: #E8F5E9; color: #2E7D32; }
.cla-newsletter__error p   { background: #FFEBEE; color: #C62828; }

/* ── RATING STARS ── */
.cla-rating-widget {
    text-align: center;
    padding: 1.5rem;
    background: #FFFDF8;
    border: 2px solid #F5E8D0;
    border-radius: 16px;
    margin: 2rem 0;
}

.cla-rating-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: #5C3D2E;
    margin-bottom: 0.75rem;
}

.cla-stars-input {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-direction: row-reverse;
    cursor: pointer;
}

.cla-star {
    font-size: 2rem;
    color: #C5B8A8;
    transition: color 0.15s, transform 0.15s;
    line-height: 1;
}

.cla-stars-input:hover .cla-star { color: #C49A2C; transform: scale(1.1); }
.cla-stars-input .cla-star:hover ~ .cla-star { color: #C49A2C; }
.cla-stars-input .cla-star:hover { color: #C49A2C; }
.cla-stars-input .cla-star.selected { color: #C49A2C; }

.cla-rating-summary {
    font-family: Georgia, serif;
    font-size: 0.9rem;
    color: #7A6A5A;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ── GUARDAR RECETA ── */
.cla-save-recipe {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
}

/* ── RELATED RECIPES ── */
.cla-related-recipes a:hover img {
    transform: scale(1.05);
}

/* ── HELLO BAR ── */
#cla-hello-bar {
    animation: slideDown 0.4s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* ── EXIT POPUP ── */
#cla-exit-popup { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
