/**
 * @file: recipe-footer.css
 * @description: Стилі для footer блоку під рецептом (UX-3)
 * @created: 2025-11-30
 * @version: 1.0.0
 */

/* ===== FOOTER CONTAINER ===== */
.gotuimo-recipe-footer {
    margin: 40px 0;
    padding: 0;
}

/* ===== RECOMMENDED SECTION ===== */
.gotuimo-recommended-section {
    background: var(--bb-content-background-color, #fff);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gotuimo-recommended-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 24px 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--bb-headings-color, #333);
    text-align: center;
}

.gotuimo-recommended-title i {
    color: #e74c3c !important;
    font-size: 1.5rem;
}

/* Grid: 2 columns */
.gotuimo-recommended-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.gotuimo-recommended-column {
    display: flex;
    flex-direction: column;
}

.gotuimo-recommended-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bb-headings-color, #555);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bb-content-border-color, #eee);
}

.gotuimo-recommended-subtitle i {
    color: #e74c3c !important;
}

/* Всі іконки в рекомендаціях - червоні */
.gotuimo-recommended-section i,
.gotuimo-recommended-section .bb-icon-l,
.gotuimo-recommended-title i,
.gotuimo-recommended-meta i {
    color: #e74c3c !important;
}

/* Recipe cards */
.gotuimo-recommended-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gotuimo-recommended-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bb-content-alternate-background-color, #f9f9f9);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gotuimo-recommended-card:hover {
    background: var(--bb-content-background-color, #fff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gotuimo-recommended-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.gotuimo-recommended-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bb-content-border-color, #eee);
    border-radius: 6px;
    flex-shrink: 0;
}

.gotuimo-recommended-placeholder i {
    font-size: 1.5rem;
    color: var(--bb-alternate-text-color, #999);
}

.gotuimo-recommended-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.gotuimo-recommended-name {
    font-weight: 500;
    color: var(--bb-headings-color, #333);
    font-size: 0.95rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gotuimo-recommended-card:hover .gotuimo-recommended-name {
    color: var(--bb-primary-color, #e74c3c);
}

.gotuimo-recommended-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--bb-alternate-text-color, #888);
}

.gotuimo-recommended-meta i {
    font-size: 0.85rem;
}

/* ===== FOOTER CTA SECTION (Sidebar Style) ===== */
.gotuimo-footer-cta {
    margin-top: 20px;
}

.gotuimo-footer-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Footer widget в стилі sidebar */
.gotuimo-footer-widget {
    background: var(--bb-content-background-color, #fff);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px;
    transition: box-shadow 0.2s ease;
    border-left: 4px solid #e74c3c !important;
}

.gotuimo-footer-widget:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.gotuimo-footer-widget .cta-block {
    text-align: center;
}

.gotuimo-footer-widget .cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-bottom: 8px;
}

.gotuimo-footer-widget .cta-icon i {
    font-size: 2rem;
    color: #e74c3c !important;
    line-height: 1;
}

.gotuimo-footer-widget .cta-title {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bb-headings-color, #333);
    text-align: center;
}

.gotuimo-footer-widget .cta-text {
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    color: var(--bb-alternate-text-color, #666);
    line-height: 1.4;
    text-align: center;
}

.gotuimo-footer-widget .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    background: #e74c3c !important;
    color: #fff !important;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gotuimo-footer-widget .cta-button:hover {
    background: #d63031 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Приховати старий текст "Залиште свій коментар" з контенту */
.gotuimo-after-recipe {
    display: none !important;
}

/* ===== RECIPE NAVIGATION (Попередній/Наступний) ===== */
.post-navigation,
.navigation.post-navigation {
    margin: 30px 0;
    padding: 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    background: var(--bb-content-background-color, #fff);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 0;
    overflow: hidden;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 100%;
}

.post-navigation .nav-previous {
    border-right: 1px solid var(--bb-content-border-color, #eee);
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    width: 100%;
    text-decoration: none;
    transition: background 0.2s ease;
    min-height: 100%;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    background: var(--bb-content-alternate-background-color, #f9f9f9);
}

.post-navigation .nav-next a {
    flex-direction: row;
    text-align: right;
    justify-content: flex-end;
}

.post-navigation .nav-previous a::before,
.post-navigation .nav-next a::after {
    font-size: 1.8rem;
    color: #e74c3c;
    flex-shrink: 0;
    font-weight: 300;
    line-height: 1;
    margin-top: 2px;
}

.post-navigation .nav-previous a::before {
    content: '←';
}

.post-navigation .nav-next a::after {
    content: '→';
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--bb-alternate-text-color, #888);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bb-headings-color, #333);
    line-height: 1.3;
}

/* Контейнер для тексту - завжди в стовпчик */
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    flex-wrap: wrap;
}

.post-navigation .nav-previous .meta-nav,
.post-navigation .nav-previous .nav-subtitle,
.post-navigation .nav-next .meta-nav,
.post-navigation .nav-next .nav-subtitle {
    width: 100%;
    display: block;
}

.post-navigation .nav-previous .post-title,
.post-navigation .nav-previous .nav-title,
.post-navigation .nav-next .post-title,
.post-navigation .nav-next .nav-title {
    width: 100%;
    display: block;
}

.post-navigation .nav-next .meta-nav,
.post-navigation .nav-next .nav-subtitle {
    text-align: right;
}

.post-navigation .nav-next .post-title,
.post-navigation .nav-next .nav-title {
    text-align: right;
}

/* Стрілка справа вгорі */
.post-navigation .nav-next a::after {
    order: -1;
    align-self: flex-start;
}

.post-navigation .nav-previous a:hover .nav-title,
.post-navigation .nav-next a:hover .nav-title {
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 576px) {
    .post-navigation .nav-links {
        flex-direction: column;
        gap: 0;
    }
    
    .post-navigation .nav-previous {
        border-right: none;
        border-bottom: 1px solid var(--bb-content-border-color, #eee);
    }
    
    .post-navigation .nav-next a {
        flex-direction: row;
        text-align: left;
    }
    
    .post-navigation .nav-next a::after {
        order: -1;
    }
}

/* Новий блок перед коментарями */
.gotuimo-comments-intro {
    margin: 30px 0 20px;
    padding: 20px;
    background: var(--bb-content-alternate-background-color, #f9f9f9);
    border-radius: 12px;
    text-align: center;
}

.gotuimo-comments-intro h2 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bb-headings-color, #333);
}

.gotuimo-comments-intro p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--bb-alternate-text-color, #666);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .gotuimo-recommended-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .gotuimo-footer-cta-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .gotuimo-recommended-section {
        padding: 16px;
    }
    
    .gotuimo-recommended-title {
        font-size: 1.2rem;
    }
    
    .gotuimo-recommended-subtitle {
        font-size: 0.95rem;
    }
    
    .gotuimo-footer-cta-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .gotuimo-cta-content {
        text-align: center;
    }
}

/* ===== DARK MODE ===== */
body.bb-dark-theme .gotuimo-recommended-section,
body.bb-dark-theme .gotuimo-footer-cta-card {
    background: var(--bb-content-background-color, #1e1e1e);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.bb-dark-theme .gotuimo-recommended-card {
    background: var(--bb-content-alternate-background-color, #2d2d2d);
}

body.bb-dark-theme .gotuimo-recommended-card:hover {
    background: var(--bb-content-background-color, #1e1e1e);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.bb-dark-theme .gotuimo-cta-button-secondary {
    background: var(--bb-content-alternate-background-color, #2d2d2d);
    color: var(--bb-body-text-color, #ccc) !important;
}

