/* 
  Blintix Blog Styles
  Extends the main design system with specific blog components.
*/

.hero-title {
    font-weight: 400 !important;
    text-align: center;
    margin-inline: auto;
}

.blog-hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(167, 139, 250, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(255, 140, 0, 0.05), transparent);
    position: relative;
    overflow: hidden;
}

.blog-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-pills {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pill {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pill:hover, .pill.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    color: var(--text-main);
    transform: translateY(-2px);
}

.pill-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 8px;
    background: var(--accent-primary);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.blog-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.blog-card-link:hover {
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.blog-card-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
    background: #000000;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid var(--border-subtle);
}

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

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.blog-card-category {
    color: var(--accent-primary);
    font-weight: 500;
}

.post-meta-top {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-main);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 80px;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-num.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: black;
    font-weight: 600;
}

.page-num:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

/* Sidebar Styling if needed */
.blog-sidebar {
    padding-left: 40px;
}

.sidebar-widget {
    margin-bottom: 48px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

/* Technical Article Styles */
.article-container {
    max-width: 800px;
    margin: 40px auto 120px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 80px;
    position: relative;
    z-index: 10;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.article-body h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin: 80px 0 32px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-body h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 60px 0 24px;
    color: white;
    opacity: 0.9;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    margin: 60px 0;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.article-body ul, .article-body ol {
    margin: 24px 0;
    padding-left: 20px;
}

.article-body ul li {
    margin-bottom: 12px;
    position: relative;
    list-style: none;
    padding-left: 28px;
}

.article-body ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 500;
}

.problem-section {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin: 40px 0;
}

.problem-title {
    color: #ef4444;
    font-weight: 500;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-hero {
    padding: 160px 0 60px;
    position: relative;
    background: #000;
}

.post-author-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    padding: 2px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 400;
    font-size: 0.95rem;
    color: white;
}

.author-title {
    font-size: 0.75rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-hero-visual {
    max-width: 1000px;
    width: 100%;
    margin: 60px auto 0;
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 1);
    background: transparent;
}

.post-hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.post-title {
    font-size: 4.8rem;
    line-height: 1;
    font-weight: 400;
    margin-bottom: 32px;
}

.post-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .article-container {
        margin: -40px 15px 80px;
        padding: 40px 24px;
    }
    .article-body h2 { font-size: 1.8rem; }
}

/* ZipIt Pro CTA - Premium Redesign */
.zipit-pro-cta {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 40px;
    border-radius: 32px;
    text-align: center;
    margin: 100px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.zipit-pro-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.12), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.zipit-pro-cta h3 {
    font-family: 'Plus Jakarta Sans', serif;
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 24px !important;
    color: white !important;
    font-weight: 500 !important;
    position: relative;
    z-index: 1;
}

.zipit-pro-cta h3 span {
    display: block;
    background: linear-gradient(to right, #A78BFA, #F472B6, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.zipit-pro-cta p {
    margin-bottom: 48px;
    opacity: 0.6;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    background: linear-gradient(135deg, #a78bfa, #f472b2, #f97316);
    color: white !important;
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.5);
    border: none;
    font-size: 1.1rem;
    white-space: nowrap;
    line-height: 1;
}

.btn-cta-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px -10px rgba(234, 88, 12, 0.7);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    font-size: 1.05rem;
}

.btn-cta-outline:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.chrome-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2;
    margin-right: 4px;
    display: block;
}

@media (max-width: 768px) {
    .zipit-pro-cta {
        padding: 60px 24px;
        margin: 60px 0;
    }
    .zipit-pro-cta h3 {
        font-size: 2.5rem !important;
    }
    .cta-button-group {
        flex-direction: column;
    }
    .btn-cta-primary, .btn-cta-outline {
        width: 100%;
        justify-content: center;
    }
}

/* FAQ Accordion */
.faq-section {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid var(--border-subtle);
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--accent-primary);
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 20px;
    opacity: 0.8;
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Tools Grid for Blog Posts */
.tools-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.tool-link-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-link-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.tool-card-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.tool-card-title {
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.tool-card-desc {
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.4;
}
