/**
 * @file: blog-article.css
 * @description: Стилі для сторінки статті блогу
 * @created: 2025-12-17
 */

/* === Блок "Рецепти по темі" === */
.gotuimo-related-recipes {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
}

.gotuimo-related-recipes__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gotuimo-related-recipes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gotuimo-related-recipes__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.gotuimo-related-recipes__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.gotuimo-related-recipes__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gotuimo-related-recipes__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gotuimo-related-recipes__card:hover .gotuimo-related-recipes__image img {
    transform: scale(1.05);
}

.gotuimo-related-recipes__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    font-size: 2rem;
}

.gotuimo-related-recipes__content {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gotuimo-related-recipes__name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gotuimo-related-recipes__time {
    font-size: 0.75rem;
    color: #64748b;
}

.gotuimo-related-recipes__cta {
    margin-top: 1.5rem;
    text-align: center;
}

.gotuimo-related-recipes__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 24px;
    background: #ef4444;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.gotuimo-related-recipes__btn:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* === Повідомлення для неавторизованих === */
.gotuimo-comment-login-notice {
    padding: 1rem 1.5rem;
    background: #fef3cd;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #92400e;
}

.gotuimo-comment-login-notice a {
    color: #d97706;
    font-weight: 600;
    text-decoration: underline;
}

.gotuimo-comment-login-notice a:hover {
    color: #b45309;
}

/* === Стилі для CTA під статтею === */
.gotuimo-article-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    justify-content: center;
}

.gotuimo-article-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gotuimo-article-cta__btn--comment {
    background: #3b82f6;
    color: #fff;
}

.gotuimo-article-cta__btn--comment:hover {
    background: #2563eb;
    color: #fff;
}

.gotuimo-article-cta__btn--share {
    background: #10b981;
    color: #fff;
}

.gotuimo-article-cta__btn--share:hover {
    background: #059669;
    color: #fff;
}

/* === Responsive === */
@media (max-width: 768px) {
    .gotuimo-related-recipes {
        margin: 2rem -1rem;
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
    
    .gotuimo-related-recipes__title {
        font-size: 1.25rem;
    }
    
    .gotuimo-related-recipes__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .gotuimo-related-recipes__content {
        padding: 0.5rem 0.75rem;
    }
    
    .gotuimo-related-recipes__name {
        font-size: 0.8125rem;
    }
    
    .gotuimo-article-cta {
        flex-direction: column;
    }
    
    .gotuimo-article-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gotuimo-related-recipes__grid {
        grid-template-columns: 1fr;
    }
    
    .gotuimo-related-recipes__card {
        flex-direction: row;
    }
    
    .gotuimo-related-recipes__image {
        width: 100px;
        flex-shrink: 0;
        aspect-ratio: 1;
    }
    
    .gotuimo-related-recipes__content {
        justify-content: center;
    }
}

/* === Print styles === */
@media print {
    .gotuimo-related-recipes,
    .gotuimo-article-cta {
        display: none;
    }
}

