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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ffeef8 0%, #f8e8ff 100%);
    box-shadow: 0 2px 20px rgba(255, 182, 193, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #d63384;
    margin-bottom: 0;
}

.logo p {
    font-size: 0.9rem;
    color: #8e44ad;
    font-weight: 300;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #6c5ce7;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #d63384;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #d63384, #8e44ad);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #d63384;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffeef8 0%, #f8e8ff 50%, #fff0f5 100%);
    padding: 2rem 0;
}

.hero-content {
    flex: 1;
    padding: 0 2rem;
    max-width: 600px;
    margin-left: 5%;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #2d3436;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #636e72;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #d63384, #8e44ad);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.4);
}

.hero-image {
    flex: 1;
    text-align: center;
    padding: 0 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(214, 51, 132, 0.2);
}

/* Featured Posts */
.featured-posts {
    padding: 5rem 0;
    background: #fff;
}

.featured-posts h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #2d3436;
    margin-bottom: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(214, 51, 132, 0.2);
}

.post-card.featured {
    grid-row: span 2;
}

.post-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-card.featured img {
    height: 350px;
}

.post-content {
    padding: 1.5rem;
}

.category {
    background: linear-gradient(135deg, #d63384, #8e44ad);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2d3436;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.3;
}

.post-content p {
    color: #636e72;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #d63384;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #8e44ad;
}

/* Categories Section */
.categories {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffeef8 0%, #f8e8ff 100%);
}

.categories h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #2d3436;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.05);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.6), rgba(142, 68, 173, 0.6));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    opacity: 1;
    transition: all 0.3s ease;
}

.category-card:hover .category-overlay {
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.9), rgba(142, 68, 173, 0.9));
    transform: scale(1.02);
}

.category-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.category-overlay p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Latest Posts */
.latest-posts {
    padding: 5rem 0;
    background: #fff;
}

.latest-posts h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #2d3436;
    margin-bottom: 3rem;
}

.posts-list {
    display: grid;
    gap: 2rem;
}

.post-item {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.1);
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(214, 51, 132, 0.15);
}

.post-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-info {
    padding: 1.5rem;
    flex: 1;
}

.post-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2d3436;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.post-info p {
    color: #636e72;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #8e44ad;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffeef8 0%, #f8e8ff 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2d3436;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #636e72;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d63384, #8e44ad);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(214, 51, 132, 0.3);
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(214, 51, 132, 0.2);
}

/* Popular Tags */
.popular-tags {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffeef8, #f8f9fa);
}

.popular-tags h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #2d3436;
    margin-bottom: 2rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.tag {
    background: linear-gradient(135deg, #d63384, #8e44ad);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.2);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3);
    background: linear-gradient(135deg, #8e44ad, #d63384);
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.search-input {
    padding: 8px 15px;
    border: 2px solid #d63384;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 10px rgba(214, 51, 132, 0.3);
    border-color: #8e44ad;
}

.search-btn {
    background: linear-gradient(135deg, #d63384, #8e44ad);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    background: #f8f9fa;
    color: #636e72;
    padding: 8px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: linear-gradient(135deg, #d63384, #8e44ad);
    color: white;
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #d63384, #8e44ad);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.4);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: rgba(255, 238, 248, 0.8);
    padding: 10px 0;
    position: fixed;
    top: 80px;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(214, 51, 132, 0.1);
}

.breadcrumb a {
    color: #d63384;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #636e72;
}

.breadcrumb .current-page {
    color: #2d3436;
    font-weight: 600;
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, #d63384, #8e44ad);
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: white;
    color: #d63384;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: #2d3436;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #ffeef8;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffeef8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #636e72;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .search-container {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .search-input {
        width: 150px;
        font-size: 0.8rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content {
        margin-left: 0;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card.featured {
        grid-row: span 1;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-item img {
        width: 100%;
        height: 200px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .share-buttons {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card,
.category-card,
.post-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Hover effects */
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.1), rgba(142, 68, 173, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.post-card:hover::before {
    opacity: 1;
}