/* ===========================================
   BLOG STYLES - MATCHING LANDING PAGE DESIGN
   =========================================== */

/* Use same font as landing page */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

/* ===========================================
   GENERAL BLOG STYLES
   =========================================== */

.blog-hero {
    background: linear-gradient(305deg, #000514, #000a1e, #001025, #00192b, #000514);
    background-size: 400% 716%;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.15)"/></pattern></defs><rect width="1000" height="1000" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.blog-hero p {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===========================================
   BLOG ARTICLES
   =========================================== */

.blog-article {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
    line-height: 1.8;
}

.article-header {
    text-align: center;
    margin-bottom: 4rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.article-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: "Space Grotesk", sans-serif;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.article-meta .date,
.article-meta .reading-time {
    display: flex;
    gap: 0.5rem;
}

.article-meta::before {
    content: "📅";
}

.article-meta .reading-time::before {
    content: "⏱️";
}

/* ===========================================
   BEAUTIFUL TYPOGRAPHY
   =========================================== */

.article-content {
    font-family: "Space Grotesk", sans-serif;
    color: rgba(255,255,255,0.9);
}

.article-content h2 {
    font-size: 4.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 4rem 0 2rem;
    line-height: 1.2;
    font-family: "Space Grotesk", sans-serif;
}


.article-content h3 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 3rem 0 1.5rem;
    line-height: 1.2;
    font-family: "Space Grotesk", sans-serif;
}

.article-content p {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 2;
    margin-bottom: 2rem;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
}

.article-content ul,
.article-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.article-content li {
    font-size: 1.7rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
    position: relative;
}

.article-content li::marker {
    color: #667eea;
    font-size: 1.5rem;
}

/* ===========================================
   STUNNING COMPARISON TABLES
   =========================================== */

.comparison-table {
    width: 100%;
    border-radius: 2.5rem;
    overflow: hidden;
    margin: 3rem 0;
    background-color: rgba(75,85,157,.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.comparison-table th {
    padding: 2rem 1.5rem;
    text-align: left;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table td {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.6rem;
    color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.comparison-table tr:hover td {
    background: rgba(255,255,255,0.05);
    transform: translateX(5px);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* ===========================================
   FEATURE HIGHLIGHT BOXES
   =========================================== */

.feature-highlight {
    background-color: rgba(75,85,157,.1);
    border-radius: 2.5rem;
    padding: 3rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(102,126,234,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(118,75,162,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(102,126,234,0.05)"/></svg>');
    opacity: 0.5;
}

.feature-highlight h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.feature-highlight ul {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 2;
}

.feature-highlight li {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    padding-left: 3rem;
}

.feature-highlight li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1.5rem;
}

.feature-highlight li:last-child {
    border-bottom: none;
}

.feature-highlight p {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.8);
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

/* ===========================================
   STUNNING CTA BUTTONS
   =========================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.cta-button.primary {
    background-color: rgba(75,85,157,.8);
    color: #ffffff;
}

.cta-button.primary:hover {
    transform: scale(1.07);
    box-shadow: 0 1.3rem 1.3rem -1.5rem rgba(75,85,157,0.8);
}

.cta-section {
    text-align: center;
    margin: 5rem 0;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.cta-section h3 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================================
   BLOG GRID & CARDS
   =========================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.blog-post {
    background-color: rgba(75,85,157,.1);
    border-radius: 2.5rem;
    overflow: hidden;
    transition: all 0.25s linear;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.blog-post:hover {
    transform: scale(1.07);
    box-shadow: 0 1.3rem 1.3rem -1.5rem rgba(75,85,157,0.8);
}

.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover img {
    transform: scale(1.05);
}

.blog-post h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 2rem 1rem;
    line-height: 1.3;
}

.blog-post h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post h2 a:hover {
    color: #667eea;
}

.blog-post p {
    font-size: 1.6rem;
    color: rgba(255,255,255,0.7);
    margin: 0 2rem 2rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin: 0 2rem 2rem;
    padding: 1rem 2rem;
    background-color: rgba(75,85,157,.8);
    color: #ffffff;
    text-decoration: none;
    border-radius: 2.5rem;
    font-weight: 600;
    font-size: 1.6rem;
    transition: all 0.25s linear;
}

.read-more:hover {
    transform: scale(1.07);
    box-shadow: 0 1.3rem 1.3rem -1.5rem rgba(75,85,157,0.8);
}

/* ===========================================
   ANIMATIONS & EFFECTS
   =========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0.01;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-content h2,
.article-content h3,
.article-content p,
.article-content ul,
.article-content ol {
    animation: fadeInUp 0.6s ease-out;
}

.article-content h2:nth-child(1) { animation-delay: 0.1s; }
.article-content h3:nth-child(2) { animation-delay: 0.2s; }
.article-content p:nth-child(3) { animation-delay: 0.3s; }

/* ===========================================
   MOBILE RESPONSIVENESS
   =========================================== */

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 3rem;
    }

    .blog-hero p {
        font-size: 1.6rem;
    }

    .article-header h1 {
        font-size: 2.5rem;
    }

    .article-content h2 {
        font-size: 2.2rem;
    }

    .article-content h3 {
        font-size: 1.8rem;
    }

    .article-content p {
        font-size: 1.6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
        font-size: 1.4rem;
    }

    .feature-highlight {
        padding: 2rem;
    }

    .feature-highlight h3 {
        font-size: 2rem;
    }

    .cta-button {
        padding: 1.2rem 2rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 4rem 0 3rem;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .comparison-table {
        font-size: 1.2rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem;
    }
}

/* ===========================================
   CODE SYNTAX HIGHLIGHTING
   =========================================== */

.article-content code {
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    color: #e74c3c;
}

.article-content pre {
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    padding: 2rem;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #ecf0f1;
}

/* ===========================================
   QUOTES & HIGHLIGHTS
   =========================================== */

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    left: -1rem;
    top: -1rem;
    font-family: Georgia, serif;
}

/* ===========================================
   LOADING ANIMATIONS
   =========================================== */

.loading {
    opacity: 0.01;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* ===========================================
   ACCESSIBILITY IMPROVEMENTS
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.cta-button:focus,
.read-more:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-highlight {
        border: 2px solid #ffffff;
    }

    .comparison-table {
        border: 2px solid #ffffff;
    }
}