/* ========================================
   GAURAVEDITX BLOG CSS - Shared Styles
   For all blog pages - SEO Optimized
   ======================================== */

:root {
    --primary: #ff6b35;
    --primary-dark: #e05a2b;
    --primary-light: #ffeae3;
    --secondary: #2d2d2d;
    --accent: #6366f1;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #666666;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--dark);
    background: var(--light);
    font-size: 16px;
}

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

h1 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, var(--primary) 0%, #ff8b5e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2rem;
    margin-top: 3rem;
    color: var(--secondary);
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    color: var(--secondary);
}

h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    color: var(--secondary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    font-size: 1.1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

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

.container-wide {
    max-width: 1200px;
}

/* Header */
.blog-header {
    background: var(--light);
    padding: 20px 0;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary);
}

.logo i {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Mobile Navigation Active State */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        display: flex;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        padding: 15px;
        border-bottom: 1px solid var(--light-gray);
        width: 100%;
        text-align: center;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background: var(--light-gray);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.breadcrumb li:last-child {
    color: var(--dark);
    font-weight: 500;
}

/* Article */
article {
    padding: 60px 0;
}

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

.article-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: var(--primary);
}

.tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.tag {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: white;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

/* Table of Contents */
.toc {
    background: linear-gradient(135deg, var(--light-gray) 0%, #fff 100%);
    padding: 35px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.toc h3 {
    margin-top: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toc h3 i {
    color: var(--primary);
}

.toc ul {
    list-style: none;
    margin: 20px 0 0 0;
    padding: 0;
}

.toc li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.toc li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.toc a {
    color: var(--gray);
    transition: color 0.3s;
}

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

/* Content Styling */
.content ul,
.content ol {
    margin-left: 30px;
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.content li {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.content strong {
    color: var(--secondary);
    font-weight: 600;
}

.content blockquote {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
}

.content blockquote p {
    margin: 0;
    color: var(--secondary);
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff 100%);
    border-left: 4px solid var(--accent);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box.warning {
    background: linear-gradient(135deg, #fff3e0 0%, #fff 100%);
    border-left-color: #ff9800;
}

.info-box.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border-left-color: #4caf50;
}

.info-box h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Image Styling */
.content-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.img-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: -20px;
    margin-bottom: 30px;
    font-style: italic;
}

/* Video Embed */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 60px 0;
    box-shadow: var(--shadow-hover);
}

.cta-box h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-box .btn {
    background: white;
    color: var(--primary);
}

.cta-box .btn:hover {
    background: var(--light-gray);
    transform: translateY(-3px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Inter', sans-serif;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 107, 53, 0.4);
    color: white;
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--light);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-secondary:hover {
    background-color: #4f46e5;
    transform: translateY(-5px);
    color: white;
}

/* FAQ Section */
.faq-section {
    background: var(--light-gray);
    padding: 80px 0;
    margin-top: 60px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.faq-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-hover);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--gray);
}

.faq-answer-content p {
    margin-bottom: 15px;
}

.faq-answer-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.faq-answer-content li {
    margin-bottom: 8px;
}

/* Related Articles */
.related-articles {
    padding: 80px 0;
    background: white;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 50px;
}

.related-articles h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-card {
    background: var(--light-gray);
    padding: 35px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    border: 2px solid transparent;
}

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

.related-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.related-card p {
    color: var(--gray);
    margin: 0;
    font-size: 1rem;
}

/* Author Box */
.author-box {
    background: linear-gradient(135deg, var(--light-gray) 0%, #fff 100%);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 60px 0;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: var(--shadow);
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    flex-shrink: 0;
}

.author-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.author-info p {
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.author-social {
    display: flex;
    gap: 15px;
}

.author-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.author-social a:hover {
    background: var(--primary);
    color: white;
}

/* Share Buttons */
.share-section {
    padding: 30px 0;
    border-top: 1px solid var(--medium-gray);
    border-bottom: 1px solid var(--medium-gray);
    margin: 40px 0;
}

.share-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary);
}

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

.share-btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.95rem;
}

.share-btn:hover {
    transform: translateY(-3px);
}

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

.share-btn.facebook {
    background: #4267B2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.floating-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    color: white;
}

/* Footer - SEO Optimized with Contact */
.blog-footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

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

.footer-links i {
    color: var(--primary);
    width: 20px;
}

/* Contact Info - SEO Boost */
.contact-highlight {
    background: rgba(255, 107, 53, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 107, 53, 0.3);
    margin-top: 20px;
}

.contact-highlight h4 {
    color: var(--primary);
    margin: 0 0 15px 0;
    font-size: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary) !important;
}

/* Trust Badges in Footer */
.footer-trust {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--primary);
}

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

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.copyright a {
    color: var(--primary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

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

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    /* nav-links mobile styles are defined above in the mobile menu section */
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .toc {
        padding: 25px;
    }
    
    .cta-box {
        padding: 35px 25px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-card {
        padding: 25px;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        bottom: 90px;
        right: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Print Styles */
@media print {
    .blog-header,
    .breadcrumb,
    .floating-cta,
    .back-to-top,
    .share-section,
    .cta-box,
    .blog-footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 18pt;
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    z-index: 1001;
    transition: width 0.1s;
}

/* Highlight Effect for Anchor Links */
:target {
    scroll-margin-top: 100px;
}
