/* ============================================
   SENSEFLOW BLOG - COMMON STYLES
   Shared CSS for all blog pages
   ============================================ */

/* CSS Variables */
:root {
    --primary: #1fbae0;
    --primary-dark: #0c9fc0;
    --secondary: #00aeff;
    --accent: #00ff9d;
    --text: #1a1a1a;
    --text-light: #666;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 60px rgba(31, 186, 224, 0.15);
    --transition: all 0.3s ease;
    --radius: 20px;
}

[data-theme="dark"] {
    --text: #ffffff;
    --text-light: #b0b0b0;
    --bg: #121212;
    --bg-secondary: #1e1e1e;
    --card-bg: rgba(30, 30, 30, 0.95);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 30px 60px rgba(31, 186, 224, 0.25);
}

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

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

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

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(31, 186, 224, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 174, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 102, 204, 0.08) 0%, transparent 50%);
    z-index: -1;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

[data-theme="dark"] header {
    background: rgba(30, 30, 30, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-link:hover {
    background: rgba(31, 186, 224, 0.1);
    color: var(--primary);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(31, 186, 224, 0.1);
    transform: rotate(30deg);
}

/* Breadcrumb */
.breadcrumb {
    padding: 2rem 0 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

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

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Blog Header */
.blog-header {
    padding: 3rem 0 2rem;
}

.blog-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text);
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Featured Image */
.featured-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

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

/* Blog Content */
.blog-content {
    padding-bottom: 3rem;
}

.blog-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.blog-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text);
}

.blog-content ul, .blog-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.8rem;
    color: var(--text);
}

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

.blog-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.blog-content a:hover {
    text-decoration: underline;
}

.blog-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(31, 186, 224, 0.1) 0%, rgba(0, 174, 255, 0.1) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--text);
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 159, 67, 0.1) 100%);
    border-left: 4px solid #ff6b6b;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.warning-box p {
    margin: 0;
    color: var(--text);
}

/* SenseFlow Solution Box */
.senseflow-solution {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: var(--shadow);
}

.senseflow-solution h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.senseflow-solution p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.solution-benefits {
    list-style: none;
    margin: 1.5rem 0;
}

.solution-benefits li {
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.solution-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
}

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

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

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

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Social Share */
.social-share {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

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

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

.share-copy {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--card-border);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Related Posts */
.related-posts {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.related-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.related-item h4 {
    padding: 1.2rem;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Blog Navigation */
.blog-nav {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.back-btn, .home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.back-btn:hover, .home-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    padding: 3rem 0;
    margin-top: 6rem;
}

.footer-content {
    text-align: center;
    color: var(--text-light);
}

.footer-content p {
    margin-bottom: 1rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.comparison-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: rgba(31, 186, 224, 0.05);
}

.comparison-table .winner {
    background: rgba(0, 255, 157, 0.1);
    color: var(--text);
    font-weight: 500;
}

/* Pros Cons Grid */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros, .cons {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--card-border);
}

.pros h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.cons h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }

    .featured-image {
        aspect-ratio: 2 / 1;
    }

    .social-share {
        flex-direction: column;
    }

    .share-button {
        width: 100%;
        justify-content: center;
    }

    .senseflow-solution {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th, .comparison-table td {
        padding: 0.75rem;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.6rem 1rem;
    }
}

/* ============================================
   BLOG LISTING PAGE STYLES (blogs.html)
   ============================================ */

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog Hero Section */
.blog-hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blogs-section {
    padding: 2rem 0 4rem;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.blog-image {
    position: relative;
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card .blog-content {
    padding: 1.5rem;
}

.blog-card .blog-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-card .blog-content h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card .blog-content h3 a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card .blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .blogs-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }
}
