/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
    padding: 120px 0 60px 0;
    text-align: center;
    background: transparent;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Blog Search Bar */
.blog-search-container {
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-search-icon {
    position: absolute;
    left: 20px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.blog-search-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.blog-search-input:focus {
    border-color: #1E90FF;
    box-shadow: 0 8px 30px rgba(30, 144, 255, 0.15);
    background: rgba(255, 255, 255, 1);
}

.blog-search-input:focus + .blog-search-icon {
    color: #1E90FF;
}

/* Blog Posts Section */
.blog-posts-section {
    padding: 60px 0 80px 0;
    min-height: 50vh;
}

.blog-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Blog Card Styles */
.blog-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(30, 144, 255, 0.3);
}

.blog-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.3s ease;
}

.blog-card-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.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.05);
}

.blog-card-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1E90FF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

.blog-card-meta i {
    margin-right: 6px;
    color: #1E90FF;
}

.blog-card-title {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-card-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #1E90FF;
}

.blog-card-excerpt {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1E90FF;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 12px;
}

.blog-card-link i {
    font-size: 0.9rem;
}

/* Empty State */
.blog-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.empty-state-icon i {
    font-size: 3rem;
    color: white;
}

.empty-state-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}

.empty-state-description {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin-bottom: 32px;
}

.empty-state-description + .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .blog-content-wrapper {
        grid-template-columns: 200px 1fr;
        gap: 32px;
    }

    .blog-toc {
        padding: 18px;
    }

    .blog-toc-title {
        font-size: 0.9rem;
    }

    .blog-toc-nav a {
        font-size: 0.82rem;
        padding: 5px 10px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 40px 0;
    }

    .blog-hero-title {
        font-size: 2.2rem;
    }

    .blog-hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .blog-search-container {
        padding: 0 20px;
        margin-top: 32px;
    }

    .blog-search-input {
        padding: 14px 16px 14px 48px;
        font-size: 0.95rem;
    }

    .blog-search-icon {
        left: 16px;
        font-size: 1rem;
    }

    .blog-posts-section {
        padding: 40px 0 60px 0;
    }

    .blog-section-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
        padding: 0 20px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .blog-card-image,
    .blog-card-image-placeholder {
        height: 200px;
    }

    .blog-card-image-placeholder i {
        font-size: 3rem;
    }

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

    .blog-card-title {
        font-size: 1.3rem;
    }

    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .empty-state-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }

    .empty-state-icon i {
        font-size: 2.5rem;
    }

    .empty-state-title {
        font-size: 1.75rem;
    }

    .empty-state-description {
        font-size: 1rem;
    }

    .blog-empty-state {
        padding: 60px 20px;
    }

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

    .blog-post-header {
        padding: 0 20px;
    }

    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-excerpt {
        font-size: 1.1rem;
    }

    .blog-post-featured-image {
        height: 300px;
    }

    .blog-post-image-placeholder i {
        font-size: 4rem;
    }

    .blog-main-content {
        padding: 0 20px;
    }

    .blog-post-content {
        font-size: 1rem;
        margin: 0 auto;
        max-width: 100%;
    }

    .blog-post-content h2 {
        font-size: 1.75rem;
        margin: 36px 0 16px;
    }

    .blog-post-content h3 {
        font-size: 1.35rem;
        margin: 28px 0 14px;
    }

    .blog-post-share {
        margin: 48px 20px;
        padding: 24px 20px;
    }

    .blog-post-share h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .share-buttons {
        gap: 12px;
    }

    .share-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .blog-post-footer {
        padding: 0 20px;
   
    }

    .blog-legal-disclaimer {
        margin: 24px 20px;
        padding: 20px 16px;
    }

    .blog-legal-disclaimer p {
        font-size: 0.9rem;
    }

    .faq-item {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.95rem;
    }

    /* Table of Contents Mobile - Hide for Better UX */
    .blog-content-wrapper {
        display: block; /* Remove grid layout on mobile */
        padding: 0;
        max-width: 100%;
    }

    .blog-toc {
        display: none; /* Hide TOC on mobile for cleaner experience */
    }

    .blog-main-content {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .blog-post-content {
        font-size: 1rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .blog-post-content h2 {
        font-size: 1.6rem;
        margin-top: 32px;
        margin-bottom: 16px;
    }

    .blog-post-content h3 {
        font-size: 1.3rem;
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .blog-post-content p,
    .blog-post-content li {
        font-size: 1rem;
        line-height: 1.7;
    }

    .blog-post-content ul,
    .blog-post-content ol {
        padding-left: 24px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 90px 0 30px 0;
    }

    .blog-hero-title {
        font-size: 1.9rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .blog-search-container {
        margin-top: 28px;
    }

    .blog-search-input {
        padding: 12px 14px 12px 44px;
        font-size: 0.9rem;
    }

    .blog-search-icon {
        left: 14px;
        font-size: 0.95rem;
    }

    .blog-posts-section {
        padding: 30px 0 40px 0;
    }

    .blog-section-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .blog-posts-grid {
        gap: 20px;
    }

    .blog-card-image,
    .blog-card-image-placeholder {
        height: 180px;
    }

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

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

    .blog-card-title {
        font-size: 1.2rem;
    }

    .blog-card-excerpt {
        font-size: 0.95rem;
    }

    .empty-state-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .empty-state-icon i {
        font-size: 2rem;
    }

    .empty-state-title {
        font-size: 1.5rem;
    }

    .empty-state-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .blog-empty-state {
        padding: 40px 20px;
    }
}

/* Blog Post Page Styles */
.blog-post {
    padding: 120px 0 80px 0;
}

.blog-post-header {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

/* Table of Contents - Sidebar Layout */
.blog-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: start;
    padding: 0 20px;
}

.blog-toc {
    position: sticky;
    top: 120px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.blog-toc::-webkit-scrollbar {
    width: 6px;
}

.blog-toc::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.blog-toc::-webkit-scrollbar-thumb {
    background: rgba(30, 144, 255, 0.3);
    border-radius: 3px;
}

.blog-toc::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 144, 255, 0.5);
}

.blog-toc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-toc-title i {
    color: #1E90FF;
    font-size: 0.9rem;
}

.blog-toc-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-toc-nav ul li {
    margin: 0 0 8px 0;
    padding: 0;
}

.blog-toc-nav a {
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
}

.blog-toc-nav a:hover {
    color: #1E90FF;
    background: rgba(30, 144, 255, 0.08);
}

.blog-toc-nav a.active {
    color: #1E90FF;
    background: rgba(30, 144, 255, 0.12);
    font-weight: 600;
}

.blog-main-content {
    min-width: 0;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1E90FF;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 24px;
    transition: gap 0.3s ease;
}

.blog-back-link:hover {
    gap: 12px;
}

.blog-post-meta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.blog-post-category {
    background: #1E90FF;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-date,
.blog-post-read-time {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
}

.blog-post-date i,
.blog-post-read-time i {
    margin-right: 6px;
    color: #1E90FF;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-post-excerpt {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
}

.blog-post-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.blog-post-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-post-image-placeholder i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.9);
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.85);
}

.blog-post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 48px 0 20px;
    line-height: 1.3;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin: 36px 0 16px;
    line-height: 1.4;
}

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

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

.blog-post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.blog-post-content blockquote {
    margin: 40px 0;
    padding: 24px 32px;
    background: rgba(30, 144, 255, 0.05);
    border-left: 4px solid #1E90FF;
    border-radius: 8px;
    font-style: italic;
    color: rgba(0, 0, 0, 0.8);
}

.blog-post-content blockquote p {
    margin: 0;
    font-size: 1.15rem;
}

.blog-post-share {
    margin: 60px 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    text-align: center;
}

.blog-post-share h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 144, 255, 0.1);
    color: #1E90FF;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    background: #1E90FF;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.3);
}

.share-btn-x .x-logo {
    font-size: 1.3rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
}

.share-success {
    margin-top: 16px;
    padding: 12px 24px;
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-footer {
    margin: 0;
    text-align: center;
}

.blog-post-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.blog-post-footer .btn span,
.blog-post-footer .btn i {
    color: #ffffff;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-image img,
    .blog-card-link,
    .blog-back-link,
    .share-btn {
        transition: none;
    }

    .blog-card:hover {
        transform: none;
    }

    .blog-card:hover .blog-card-image img {
        transform: none;
    }

    .share-btn:hover {
        transform: none;
    }
}

/* Blog Post Page - Additional Mobile Styles */
@media (max-width: 480px) {
    .blog-post {
        padding: 90px 0 50px 0;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }

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

    .blog-post-featured-image {
        height: 240px;
    }

    .blog-post-image-placeholder i {
        font-size: 3rem;
    }

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

    .blog-post-content h2 {
        font-size: 1.5rem;
        margin: 32px 0 14px;
    }

    .blog-post-content h3 {
        font-size: 1.25rem;
        margin: 24px 0 12px;
    }

    .blog-post-content blockquote {
        padding: 20px 24px;
        margin: 32px 0;
    }

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

    .blog-post-share {
        margin: 40px 20px;
        padding: 20px;
    }

    .share-buttons {
        gap: 12px;
    }

    .share-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    /* Table of Contents Hidden on Small Mobile */
    .blog-content-wrapper {
        display: block; /* Ensure no grid on small mobile */
        padding: 0;
        max-width: 100%;
    }

    .blog-toc {
        display: none; /* Keep hidden on smaller screens */
    }

    .blog-post-header {
        padding: 0 16px;
    }

    .blog-main-content {
        padding: 0 16px;
    }

    .blog-post-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .blog-post-content p,
    .blog-post-content li {
        font-size: 0.95rem;
    }

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

    .share-success {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Smooth Scrolling for TOC Links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Legal Disclaimer */
.blog-legal-disclaimer {
    margin: 32px 0;
    padding: 24px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.blog-legal-disclaimer p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
}

.blog-legal-disclaimer strong {
    color: #000000;
    font-weight: 600;
}

/* FAQ Items */
.faq-item {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.75);
    margin: 0;
}

.faq-item a {
    color: #000000;
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.faq-item a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .blog-legal-disclaimer {
        padding: 20px;
        margin: 24px 0;
    }

    .blog-legal-disclaimer p {
        font-size: 0.9rem;
    }

    .faq-item {
        padding: 20px;
        margin-bottom: 24px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.95rem;
    }
}
