/* Blog Styles */

.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.azure-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-content {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Content */
.blog-main {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-main-full {
    max-width: 100%;
}

.blog-article {
    max-width: 100%;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.article-category {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Article Content */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.pattern-section {
    margin: 50px 0;
}

.pattern-section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.pattern-section > p {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 30px;
}

/* Pattern Cards */
.pattern-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pattern-card:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.pattern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.pattern-header:hover {
    background: linear-gradient(135deg, #5568d3 0%, #65408b 100%);
}

.pattern-header h3 {
    font-size: 1.4rem;
    color: white;
    margin: 0;
}

.toggle-icon {
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.pattern-content {
    padding: 30px;
    display: none;
}

.pattern-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.pattern-use-case {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #764ba2;
}

.pattern-use-case h4 {
    font-size: 1.1rem;
    color: #764ba2;
    margin-bottom: 10px;
}

.pattern-use-case ul {
    margin: 0;
    padding-left: 20px;
}

.pattern-use-case li {
    margin-bottom: 8px;
    color: #555;
}

/* Code Blocks */
.code-block {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.code-header {
    background: #2d3748;
    color: #a0aec0;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-block pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 25px;
    margin: 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.code-block code {
    display: block;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tip-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tip-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.tip-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* External Links */
.external-link {
    margin: 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.external-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.external-link a:hover {
    color: #764ba2;
    transform: translateX(5px);
}

.tip-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tip-card ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.tip-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.tip-link {
    display: inline-block;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tip-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea05 0%, #764ba205 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-top: 15px;
    opacity: 0.95;
    font-weight: 400;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
    border: none;
}

.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
}

.article-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.article-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
}

.article-cta .btn {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.article-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero,
    .azure-hero {
        padding: 100px 0 50px;
    }

    .blog-main {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .pattern-section h2 {
        font-size: 1.6rem;
    }

    .pattern-card h3 {
        font-size: 1.3rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .code-block pre {
        font-size: 0.85rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 90px 0 40px;
    }

    .azure-hero {
        padding: 90px 0 40px;
    }

    .blog-hero h1,
    .azure-hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .lead {
        font-size: 1.05rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .pattern-card {
        padding: 20px;
    }

    .article-cta {
        padding: 30px 20px;
    }

    .cta-section {
        padding: 30px 20px;
    }
}
