/**
 * IRONCREST Software - Blog Styles
 * Modern, clean blog design with brand colors
 */

/* Page Badge - Standard Component */
.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
}

.page-badge i {
    font-size: 1.125rem;
    color: #60a5fa;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #2A3B8F 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.blog-hero__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.blog-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.blog-search__input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.blog-search__input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.blog-search__input:focus {
    outline: none;
    border-color: #2B68C1;
    background: rgba(255, 255, 255, 0.15);
}

.blog-search__button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #2B68C1;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-search__button:hover {
    background: #2A3B8F;
    transform: translateY(-50%) scale(1.05);
}

/* Categories */
.blog-categories {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.blog-categories__list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-category-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-category-pill:hover {
    background: #e0f2fe;
    color: #2B68C1;
    transform: translateY(-2px);
}

.blog-category-pill.active {
    background: linear-gradient(135deg, #2A3B8F 0%, #2B68C1 100%);
    color: white;
}

.blog-category-pill__count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.blog-category-pill.active .blog-category-pill__count {
    background: rgba(255, 255, 255, 0.3);
}

/* Featured Post */
.blog-featured {
    padding: 4rem 0;
    background: #f8fafc;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.featured-card__image {
    height: 100%;
    min-height: 400px;
}

.featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card__content {
    padding: 3rem 3rem 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card__category {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: #e0f2fe;
    color: #2A3B8F;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.featured-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.featured-card__title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-card__title a:hover {
    color: #2B68C1;
}

.featured-card__excerpt {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.featured-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.meta-author {
    font-weight: 600;
    color: #475569;
}

.meta-separator {
    color: #cbd5e1;
}

.featured-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2B68C1;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.featured-card__link:hover {
    gap: 0.75rem;
}

/* Blog Grid */
.blog-grid {
    padding: 4rem 0;
}

.blog-grid__header {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-grid__header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-grid__posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.blog-card__image {
    height: 220px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e0f2fe;
    color: #2A3B8F;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: fit-content;
    text-decoration: none;
}

.blog-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.blog-card__title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card__title a:hover {
    color: #2B68C1;
}

.blog-card__excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
}

.blog-pagination__btn,
.blog-pagination__page {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-pagination__btn {
    background: white;
    color: #2B68C1;
    border: 2px solid #2B68C1;
}

.blog-pagination__btn:hover {
    background: #2B68C1;
    color: white;
}

.blog-pagination__pages {
    display: flex;
    gap: 0.5rem;
}

.blog-pagination__page {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.blog-pagination__page:hover {
    background: #f8fafc;
    border-color: #2B68C1;
    color: #2B68C1;
}

.blog-pagination__page.active {
    background: linear-gradient(135deg, #2A3B8F 0%, #2B68C1 100%);
    color: white;
    border-color: transparent;
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 6rem 2rem;
}

.blog-empty h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.blog-empty p {
    color: #64748b;
    font-size: 1.125rem;
}

/* Article */
.article {
    background: #f8fafc;
    padding: 2rem 0 4rem;
}

.article__container {
    max-width: 900px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2B68C1;
}

.breadcrumb__separator {
    color: #cbd5e1;
}

/* Article Header */
.article__header {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.article__category {
    display: inline-block;
    background: linear-gradient(135deg, #2A3B8F 0%, #2B68C1 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article__category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 104, 193, 0.3);
}

.article__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9375rem;
}

.article__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article__meta-item i {
    color: #2B68C1;
    font-size: 1rem;
}

.article__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A3B8F 0%, #2B68C1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.author-name {
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 0.25rem;
}

.author-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.article__share .share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article__share .share-btn:hover {
    border-color: #2B68C1;
    color: #2B68C1;
    transform: scale(1.05);
}

/* Article Image */
.article__image {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    overflow: hidden;
}

.article__image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

/* Article Content */
.article__content {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    font-size: 1.1875rem;
    line-height: 1.8;
    color: #334155;
}

.article__content h1,
.article__content h2,
.article__content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1e293b;
    margin: 2.5rem 0 1.25rem;
    line-height: 1.3;
}

.article__content h1 {
    font-size: 2.25rem;
}

.article__content h2 {
    font-size: 1.875rem;
}

.article__content h3 {
    font-size: 1.5rem;
}

.article__content p {
    margin-bottom: 1.5rem;
}

.article__content strong {
    font-weight: 700;
    color: #1e293b;
}

.article__content a {
    color: #2B68C1;
    text-decoration: none;
    border-bottom: 2px solid #2B68C1;
    transition: border-color 0.3s ease;
}

.article__content a:hover {
    border-bottom-color: #2A3B8F;
}

.article__content code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e11d48;
}

.article__content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article__content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article__content ul,
.article__content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article__content li {
    margin-bottom: 0.75rem;
}

.article__content blockquote {
    border-left: 4px solid #2B68C1;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748b;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
}

.article__content hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 3rem 0;
}

.article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article__content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Article Footer */
.article__footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: #f8fafc;
}

.related-posts__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero {
        padding: 4rem 0 3rem;
    }
    
    .blog-hero__title {
        font-size: 2.5rem;
    }
    
    .blog-categories {
        top: 60px;
    }
    
    .featured-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .featured-card__image {
        min-height: 250px;
    }
    
    .featured-card__content {
        padding: 2rem;
    }
    
    .featured-card__title {
        font-size: 1.75rem;
    }
    
    .blog-grid__posts {
        grid-template-columns: 1fr;
    }
    
    .article__title {
        font-size: 2rem;
    }
    
    .article__excerpt {
        font-size: 1.125rem;
    }
    
    .article__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .related-posts__grid {
        grid-template-columns: 1fr;
    }
}
