/* ultra-blog.css - Centralized styles for blog pages */

.blog-hero {
    min-height: 50vh;
    padding-top: 120px;
    text-align: center;
}

.blog-section {
    padding: 4rem 0 6rem;
}

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

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(79, 186, 241, 0.3);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 186, 241, 0.15);
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.tag-ai {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
}

.tag-marketing {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.tag-ecommerce {
    background: rgba(79, 186, 241, 0.15);
    color: var(--primary);
}

.tag-voice {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
}

.tag-new {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.tag-guide {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.blog-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-card-title-large {
    font-size: 1.4rem;
}

.blog-card-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLICKABLE CARD FIX - Session 183bis
   The ::after pseudo-element creates a full-card click area.
   All other elements must NOT block the click (pointer-events: none)
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;  /* Higher z-index to be on top */
}

.blog-card-title a:hover {
    color: var(--primary);
}

/* All elements inside card must NOT block clicks */
.blog-tags,
.blog-card-excerpt,
.blog-card-footer,
.blog-card-footer time {
    pointer-events: none;  /* Let clicks pass through to ::after */
    position: relative;
    z-index: 5;  /* Below the ::after (z-index: 10) */
}

/* BUT the read-more link should be clickable */
.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    pointer-events: auto;  /* This link IS clickable */
    position: relative;
    z-index: 15;  /* Above the ::after */
}

.read-more:hover {
    text-decoration: underline;
}

/* Tags should also be visually there but not block clicks */
.tag {
    pointer-events: none;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-cta {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(79, 186, 241, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(79, 186, 241, 0.2);
}

.blog-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Individual Article Styles */

.article-container {
    padding-top: 100px;
    padding-bottom: 4rem;
}

.article-max-width {
    max-width: 800px;
    margin: 0 auto;
}

.article-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.article-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: var(--primary);
}

.article-breadcrumb .separator {
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

.article-breadcrumb .current {
    color: var(--primary);
}

.article-header {
    margin-bottom: 3rem;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.meta-dot {
    width: 4px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 50%;
}

.meta-highlight {
    color: var(--primary);
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-light);
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.article-content p {
    margin: 1.5rem 0;
    line-height: 1.6;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-tip {
    background: rgba(79, 186, 241, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.article-cta {
    background: linear-gradient(135deg, rgba(79, 186, 241, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(79, 186, 241, 0.3);
    padding: 2rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    text-align: center;
}

.article-author-box {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.back-to-blog {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.back-to-blog a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-to-blog a:hover {
    text-decoration: underline;
}