/* Blog Styles - Modern Minimal Design */

/* Reset overflow issues */
.blog-hero,
.blog-main,
.blog-post {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 20px 60px;
    text-align: center;
    margin-top: 0;
}

.blog-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.blog-hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

/* Blog Main Layout */
.blog-main {
    padding: 60px 20px 100px;
    width: 100%;
    box-sizing: border-box;
}

.blog-main .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* Category Filters */
.blog-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-filter {
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
}

.category-filter:hover {
    border-color: #667eea;
    color: #667eea;
}

.category-filter.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 32px;
    width: 100%;
}

/* Blog Card */
.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

/* Gradient Card Images */
.blog-card-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-card-gradient i {
    font-size: 3.2rem;
    color: rgba(255, 255, 255, 0.85);
    transition: transform 0.4s ease, color 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.blog-card:hover .blog-card-gradient i {
    transform: scale(1.15);
    color: rgba(255, 255, 255, 1);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.blog-card-category {
    background: #f0f0ff;
    color: #667eea;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.blog-card-meta time {
    color: #94a3b8;
}

.blog-card-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: #111827;
}

.blog-card-content h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.blog-card-content h2 a:hover {
    color: #667eea;
}

.blog-card-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card-author {
    font-size: 0.8rem;
    color: #94a3b8;
}

.blog-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-read-more:hover {
    color: #764ba2;
}

.blog-empty {
    text-align: center;
    color: #94a3b8;
    padding: 80px 20px;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-info {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Blog Post Page */
.blog-post {
    padding: 100px 20px 100px;
}

.blog-post .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 32px;
    color: #94a3b8;
}

.blog-breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

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

.blog-breadcrumb span {
    color: #cbd5e1;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.blog-post-author {
    color: #64748b;
    font-size: 0.85rem;
}

.blog-post-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #111827;
    margin-bottom: 32px;
}

.blog-post-hero-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.blog-post-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Hero Gradient */
.blog-post-hero-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
}

.blog-post-hero-gradient i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.85);
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.15));
}

/* Blog Post Content */
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.blog-post-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 48px 0 16px;
    color: #111827;
    letter-spacing: -0.01em;
}

.blog-post-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 36px 0 12px;
    color: #1f2937;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content a {
    color: #667eea;
    text-decoration: underline;
    text-decoration-color: #c7d2fe;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

.blog-post-content a:hover {
    text-decoration-color: #667eea;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 16px 0 24px 24px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content blockquote {
    border-left: 3px solid #667eea;
    padding: 16px 24px;
    margin: 24px 0;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
}

.blog-post-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #764ba2;
}

.blog-post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Blog Tags */
.blog-post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 40px 0;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.blog-tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Share Buttons */
.blog-post-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.blog-post-share span {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.blog-post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.blog-post-share a:hover {
    background: #667eea;
    color: white;
}

/* Post CTA */
.blog-post-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0;
}

.blog-post-cta h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-post-cta p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.blog-post-cta .app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-post-cta .app-store-badge:first-child {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-post-cta .app-store-badge:first-child i {
    color: #5dade2;
    font-size: 1.4rem;
}

.blog-post-cta .app-store-badge:last-child {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-post-cta .app-store-badge:last-child i {
    color: #fff;
    font-size: 1.2rem;
}

.blog-post-cta .app-store-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.blog-post-cta .app-store-badge .badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.blog-post-cta .app-store-badge .badge-text small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Blog Download Buttons (in post content) */
.blog-download-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0 32px;
    justify-content: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.download-btn i {
    font-size: 1.3rem;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.download-btn:active {
    transform: translateY(-1px);
}

/* iOS Button - Sleek Black with Blue Accent */
.download-btn-ios {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-btn-ios:hover {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    box-shadow: 0 8px 25px rgba(15, 52, 96, 0.4);
}

.download-btn-ios i {
    color: #5dade2;
}

/* Android Button - Vibrant Green Gradient */
.download-btn-android {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.download-btn-android:hover {
    background: linear-gradient(135deg, #00cec9 0%, #55efc4 100%);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.download-btn-android i {
    color: #fff;
}

/* Back Link */
.blog-back-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.blog-back-link:hover {
    color: #764ba2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 16px 40px;
    }

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

    .blog-main {
        padding: 40px 16px 60px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post {
        padding: 70px 16px 60px;
    }

    .blog-post-header h1 {
        font-size: 1.7rem;
    }

    .blog-post-content {
        font-size: 1rem;
    }

    .blog-post-cta {
        padding: 32px 20px;
    }

    .blog-categories {
        gap: 8px;
    }

    .category-filter {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .blog-download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .blog-post-hero-gradient {
        height: 180px;
    }

    .blog-post-hero-gradient i {
        font-size: 3.5rem;
    }

    .blog-card-gradient i {
        font-size: 2.5rem;
    }
}
