/* ============================================
   IELTS Battles - Article Styles
   Mobile-First, Performance-Optimized
   ============================================ */

/* CSS Variables */
:root {
    --primary-red: #C62828;
    --secondary-blue: #0D47A1;
    --accent-gold: #FFC107;
    --white: #FFFFFF;
    --bg-light: #F5F7FA;
    --text-dark: #1A1A1A;
    --text-gray: #666666;
    --border-light: #E0E0E0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.25rem); }

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    color: var(--primary-red);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.logo i {
    color: var(--primary-red);
    font-size: 1.75rem;
}

.logo strong {
    color: var(--primary-red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    list-style: none;
    padding: 80px 20px 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin-bottom: 1rem;
}

.nav-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-red);
}

/* ============================================
   ARTICLE LAYOUT
   ============================================ */
.article-main {
    background: var(--white);
    padding-top: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--text-gray);
}

.breadcrumb a:hover {
    color: var(--primary-red);
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.category {
    background: var(--primary-red);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.article-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.article-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
}

.author-date {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.author, .date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
}

.author i, .date i {
    color: var(--primary-red);
}

/* Share Buttons */
.share-buttons-top {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-light);
    background: var(--white);
    color: var(--text-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.share-btn[data-platform="facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: var(--white);
}

.share-btn[data-platform="twitter"]:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: var(--white);
}

.share-btn[data-platform="linkedin"]:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: var(--white);
}

.share-btn[data-platform="whatsapp"]:hover {
    background: #25D366;
    border-color: #25D366;
    color: var(--white);
}

#copyLink:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--text-dark);
}

/* Featured Image */
.featured-image {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   ARTICLE BODY CONTENT
   ============================================ */
.article-body {
    max-width: 800px;
    margin: 3rem auto;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-red);
    border-radius: var(--border-radius);
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-gold);
}

.content-section h2 i {
    font-size: 1.5rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-red), #D32F2F);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1rem;
    align-items: start;
}

.highlight-box i {
    font-size: 2rem;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Price Card */
.price-card {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.price-card h3 {
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.price-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.price-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.price-label i {
    color: var(--secondary-blue);
    font-size: 1.25rem;
}

.price-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 1rem;
}

.new-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-red);
    font-family: 'Poppins', sans-serif;
}

.savings {
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.note {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.comparison-card {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.card-flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.comparison-card h4 {
    color: var(--secondary-blue);
    margin-bottom: 0.75rem;
}

.card-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    font-family: 'Poppins', sans-serif;
    margin: 1rem 0;
}

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

/* Tip Box */
.tip-box, .warning-box {
    padding: 1.25rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    align-items: start;
}

.tip-box {
    background: #FFF9E6;
    border-left: 4px solid var(--accent-gold);
}

.tip-box i {
    color: var(--accent-gold);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box {
    background: #FFF3E0;
    border-left: 4px solid #FF9800;
}

.warning-box i {
    color: #FF9800;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Stat Highlight */
.stat-highlight {
    background: linear-gradient(135deg, var(--secondary-blue), #1565C0);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.15rem;
    font-weight: 500;
}

/* Timeline List */
.timeline-list {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-red), var(--accent-gold));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.timeline-content h4 {
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-gray);
    margin-bottom: 0;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-blue);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-blue), #1565C0);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.benefit-card h4 {
    color: var(--secondary-blue);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--text-gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Tips Section */
.tips-section {
    margin: 2rem 0;
}

.tip-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tip-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.tip-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), #D32F2F);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.tip-content h4 {
    color: var(--secondary-blue);
    margin-bottom: 0.75rem;
}

.tip-content ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.tip-content li {
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

.tip-content li strong {
    color: var(--text-dark);
}

/* Conclusion */
.conclusion {
    background: linear-gradient(135deg, var(--bg-light), #E3F2FD);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
    border-left: 4px solid var(--secondary-blue);
}

.conclusion h3 {
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.conclusion-cta {
    font-weight: 600;
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Share Section */
.share-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
    margin: 3rem 0;
}

.share-section h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.share-buttons-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.share-btn-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 1rem;
}

.share-btn-large i {
    font-size: 1.25rem;
}

.share-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.share-btn-large[data-platform="facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: var(--white);
}

.share-btn-large[data-platform="twitter"]:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
    color: var(--white);
}

.share-btn-large[data-platform="linkedin"]:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: var(--white);
}

.share-btn-large[data-platform="whatsapp"]:hover {
    background: #25D366;
    border-color: #25D366;
    color: var(--white);
}

/* ============================================
   AUTHOR BIO
   ============================================ */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    margin: 3rem 0;
    border: 2px solid var(--border-light);
}

/*.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-md);
} */
.author-avatar {
    /* 1. Force a fixed size square */
    width: 80px;
    height: 80px;
    flex-shrink: 0; 
    
    /* 2. Prevent the flexbox "stretch" (This stops it from becoming an oval) */
    align-self: flex-start; 

    /* 3. The magic "cutter" that makes it a circle */
    border-radius: 50%;
    overflow: hidden; 

    /* 4. Formatting */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-blue));
    box-shadow: var(--shadow-md);
}

.author-avatar img {
    /* 5. Fill the circle without squishing the face */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.author-details h4 {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.author-details h5 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.author-details p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 0.75rem;
}

.author-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--text-gray);
    border-radius: 50%;
    transition: var(--transition);
    border: 2px solid var(--border-light);
}

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

/* ============================================
   RELATED ARTICLES
   ============================================ */
.related-articles {
    margin: 4rem 0;
}

.related-articles h3 {
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.related-grid {
    display: grid;
    gap: 1.5rem;
}

.related-card {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

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

.related-content {
    padding: 1.25rem;
}

.related-category {
    display: inline-block;
    background: var(--secondary-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.related-content h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

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

/* ============================================
   NEWSLETTER CTA
   ============================================ */
.newsletter-cta {
    background: linear-gradient(135deg, var(--primary-red), #D32F2F);
    color: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 4rem 0;
    box-shadow: var(--shadow-lg);
}

.newsletter-content {
    margin-bottom: 2rem;
}

.newsletter-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.newsletter-content h3 {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.75rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

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

.newsletter-form input {
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

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

.newsletter-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
}

.newsletter-form button {
    padding: 16px 32px;
    background: var(--white);
    color: var(--primary-red);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsletter-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-col h4 strong {
    color: var(--primary-red);
}

.footer-col h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

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

.footer-col ul a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

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

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

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

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

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

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

.scroll-to-top:hover {
    background: var(--secondary-blue);
    transform: translateY(-5px);
}

/* ============================================
   RESPONSIVE DESIGN - TABLET
   ============================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    .menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-menu li {
        margin-bottom: 0;
    }

    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form input {
        flex: 1;
    }

    .newsletter-form button {
        flex-shrink: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .author-avatar {
        align-self: center; /* Centers the circle on mobile */
        margin-bottom: 1rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - DESKTOP
   ============================================ */
@media (min-width: 1024px) {
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .author-bio {
        flex-direction: row;
    }

    .price-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .share-buttons-top,
    .share-section,
    .newsletter-cta,
    .site-footer,
    .scroll-to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: var(--text-dark);
        text-decoration: underline;
    }

    .article-body {
        max-width: 100%;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-title,
.featured-image,
.article-body > * {
    animation: fadeIn 0.6s ease-out backwards;
}

.article-title { animation-delay: 0.1s; }
.featured-image { animation-delay: 0.2s; }
.intro-text { animation-delay: 0.3s; }
