/* ===================================
   PALABRA VIVA - BLOG STYLES
   Modern, Immersive Blog Design
   =================================== */

:root {
    /* MyOwnDoc Colors */
    --primary-purple: #481F71;
    --secondary-teal: #6EC6D2;
    --accent-green: #A3C9A8;
    
    /* The Flow Colors */
    --flow-petrol: #3A6B73;
    --flow-gold: #D1B280;
    
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8FAFB;
    --light-gray: #E5E7EB;
    --gray: #6B7280;
    --dark-gray: #374151;
    --black: #1F2937;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-purple), var(--secondary-teal));
    --gradient-flow: linear-gradient(135deg, var(--flow-petrol), var(--flow-gold));
    --gradient-soft: linear-gradient(180deg, #FFFFFF 0%, #F8FAFB 100%);
    
    /* Typography */
    --font-heading: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-width: 1280px;
    --section-padding: 6rem 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   NAVIGATION
   =================================== */
.blog-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(72, 31, 113, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--secondary-teal);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-purple);
}

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

.nav-cta {
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 31, 113, 0.3);
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-purple);
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */
.blog-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(72, 31, 113, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(110, 198, 210, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(209, 178, 128, 0.05) 0%, transparent 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(110, 198, 210, 0.6), transparent);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 4s; }
.particle:nth-child(3) { top: 40%; left: 30%; animation-delay: 8s; }
.particle:nth-child(4) { top: 80%; left: 60%; animation-delay: 12s; }
.particle:nth-child(5) { top: 30%; left: 90%; animation-delay: 16s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-30px) translateX(20px); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(72, 31, 113, 0.08);
    color: var(--primary-purple);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease backwards;
}

.title-line:nth-child(1) {
    color: var(--primary-purple);
    animation-delay: 0.4s;
}

.title-accent {
    background: var(--gradient-flow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.8s backwards;
}

.hero-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 1s backwards;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(72, 31, 113, 0.2);
    position: relative;
    box-shadow: 0 0 0 0 rgba(110, 198, 210, 0);
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--black);
    font-size: 1.05rem;
}

.author-title {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Avatar glow on hover */
.author-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-purple), var(--secondary-teal), var(--accent-green), var(--primary-purple));
    filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.author-avatar:hover {
    box-shadow: 0 6px 18px rgba(72, 31, 113, 0.18), 0 2px 10px rgba(110, 198, 210, 0.18);
    border-color: rgba(72, 31, 113, 0.35);
}

.author-avatar:hover::after {
    opacity: 0.9;
}

.author-avatar:hover img {
    transform: scale(1.04);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease 1.2s backwards;
}

.scroll-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary-purple);
    border-bottom: 2px solid var(--primary-purple);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* ===================================
   FEATURED POST
   =================================== */
.featured-section {
    padding: var(--section-padding);
    background: var(--gradient-soft);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary-teal);
    margin-bottom: 2rem;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(72, 31, 113, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(72, 31, 113, 0.15);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--primary-purple);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
}

.featured-content {
    padding: 3rem 3rem 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--black);
}

.featured-excerpt {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(110, 198, 210, 0.1);
    color: var(--secondary-teal);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 15px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 31, 113, 0.3);
}

/* ===================================
   BLOG GRID
   =================================== */
.blog-grid-section {
    padding: var(--section-padding);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--black);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(72, 31, 113, 0.05);
    padding: 0.375rem;
    border-radius: 12px;
}

.filter-tab {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active {
    background: white;
    color: var(--primary-purple);
    box-shadow: 0 2px 8px rgba(72, 31, 113, 0.1);
}

.filter-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(72, 31, 113, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(72, 31, 113, 0.12);
    border-color: rgba(72, 31, 113, 0.15);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.card-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--secondary-teal);
    align-self: flex-start;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--black);
    transition: color 0.3s ease;
}

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

.card-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    padding-top: 0.5rem;
    border-top: 1px solid rgba(72, 31, 113, 0.08);
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-load-more {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 31, 113, 0.25);
}

/* ===================================
   INTERACTIVE SECTION
   =================================== */
.interactive-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(72, 31, 113, 0.03), rgba(110, 198, 210, 0.03));
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(110, 198, 210, 0.15);
    color: var(--secondary-teal);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

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

.interactive-content .section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid rgba(72, 31, 113, 0.15);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(72, 31, 113, 0.08);
}

.btn-subscribe {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 31, 113, 0.3);
}

.form-note {
    font-size: 0.875rem;
    color: var(--gray);
    text-align: center;
}

.interactive-visual {
    display: grid;
    gap: 1.5rem;
}

.visual-card {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(72, 31, 113, 0.08);
    transition: all 0.3s ease;
}

.visual-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 30px rgba(72, 31, 113, 0.1);
}

.visual-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(72, 31, 113, 0.08), rgba(110, 198, 210, 0.08));
    border-radius: 12px;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.visual-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.visual-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===================================
   FOOTER
   =================================== */
.blog-footer {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-teal);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .interactive-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .blog-hero {
        padding: 6rem 1rem 3rem;
    }
    
    .featured-image {
        min-height: 300px;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }
}
