/* =====================================================
   blogs.mannuji.in/assets/css/style.css - SEO OPTIMIZED
   ===================================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a237e;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* Links */
a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #283593;
    text-decoration: underline;
}

/* Buttons */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #283593 0%, #1a237e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
}

.btn-outline-primary {
    border-color: #1a237e;
    color: #1a237e;
}

.btn-outline-primary:hover {
    background-color: #1a237e;
    border-color: #1a237e;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-header {
    border-bottom: none;
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.25rem;
}

/* Blog Cards */
.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card .card-title a {
    color: #333;
    text-decoration: none;
}

.blog-card .card-title a:hover {
    color: #1a237e;
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
}

.blog-image-wrapper img {
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-wrapper img {
    transform: scale(1.05);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Forms */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: #1a237e;
    box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.25);
}

/* Pagination */
.pagination .page-link {
    border: none;
    margin: 0 3px;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    color: #1a237e;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

footer a:hover {
    color: #ffd166;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding-top: 80px;
        padding-bottom: 60px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
}

/* Accessibility */
.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;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #1a237e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .social-share,
    .newsletter-subscription,
    footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

/* Loading animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Image styles for SEO */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* SEO Score Display */
.seo-score-excellent {
    color: #28a745;
}

.seo-score-good {
    color: #20c997;
}

.seo-score-fair {
    color: #ffc107;
}

.seo-score-poor {
    color: #dc3545;
}

/* Breadcrumb improvements */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
}

/* Social sharing buttons */
.social-share .btn {
    margin: 2px;
}

/* Back to top button animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.back-to-top:hover {
    animation: bounce 0.5s ease infinite;
}

/* Product card styles */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Export calculator styles */
.export-calculator {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Country badges */
.country-badge {
    transition: all 0.3s ease;
}

.country-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        color: #0000EE;
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
    }
}