﻿/*
Theme Name:     Beauty Growth Child
Theme URI:      
Description:    Astra child theme.
Author:         Beauty Growth
Author URI:     https://beautygrowth.ru
Template:       astra
Version:        0.1.0
*/

/* Fix for stretched blog thumbnails */
body .ast-article-post .ast-blog-featured-section, 
body .ast-article-post .post-thumb, 
body .ast-article-post .post-thumb-img-content {
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
}
body .ast-article-post .ast-blog-featured-section a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
body .ast-article-post .post-thumb-img-content img,
body .wp-post-image, 
body .post-thumbnail img, 
body .entry-thumbnail img, 
body article img.attachment-post-thumbnail, 
body .ast-blog-featured-section img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 8px 8px 0 0 !important;
}

/* Homepage Title Hide */
.home .entry-header { display: none !important; }

/* Premium Header */
.bg-premium-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.bg-header-logo a {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 1px;
}
.bg-header-logo a span {
    color: #c89b3c;
}

.bg-header-nav {
    display: flex;
    gap: 30px;
}

.bg-header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.bg-header-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.bg-header-nav a:hover {
    color: #c89b3c;
}

.bg-header-cta .bg-btn-gold {
    padding: 12px 25px;
    background: linear-gradient(135deg, #d4af37, #f3e5ab);
    color: #000;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.3s;
    display: inline-block;
}
.bg-header-cta .bg-btn-gold:hover {
    transform: scale(1.05);
}

/* Premium Footer */
.bg-premium-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 40px 20px;
    margin-top: 60px;
}

.bg-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-footer-col h3 {
    color: #c89b3c;
    margin-bottom: 20px;
    font-size: 20px;
}

.bg-footer-col p {
    color: #aaa;
    line-height: 1.6;
}

.bg-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bg-footer-links li {
    margin-bottom: 10px;
}

.bg-footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.bg-footer-links a:hover {
    color: #c89b3c;
}

.bg-footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 40px;
    color: #777;
    font-size: 14px;
}

@media (max-width: 768px) {
    .bg-premium-header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .bg-header-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* Hide Astra default header and footer */
header#masthead, footer#colophon {
    display: none !important;
}

/* Tag Cloud Styles */
.bg-tag-cloud-wrapper {
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.bg-tag-cloud-wrapper h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}
.bg-tag-cloud-wrapper a {
    display: inline-block;
    padding: 6px 15px;
    margin: 4px;
    background: #fff;
    color: #1a1a1a !important;
    text-decoration: none;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 13px !important;
    transition: all 0.3s ease;
}
.bg-tag-cloud-wrapper a:hover {
    background: #c89b3c;
    color: #fff !important;
    border-color: #c89b3c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(200, 155, 60, 0.2);
}
