/* ═══════════════════════════════════════════════════════════════════
   RV LIFE BLOG STYLES - INTEGRATED WITH SITE COLORS
   
   PURPOSE: Blog page styles using existing site color palette
   COLORS: Uses site variables (--coral, --teal, --honey, --navy, --hub-purple)
   NO CONFLICTS: All classes prefixed with rv-blog-
   
   Updated: 2025-11-07
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   ANIMATIONS & KEYFRAMES
   ═══════════════════════════════════════════════════════════════════ */

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION - USING SITE COLORS
   ═══════════════════════════════════════════════════════════════════ */

.rv-blog-hero {
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(78, 205, 196, 0.3);
}

.rv-blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/cover no-repeat;
    pointer-events: none;
    opacity: 0.3;
}

.rv-blog-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.rv-blog-hero .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.rv-blog-hero .hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.rv-blog-hero .hero-description {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    color: var(--honey);
}

.hero-stats .stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Open Sans', sans-serif;
}

/* Hero Social */
.hero-social {
    margin-top: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-social .social-label {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.social-btn:hover {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.social-btn.social-facebook:hover { color: #1877f2; }
.social-btn.social-instagram:hover { color: #e4405f; }
.social-btn.social-twitter:hover { color: #1da1f2; }
.social-btn.social-youtube:hover { color: #ff0000; }

/* ═══════════════════════════════════════════════════════════════════
   MAIN CONTAINER
   ═══════════════════════════════════════════════════════════════════ */

.rv-blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   CATEGORY NAVIGATION - USING SITE COLORS
   ═══════════════════════════════════════════════════════════════════ */

.rv-blog-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease-out;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    border: 2px solid transparent;
    border-radius: 30px;
    text-decoration: none;
    color: var(--charcoal);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(78, 205, 196, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-btn:hover::before {
    width: 300px;
    height: 300px;
}

.category-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
    border-color: var(--teal);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    color: var(--white);
    border-color: var(--teal);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 1.3rem;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.category-name {
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLES GRID
   ═══════════════════════════════════════════════════════════════════ */

.rv-blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE CARD - USING SITE COLORS
   ═══════════════════════════════════════════════════════════════════ */

.rv-blog-article-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rv-blog-article-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(78, 205, 196, 0.25);
    border-top: 3px solid var(--coral);
}

/* Article Image */
.rv-blog-article-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    position: relative;
}

.rv-blog-article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

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

.rv-blog-article-card:hover .rv-blog-article-image img {
    transform: scale(1.1) rotate(2deg);
}

/* Icon placeholder */
.article-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* Article Content */
.rv-blog-article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Category Badge - Using Site Colors */
.rv-blog-article-category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--honey) 0%, #ffed4e 100%);
    color: var(--charcoal);
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 8px rgba(255, 217, 61, 0.3);
}

/* Article Title */
.rv-blog-article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.rv-blog-article-card:hover .rv-blog-article-title {
    color: var(--coral);
}

/* Article Excerpt */
.rv-blog-article-excerpt {
    font-family: 'Open Sans', sans-serif;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Article Meta */
.rv-blog-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 2px solid var(--light-gray);
    margin-top: auto;
    margin-bottom: 1rem;
}

.article-date {
    color: var(--medium-gray);
    font-size: 0.875rem;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date i {
    color: var(--teal);
}

/* Read More Link - Using Site Colors */
.read-more-link {
    color: var(--coral);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

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

.read-more-link:hover {
    color: var(--teal);
    gap: 0.75rem;
}

.read-more-link i {
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

/* ═══════════════════════════════════════════════════════════════════
   SOCIAL SHARING BUTTONS - USING SITE COLORS
   ═══════════════════════════════════════════════════════════════════ */

.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    animation: slideInRight 0.6s ease-out;
}

.share-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

.share-pinterest {
    background: #e60023;
}

.share-email {
    background: var(--medium-gray);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.share-btn:active {
    transform: translateY(-1px) scale(1.05);
}

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS SECTION - USING SITE COLORS
   ═══════════════════════════════════════════════════════════════════ */

.testimonials-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    border-radius: 30px;
    margin: 4rem 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    color: var(--charcoal);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--coral);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.2);
}

.testimonial-stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--honey);
}

.testimonial-text {
    font-family: 'Open Sans', sans-serif;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral) 0%, var(--teal) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-family: 'Poppins', sans-serif;
    color: var(--navy);
    font-size: 1rem;
}

.author-info span {
    font-family: 'Open Sans', sans-serif;
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.testimonial-cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(0,0,0,0.05);
}

.testimonial-cta p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: var(--charcoal);
}

.testimonial-link {
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.testimonial-link:hover {
    color: var(--teal);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════
   NEWSLETTER SECTION - USING SITE COLORS
   ═══════════════════════════════════════════════════════════════════ */

.newsletter-section {
    background: linear-gradient(135deg, var(--coral) 0%, var(--teal) 100%);
    padding: 4rem 2rem;
    border-radius: 30px;
    margin: 4rem 0;
    box-shadow: 0 15px 50px rgba(255, 107, 107, 0.4);
    animation: fadeInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 3s ease-in-out infinite;
}

.newsletter-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.newsletter-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    background: rgba(255,255,255,0.95);
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--white);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.newsletter-button {
    padding: 1.25rem 2.5rem;
    background: var(--white);
    color: var(--coral);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.newsletter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    background: var(--honey);
    color: var(--navy);
}

.newsletter-privacy {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   NO ARTICLES STATE
   ═══════════════════════════════════════════════════════════════════ */

.rv-blog-no-articles {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.rv-blog-no-articles i {
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.rv-blog-no-articles h2 {
    font-family: 'Playfair Display', serif;
    color: var(--charcoal);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.rv-blog-no-articles p {
    font-family: 'Open Sans', sans-serif;
    color: var(--medium-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--coral) 0%, var(--teal) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Hero Section */
    .rv-blog-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .rv-blog-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .rv-blog-hero .hero-description {
        font-size: 1rem;
    }
    
    .rv-blog-hero {
        padding: 4rem 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Container */
    .rv-blog-container {
        padding: 1rem;
    }
    
    /* Category Navigation */
    .rv-blog-category-nav {
        padding: 1.5rem;
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .category-icon {
        font-size: 1.1rem;
    }
    
    /* Articles Grid */
    .rv-blog-articles-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Article Card */
    .rv-blog-article-image {
        height: 220px;
    }
    
    .rv-blog-article-content {
        padding: 1.5rem;
    }
    
    .rv-blog-article-title {
        font-size: 1.3rem;
    }
    
    /* Testimonials */
    .section-title {
        font-size: 2rem;
    }
    
    .testimonials-section {
        padding: 3rem 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Newsletter */
    .newsletter-section {
        padding: 3rem 1.5rem;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .newsletter-description {
        font-size: 1rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .newsletter-button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .rv-blog-hero .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.85rem;
    }
    
    .category-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .rv-blog-article-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .article-share {
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .newsletter-title {
        font-size: 1.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════ */

@media print {
    .rv-blog-hero,
    .rv-blog-category-nav,
    .read-more-link,
    .article-share,
    .newsletter-section,
    .hero-social {
        display: none;
    }
    
    .rv-blog-article-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
