/* ========================================
   BLOG PAGE PREMIUM STYLES
   Modern, Enterprise-Level Blog Styling
   ======================================== */

/* Blog Hero Section */
.blog-hero {
    position: relative;
    background: #ffffff;
    padding: 140px 0 80px;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Floating Bubbles for Blog Hero */
.blog-hero .bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(63, 220, 187, 0.1));
    backdrop-filter: blur(10px);
    animation: floatBubble 20s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.blog-hero .bubble:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.blog-hero .bubble:nth-child(2) {
    width: 120px;
    height: 120px;
    right: 15%;
    top: 30%;
    animation-delay: 2s;
    animation-duration: 30s;
}

.blog-hero .bubble:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 20%;
    bottom: 25%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.blog-hero .bubble:nth-child(4) {
    width: 100px;
    height: 100px;
    right: 25%;
    bottom: 20%;
    animation-delay: 1s;
    animation-duration: 28s;
}

.blog-hero .bubble:nth-child(5) {
    width: 70px;
    height: 70px;
    left: 50%;
    top: 15%;
    animation-delay: 3s;
    animation-duration: 24s;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-60px) translateX(-20px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30px) translateX(30px) scale(1.05);
        opacity: 0.7;
    }
}

.blog-hero-content {
    position: relative;
    z-index: 10;
}

.blog-hero h1,
.blog-hero h1.text-white {
    color: #1f2937 !important;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
    font-size: clamp(1.875rem, 5vw, 2.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Blog Hero Category Badge */
.blog-hero .inline-flex {
    background: rgba(64, 224, 208, 0.15) !important;
    backdrop-filter: blur(10px);
    color: #0891B2 !important;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

.blog-hero .inline-flex svg {
    color: #0D7C7C !important;
}

/* Blog Hero Meta Items */
.blog-hero .blog-meta-item {
    color: #4b5563 !important;
}

.blog-hero .blog-meta-item svg {
    color: #0D7C7C !important;
}

/* Blog Featured Image */
.blog-featured-image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-top: 40px;
}

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

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

/* Blog Article Container */
.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Blog Meta Information */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f3f4f6;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.blog-meta-item svg {
    width: 18px;
    height: 18px;
    color: #0D7C7C;
}

/* Blog Typography */
.blog-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 24px;
}

.blog-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    color: #0D7C7C;
    margin-top: 48px;
    margin-bottom: 20px;
}

.blog-content h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
    line-height: 1.4;
    color: #374151;
    margin-top: 36px;
    margin-bottom: 16px;
}

.blog-content h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.5;
    color: #4b5563;
    margin-top: 28px;
    margin-bottom: 12px;
}

.blog-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 24px;
}

.blog-content strong {
    font-weight: 700;
    color: #0D7C7C;
}

.blog-content em {
    font-style: italic;
    color: #6b7280;
}

/* Blog Lists */
.blog-content ul,
.blog-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.blog-content ul li,
.blog-content ol li {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 12px;
    position: relative;
}

.blog-content ul li::marker {
    color: #0D7C7C;
    font-size: 1.2em;
}

.blog-content ol li::marker {
    color: #0D7C7C;
    font-weight: 700;
}

/* Blog Blockquote */
.blog-content blockquote {
    position: relative;
    margin: 40px 0;
    padding: 30px 40px 30px 80px;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border-left: 5px solid #40E0D0;
    border-radius: 12px;
    font-size: 20px;
    font-style: italic;
    color: #1f2937;
}

.blog-content blockquote::before {
    content: '"';
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 60px;
    font-weight: 900;
    color: #0D7C7C;
    opacity: 0.3;
    line-height: 1;
}

/* Blog Images */
.blog-content img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

/* Blog Code Blocks */
.blog-content code {
    background: #f3f4f6;
    color: #0D7C7C;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.blog-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 32px 0;
}

.blog-content pre code {
    background: transparent;
    color: #f3f4f6;
    padding: 0;
}

/* Blog Links */
.blog-content a {
    color: #0D7C7C;
    text-decoration: underline;
    text-decoration-color: rgba(13, 124, 124, 0.3);
    text-underline-offset: 4px;
    transition: all 0.3s ease;
}

.blog-content a:hover {
    color: #0A5F5F;
    text-decoration-color: #0A5F5F;
}

/* Blog Tables */
.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-content table thead {
    background: linear-gradient(135deg, #40E0D0 0%, #0891B2 100%);
}

.blog-content table th {
    padding: 16px;
    text-align: left;
    color: white;
    font-weight: 600;
}

.blog-content table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.blog-content table tbody tr:hover {
    background: #f9fafb;
}

/* Call-to-Action Box */
.blog-cta-box {
    background: linear-gradient(135deg, #40E0D0 0%, #0891B2 50%, #f093fb 100%);
    color: white;
    padding: 48px;
    border-radius: 24px;
    margin: 60px 0;
    text-align: center;
    box-shadow: 0 20px 40px -12px rgba(64, 224, 208, 0.4);
}

.blog-cta-box h3 {
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    margin-top: 0;
}

.blog-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

/* Share Buttons */
.blog-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 60px 0;
    padding: 30px;
    background: #f9fafb;
    border-radius: 16px;
}

.blog-share-label {
    font-weight: 600;
    color: #374151;
    margin-right: 8px;
}

.blog-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: white;
    color: #6b7280;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.blog-share-button:hover {
    background: #40E0D0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(64, 224, 208, 0.3);
}

/* Author Box */
.blog-author {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    border-radius: 16px;
    margin: 60px 0;
    border: 2px solid rgba(64, 224, 208, 0.1);
}

.blog-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-author-info h4 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 20px;
}

.blog-author-info p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

/* Related Posts */
.blog-related {
    padding: 80px 0;
    background: #f9fafb;
}

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

.blog-related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.blog-related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

.blog-related-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.blog-related-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-related-card-excerpt {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 60px;
    }

    .blog-featured-image {
        height: 300px;
        margin-top: 30px;
    }

    .blog-article {
        padding: 40px 16px;
    }

    .blog-content blockquote {
        padding: 20px 20px 20px 60px;
        font-size: 18px;
    }

    .blog-cta-box {
        padding: 32px 24px;
    }

    .blog-author {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .blog-share {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Floating Shapes for Blog Hero */
.blog-floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(63, 220, 187, 0.1)) !important;
    opacity: 1;
    animation: floatShape 20s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
}

/* Table of Contents */
.blog-toc {
    background: #f9fafb;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border-left: 5px solid #40E0D0;
}

.blog-toc h3 {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: #111827 !important;
    background: none !important;
    -webkit-text-fill-color: #111827 !important;
}

.blog-toc ul {
    margin: 0;
    padding-left: 20px;
}

.blog-toc ul li {
    margin-bottom: 8px;
}

.blog-toc ul li a {
    color: #6b7280;
    text-decoration: none;
}

.blog-toc ul li a:hover {
    color: #0D7C7C;
}
