/* ===================================
   Baby & Kids Fashion Blog - Custom Styles
   =================================== */

/* ===== Variables ===== */
:root {
    --primary-color: #FF9ECD;
    --secondary-color: #A8D8EA;
    --accent-color: #FFD93D;
    --text-color: #333333;
    --light-bg: #FFF5F7;
    --white: #FFFFFF;
    --gray: #6C757D;
    --light-gray: #F8F9FA;
    --border-color: #E9ECEF;
    --font-primary: 'Quicksand', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
    --hero-bg: url('../images/hero-back.jpg');
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Navigation ===== */
.navbar {
    padding: 1rem 0;
    background-color: var(--white) !important;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-color);
    margin-left: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}






/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-carousel-img {
    height: 70vh;
    min-height: 500px;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    background: linear-gradient(135deg, rgba(255, 158, 205, 0.9) 0%, rgba(168, 216, 234, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem !important;
    bottom: 60px;
    left: 30%;
    transform: translateX(-50%);
    max-width: 500px;
    text-align: center;
}

.carousel-caption h1 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.5rem;
}

.carousel-caption p {
    color: white !important;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-mobile-content {
    background: linear-gradient(135deg, rgba(255, 158, 205, 0.9) 0%, rgba(168, 216, 234, 0.9) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

/* Carrusel personalizado */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

#heroCarousel .carousel-control-prev {
    left: 30px;
}

#heroCarousel .carousel-control-next {
    right: 30px;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

#heroCarousel .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators .active {
    background-color: white;
    transform: scale(1.2);
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}


/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 158, 205, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}




/* ===== Section Titles ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}




/* ===== Post Cards ===== */
.post-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--text-color);
}

.post-title a:hover {
    color: var(--primary-color);
}

/* ===== Blog Cards ===== */
.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-category {
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.blog-category a {
    color: var(--primary-color);
}

.blog-date {
    color: var(--gray);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.blog-title a {
    color: var(--text-color);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--gray);
    margin-bottom: 1rem;
}

.blog-footer {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
}

/* ===== Category Cards ===== */
.category-card {
    display: block;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 158, 205, 0.2);
}

.category-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background-color: var(--secondary-color);
    transform: rotate(360deg);
}

.category-card h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.post-count {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* ===== Single Post ===== */
.single-post {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-header {
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.post-featured-image {
    border-radius: 15px;
    overflow: hidden;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.share-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== Related Posts ===== */
.related-post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.related-post-image {
    height: 150px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 1rem;
}

.related-post-content h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-post-content h5 a {
    color: var(--text-color);
}

.related-post-content h5 a:hover {
    color: var(--primary-color);
}

.related-post-date {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ===== Comments ===== */
.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.comment-avatar {
    font-size: 3rem;
    color: var(--primary-color);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--gray);
}

.comment-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

/* ===== Sidebar ===== */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 5px;
    transition: var(--transition);
}

.category-list li a:hover,
.category-list li.active a {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.category-list .count {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.875rem;
}

/* ===== Popular Posts Widget ===== */
.popular-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.popular-post-item:last-child {
    margin-bottom: 0;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.popular-post-item:hover .popular-post-image img {
    transform: scale(1.1);
}

.popular-post-content h5 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.popular-post-content h5 a {
    color: var(--text-color);
}

.popular-post-content h5 a:hover {
    color: var(--primary-color);
}

.popular-post-date {
    font-size: 0.8rem;
    color: var(--gray);
}






/* ===== Subscribe Section ===== */
.subscribe-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
}

.subscribe-section .section-title {
    color: var(--white);
}

.subscribe-form .form-control {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: none;
}






/* ===== Footer ===== */
.footer {
    background-color: #2C3E50;
}

.footer-title {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.social-links-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links-footer a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    display: flex;
}

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    border-radius: 50px;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .post-image,
    .blog-image {
        height: 200px;
    }
}
