/* ========================================
   StillLoveLife - Modern Redesign Stylesheet
   Enhanced Visual Design - 2026
   ======================================== */

/* CSS Variables - Modern Color Palette */
:root {
    /* Primary Gradient Colors */
    --primary: #0d7377;
    --primary-light: #14a3a8;
    --primary-dark: #095557;
    
    /* Secondary & Accent */
    --secondary: #ff8c42;
    --secondary-light: #ffa366;
    --accent: #e63946;
    
    /* Neutrals */
    --dark: #1a1a2e;
    --dark-secondary: #16213e;
    --gray: #6c757d;
    --gray-light: #e8eef3;
    --white: #ffffff;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient-start: #f0fdfa;
    --bg-gradient-end: #e0f2fe;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(13, 115, 119, 0.08);
    --shadow: 0 4px 12px rgba(13, 115, 119, 0.12);
    --shadow-lg: 0 8px 30px rgba(13, 115, 119, 0.15);
    --shadow-xl: 0 20px 50px rgba(13, 115, 119, 0.2);
    
    /* Border Radius */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========================================
   Base Reset & Typography
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* ========================================
   Header - Glassmorphism Style
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(13, 115, 119, 0.08);
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: var(--transition);
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 12px;
    border: 1px solid var(--gray-light);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 26px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ========================================
   Hero Section - Immersive Design
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, #fef3e2 100%);
    overflow: hidden;
    padding-top: 80px;
}

/* Animated Background Elements */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(20, 163, 168, 0.3) 100%);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(255, 140, 66, 0.3) 100%);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(230, 57, 70, 0.1) 100%);
    top: 50%;
    left: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(0, -50px) rotate(0deg); }
    75% { transform: translate(-30px, -30px) rotate(-5deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

/* Decorative Lines */
.hero-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    height: 1px;
    opacity: 0.1;
}

.hero-line:nth-child(1) { width: 60%; top: 20%; left: 20%; }
.hero-line:nth-child(2) { width: 40%; top: 40%; left: 40%; }
.hero-line:nth-child(3) { width: 50%; top: 60%; left: 10%; }
.hero-line:nth-child(4) { width: 30%; top: 80%; left: 50%; }

/* Floating Icons */
.hero-icons {
    position: absolute;
    inset: 0;
}

.hero-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: floatIcon 10s ease-in-out infinite;
}

.hero-icon:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-icon:nth-child(2) { top: 25%; right: 15%; animation-delay: 2s; }
.hero-icon:nth-child(3) { top: 60%; left: 5%; animation-delay: 4s; }
.hero-icon:nth-child(4) { top: 70%; right: 10%; animation-delay: 6s; }
.hero-icon:nth-child(5) { top: 40%; left: 85%; animation-delay: 1s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.hero-badge-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.7rem;
}

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

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

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Hero Typography */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark);
    letter-spacing: -1.5px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(13, 115, 119, 0.1);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 8px;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.hero-scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDot {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.5; top: 20px; }
}

/* ========================================
   Buttons - Modern Style
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(13, 115, 119, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(13, 115, 119, 0.45);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-accent {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.35);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.45);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   Featured Articles Section
   ======================================== */
.featured {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-light), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    border: 1px solid rgba(13, 115, 119, 0.1);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Ad Container */
.ad-container {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 40px auto;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(13, 115, 119, 0.2);
}

.ad-top, .ad-middle {
    max-width: 728px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

/* Article Card - Modern Design */
.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-light);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-image-wrapper {
    position: relative;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: var(--transition-slow);
}

.article-card:hover .article-image {
    transform: scale(1.08);
}

.article-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.article-card:hover .article-image-overlay {
    opacity: 1;
}

.article-content {
    padding: 28px;
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--dark);
    transition: var(--transition-fast);
}

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

.article-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--gray);
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Article Affiliate Section */
.article-affiliate {
    background: linear-gradient(135deg, #fff9f5 0%, #fff5ee 100%);
    padding: 18px 28px;
    border-top: 1px solid rgba(255, 140, 66, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.article-affiliate-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.affiliate-tag {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.affiliate-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.affiliate-link:hover {
    color: var(--secondary);
    gap: 8px;
}

.affiliate-link::after {
    content: '→';
    transition: var(--transition);
}

.article-card:hover .affiliate-link::after {
    transform: translateX(4px);
}

/* View More Button */
.view-more {
    text-align: center;
    margin-top: 60px;
}

/* ========================================
   Newsletter Section - Vibrant Design
   ======================================== */
.newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(13, 115, 119, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 30px;
    box-shadow: 0 10px 40px rgba(13, 115, 119, 0.4);
    animation: scaleIn 0.6s ease;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.newsletter-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.newsletter-form {
    margin-bottom: 40px;
}

.form-group {
    display: flex;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.form-input {
    flex: 1;
    padding: 18px 28px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(13, 115, 119, 0.2);
}

.newsletter-privacy {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
}

.form-message {
    margin-top: 20px;
    padding: 14px;
    border-radius: var(--radius-sm);
    display: none;
    font-size: 0.95rem;
}

.form-message.success {
    display: block;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.form-message.error {
    display: block;
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Social Proof */
.newsletter-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-proof-avatars {
    display: flex;
}

.social-proof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--dark);
    margin-left: -12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.social-proof-avatar:first-child {
    margin-left: 0;
}

.social-proof-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.social-proof-text strong {
    color: var(--white);
}

/* Localized Products */
.localized-products {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

.localized-products h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.product-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.product-item-info {
    flex: 1;
}

.product-item-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.product-item-price {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-top: 2px;
}

.product-item-link {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
}

.product-item-link:hover {
    color: var(--secondary);
}

/* ========================================
   Affiliate Section
   ======================================== */
.affiliates {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.affiliate-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    overflow: hidden;
}

.affiliate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    opacity: 0;
    transition: var(--transition);
}

.affiliate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

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

.affiliate-card > * {
    position: relative;
    z-index: 1;
}

.affiliate-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.affiliate-image-wrapper {
    width: 140px;
    height: 140px;
    margin: 20px auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.affiliate-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.affiliate-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.affiliate-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.affiliate-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-affiliate {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.btn-affiliate:hover {
    box-shadow: 0 6px 25px rgba(13, 115, 119, 0.4);
}

.affiliate-disclaimer {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 14px;
}

/* ========================================
   Social Share Section
   ======================================== */
.social-share {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.social-share::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.share-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
}

.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-twitter:hover { color: #1da1f2; }
.share-facebook:hover { color: #1877f2; }
.share-linkedin:hover { color: #0a66c2; }
.share-pinterest:hover { color: #e60023; }
.share-email:hover { color: var(--accent); }

/* ========================================
   Footer - Modern Dark Design
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 44px;
    height: 44px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.footer-links ul li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

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

.footer-social h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* Ad Footer */
.ad-footer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    margin: 40px 0;
    padding: 20px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom p:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.affiliate-disclosure {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.8rem !important;
}

/* ========================================
   Cookie Consent
   ======================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-consent.show {
    display: flex;
}

.cookie-consent p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-consent a {
    color: var(--secondary);
}

.cookie-consent .btn {
    padding: 12px 28px;
    white-space: nowrap;
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Animations - Scroll Reveal
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Animation for Grid Items */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
}

.stagger-item.active {
    animation: staggerFadeIn 0.6s ease forwards;
}

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .hero-stats {
        gap: 40px;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
        border-radius: 0 0 var(--radius) var(--radius);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-menu a {
        width: 100%;
        padding: 14px 20px;
        border-radius: var(--radius-sm);
    }
    
    .nav-menu a:hover {
        background: var(--bg-gradient-start);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        background: var(--bg-secondary);
        margin-top: 8px;
    }
    
    .dropdown:hover .dropdown-menu {
        transform: none;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .hero-scroll {
        display: none;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .affiliate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-consent {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .affiliate-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-social-proof {
        flex-direction: column;
        gap: 16px;
    }
    
    .social-proof-avatars {
        justify-content: center;
    }
}

/* ========================================
   Article Page Styles
   ======================================== */
.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-header .article-category {
    margin-bottom: 24px;
}

.article-page .article-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.article-page .article-meta {
    justify-content: center;
    margin-bottom: 40px;
}

.article-page .article-image {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    margin-bottom: 50px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark);
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 50px 0 20px;
    color: var(--dark);
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: var(--dark);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.article-body ul,
.article-body ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 12px;
    list-style: disc;
}

.article-body ol li {
    list-style: decimal;
}

.article-body blockquote {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    border-left: 4px solid var(--primary);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray);
}

.article-body code {
    background: var(--gray-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-body pre {
    background: var(--dark);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 32px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

/* Article Share */
.article-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-light);
}

.article-share-label {
    font-weight: 600;
    color: var(--gray);
}

/* Related Articles */
.related-articles {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--gray-light);
}

.related-articles h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }
.visible { display: block !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
