/* ============================================
   BLOG STYLES — BlueWave HR Content Engine
   Uses variables from styles.css (--blue-XXX, --gray-XXX)
   ============================================ */

/* ===== BLOG LISTING PAGE ===== */
.blog-hero {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-400) 100%);
    padding: 8rem 0 4rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.blog-hero .section-label {
    color: var(--blue-200);
}

.blog-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.blog-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image .blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue-700);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.65;
    flex: 1;
}

.blog-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.blog-card-author-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
}

.blog-card-read {
    font-size: 0.8rem;
    color: var(--blue-600);
    font-weight: 600;
}

/* ===== SINGLE BLOG POST ===== */
.blog-post-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.blog-post-category {
    background: rgba(255, 255, 255, 0.15);
    color: var(--blue-200);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
}

.blog-post-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-post-readtime {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 800px;
    color: #fff;
}

/* Blog Content Area */
.blog-post-content {
    max-width: 780px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.blog-post-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.blog-post-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 2rem 0 0.75rem;
}

.blog-post-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    list-style: disc;
}

.blog-post-content ol {
    list-style: decimal;
}

.blog-post-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.blog-post-content strong {
    color: var(--gray-900);
}

/* Callout / Alert Box */
.blog-callout {
    background: linear-gradient(135deg, var(--blue-50), rgba(0, 180, 216, 0.08));
    border-left: 4px solid var(--blue-600);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
}

.blog-callout p {
    color: var(--blue-900);
    font-weight: 500;
    margin-bottom: 0;
}

.blog-callout.callout-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.blog-callout.callout-warning p {
    color: #92400e;
}

.blog-callout.callout-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.blog-callout.callout-success p {
    color: #065f46;
}

/* CTA Box in Blog */
.blog-cta-box {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin: 3rem 0;
    text-align: center;
}

.blog-cta-box h3 {
    color: #fff !important;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-cta-box p {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta-box .btn {
    display: inline-flex;
}

/* Author Bio */
.blog-author-bio {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin: 3rem 0;
}

.blog-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.blog-author-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.blog-author-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Related Posts */
.blog-related {
    padding: 4rem 0;
    background: var(--gray-50);
}

.blog-related h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Newsletter Signup in Blog */
.blog-newsletter {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.08), var(--blue-50));
    border: 2px solid var(--blue-100);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2.5rem 0;
    text-align: center;
}

.blog-newsletter h3 {
    font-family: var(--font-heading);
    color: var(--blue-900);
    margin-bottom: 0.5rem;
}

.blog-newsletter p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Tag Pills */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
}

.blog-tag {
    background: var(--blue-50);
    color: var(--blue-700);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-tag:hover {
    background: var(--blue-100);
}

/* ===== SOCIAL SHARING BAR ===== */
.blog-share-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.blog-share-bar span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.blog-share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.blog-share-btn.share-linkedin {
    background: #0A66C2;
}

.blog-share-btn.share-facebook {
    background: #1877F2;
}

.blog-share-btn.share-x {
    background: #000;
}

.blog-share-btn.share-email {
    background: var(--gray-600);
}

.blog-share-btn.share-copy {
    background: var(--gray-400);
    cursor: pointer;
    border: none;
}

.blog-share-btn.share-copy.copied {
    background: #10b981;
}

/* ===== FOOTER SOCIAL ICONS ===== */
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-content {
        padding: 0 1rem;
    }

    .blog-author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .blog-cta-box {
        padding: 1.5rem;
    }

    .blog-post-meta {
        gap: 0.75rem;
    }
}