/* Yummy Fusion Hub - Main Stylesheet 
   Palette: Green (#2C5D37), Yellow (#E3C515), Pink (#EE51B1), Lilac (#A59CD3), Purple (#4B2D9F)
*/

:root {
    --color-green: #2C5D37;
    --color-yellow: #E3C515;
    --color-pink: #EE51B1;
    --color-lilac: #A59CD3;
    --color-purple: #4B2D9F;
    --bg-light: #FDFDFB;
    --text-main: #333333;
    --transition-base: all 0.3s ease;
}

/* --- Global Styles --- */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Lora', serif;
    color: var(--color-purple);
    font-weight: 600;
}

a {
    transition: var(--transition-base);
    text-decoration: none;
}

/* --- Navigation --- */
.navbar {
    background-color: rgba(253, 253, 251, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-lilac);
    padding: 1rem 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    color: var(--color-green) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-purple) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin: 0 10px;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-pink) !important;
}

/* --- Hero & Carousels (Главная страница) --- */
.hero-carousel .carousel-item {
    height: 85vh; 
    min-height: 600px; 
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-carousel .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(75, 45, 159, 0.2), rgba(44, 93, 55, 0.6));
}

.hero-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 600px;
    color: #fff;
    z-index: 2;
}

.hero-caption h2 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;

}


.category-hero {
    height: 45vh;
    min-height: 400px;
    padding-top: 90px;
    background: linear-gradient(rgba(75, 45, 159, 0.6), rgba(44, 93, 55, 0.4)), url('https://yummyfusionhub.com/template/img/yummyfusionhub-cat.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-bottom: 5rem;
}


.category-hero h1 {
    color: #fff;
    font-size: clamp(3rem, 8vw, 5rem);
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    margin: 0;
	text-transform: uppercase;
}

.article-hero {
    height: 65vh;
    min-height: 450px;
	background: linear-gradient(rgba(75, 45, 159, 0.6), rgba(44, 93, 55, 0.4)), url('https://yummyfusionhub.com/template/img/yummyfusionhub-cat.webp') no-repeat center center;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(75, 45, 159, 0.8) 0%, rgba(44, 93, 55, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
}

.article-hero .tag {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 15px;
}

.btn-custom {
    background-color: var(--color-yellow);
    color: var(--color-purple);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    display: inline-block;
}

.btn-custom:hover {
    background-color: var(--color-pink);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 81, 177, 0.4);
}

/* --- Category Slider (Карусель категорий на главной) --- */
.category-section {
    padding: 4rem 0;
    background-color: #fff;
}

.category-card {
    margin: 0 10px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 200px;
    display: block;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .cat-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(75, 45, 159, 0.9));
    color: #fff;
    margin: 0;
    font-weight: 600;
    text-align: center;
}

/* --- Featured Video Section --- */
.featured-video-section {
    margin-bottom: 5rem;
}

.featured-video-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(44, 93, 55, 0.3), rgba(75, 45, 159, 0.5));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-control-btn {
    background: rgba(253, 253, 251, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(253, 253, 251, 0.4);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
    margin-top: 30px;
}

.video-control-btn:hover {
    background: var(--color-pink);
    border-color: var(--color-pink);
    transform: scale(1.05);
}

/* --- Article Cards Grid --- */
.articles-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-pink);
    margin: 15px auto 0;
    border-radius: 2px;
}

.article-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(165, 156, 211, 0.15);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(44, 93, 55, 0.2);
}

.article-img-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.article-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
}

.tag {
    position: absolute;
    top: 15px; left: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    z-index: 2;
    display: inline-block;
    text-decoration: none;
    background-color: var(--color-pink);
}

.tag-green { background-color: var(--color-green); }
.tag-pink { background-color: var(--color-pink); }
.tag-purple { background-color: var(--color-purple); }
.tag-yellow { background-color: var(--color-yellow); color: var(--color-purple); }

.article-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-title a {
    color: var(--color-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: var(--color-pink);
}

.article-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(165, 156, 211, 0.2);
    font-size: 0.85rem;
    color: var(--color-green);
    font-weight: 500;
}

.article-meta .dot {
    margin: 0 15px;
    color: var(--color-lilac);
}

/* --- Loader --- */
.loader-wrapper {
    width: 100%;
    text-align: center;
    padding: 3rem 0;
    display: none; 
    clear: both;
}

.loader-wrapper .spinner-grow {
    background-color: var(--color-yellow);
    margin: 0 5px;
}

.loader-wrapper .spinner-grow:nth-child(2) {
    background-color: var(--color-pink);
}

.loader-wrapper .spinner-grow:nth-child(3) {
    background-color: var(--color-lilac);
}

/* --- Контейнер статьи (внутренняя страница) --- */
.main-content-wrapper {
    margin-top: -80px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.article-body-container {
    background-color: var(--bg-light);
    border-radius: 24px;
    padding: 50px 60px;
    box-shadow: 0 20px 50px rgba(165, 156, 211, 0.2);
}

.article-body-container .article-meta {
    justify-content: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(165, 156, 211, 0.3);
    border-top: none;
}

/* --- Article Interaction Buttons --- */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
    flex-wrap: wrap;
}

.share-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-lilac);
    background: #fff;
    color: var(--color-purple);
    transition: var(--transition-base);
    cursor: pointer;
}

.action-btn:hover {
    background-color: var(--color-purple);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--color-purple);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.print-trigger {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-green);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}

.print-trigger:hover {
    color: var(--color-pink);
}

/* --- Article Typography --- */
.article-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.article-text p {
    margin-bottom: 1.8rem;
}

.article-text h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--color-purple);
}

.article-text img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.article-text figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

blockquote {
    border-left: 5px solid var(--color-yellow);
    padding: 20px 30px;
    margin: 3rem 0;
    background: linear-gradient(to right, rgba(227, 197, 21, 0.1), transparent);
    border-radius: 0 16px 16px 0;
}

blockquote p {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-green);
    margin: 0;
    line-height: 1.6;
}

.author-box {
    display: flex;
    align-items: center;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    margin-top: 50px;
    border: 1px solid rgba(165, 156, 211, 0.3);
}

.author-box img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 25px;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.author-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* --- Related Articles --- */
.related-articles {
    padding: 4rem 0;
    background-color: #fff;
}

.related-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    box-shadow: 0 10px 20px rgba(165, 156, 211, 0.1);
    transition: transform 0.3s ease;
    display: block;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
    color: inherit;
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card-body {
    padding: 20px;
}

.related-card-title {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-purple);
}

/* --- Sidebar Widgets --- */
.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(165, 156, 211, 0.15);
    margin-bottom: 30px;
}

.widget-title {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: var(--color-purple);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0; width: 50px; height: 3px;
    background-color: var(--color-yellow);
    border-radius: 2px;
}

.category-list {
    list-style: none; padding: 0; margin: 0;
}

.category-list li {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(165, 156, 211, 0.3);
	text-transform: uppercase;
}

.category-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list a {
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.category-list a:hover { color: var(--color-pink); }

.category-count {
    background-color: var(--color-lilac);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

/* --- Pagination (Адаптировано под CMS) --- */
.pagination, .pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 3rem auto 0;
    gap: 10px;
}

.pagination li {
    margin: 0;
}

.page-link,
.pagination li a,
.pagination li span {
    border: none;
    color: var(--color-purple);
    border-radius: 50% !important;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(165, 156, 211, 0.15);
    font-weight: 600;
    background-color: #fff;
    transition: var(--transition-base);
    text-decoration: none;
    cursor: pointer;
}

.page-link:hover,
.pagination li a:hover {
    background-color: var(--color-lilac);
    color: #fff;
    transform: translateY(-3px);
}

.page-item.active .page-link,
.pagination li.active a,
.pagination li.active span {
    background-color: var(--color-pink);
    color: #fff;
    box-shadow: 0 5px 15px rgba(238, 81, 177, 0.4);
}
/* --- Footer --- */
footer {
    background-color: var(--color-green);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    margin-top: 5rem;
}

footer h3 { 
    color: var(--color-yellow); 
    margin-bottom: 1rem;
}

footer p {
    color: var(--color-lilac);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Print Styles --- */
@media print {
    .navbar, footer, aside, .btn-custom, #load-more-wrapper, .action-bar, .related-articles, .author-box, .tag {
        display: none !important;
    }
    body { background: #fff; }
    .article-hero { height: 300px; }
    .main-content-wrapper { margin-top: 0; }
    .article-body-container {
        margin-top: 0;
        box-shadow: none;
        padding: 0;
    }
    .article-text { font-size: 12pt; }
}

/* --- Responsive Helpers --- */
@media (max-width: 991px) {
    .category-hero { height: 30vh; }
}

@media (max-width: 768px) {
    .hero-caption h2 { font-size: 2.2rem; }
    .hero-carousel .carousel-item { height: 60vh; }
    
    .article-hero { height: 50vh; }
    .article-hero h1 { font-size: 2.2rem !important; }
    .main-content-wrapper { margin-top: -40px; }
    .article-body-container { 
        padding: 30px 20px; 
        border-radius: 16px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .author-box img {
        margin: 0 0 15px 0;
    }
    .action-bar { 
        justify-content: center; 
        flex-direction: column; 
    }
}
.mt-4 a {
    color: var(--color-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mt-4 a:hover {
    color: var(--color-pink);
}
@media (max-width: 768px) {
    .hero-caption h2 { font-size: 2.2rem; }
    .hero-carousel .carousel-item { height: 60vh; }
    
    .article-hero { 
        height: auto; 
        min-height: 50vh; 
        padding-top: 120px;
        padding-bottom: 80px; 
    }
    
    .article-hero h1 { 
        font-size: 2rem !important; 
        line-height: 1.3 !important;
    }
    
    .main-content-wrapper { margin-top: -40px; }
    .article-body-container { 
        padding: 30px 20px; 
        border-radius: 16px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .author-box img {
        margin: 0 0 15px 0;
    }
    .action-bar { 
        justify-content: center; 
        flex-direction: column; 
    }
}