/* Blog Index Page Styles - HubSpot-inspired layout */

/* Visually hidden H1 for SEO */
.blog-page-header {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 24px 0;
}
.blog-page-h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
@media (max-width: 640px) {
    .blog-page-header { padding: 80px 16px 0; }
    .blog-page-h1 { font-size: 1.3rem; }
}

/* Hero Container */
.blog-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

@media (max-width: 768px) {
    .blog-hero-container {
        grid-template-columns: 1fr;
        padding: 24px 16px 0;
    }
}

/* Main Feature (Left Column) */
.blog-main-feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-main-feature:hover {
    transform: translateY(-5px);
    border-color: rgba(132, 0, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-main-feature-img {
    display: block;
    width: 100%;
    overflow: hidden;
}

.blog-main-feature-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.blog-main-feature:hover .blog-main-feature-img img {
    transform: scale(1.03);
}

.blog-main-feature-content {
    padding: 48px;
}

@media (max-width: 640px) {
    .blog-main-feature-content {
        padding: 24px;
    }
}

.blog-main-feature-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .blog-main-feature-title {
        font-size: 1.5rem;
    }
}

.blog-main-feature-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-main-feature-title a:hover {
    color: rgb(132, 100, 255);
}

.blog-main-feature-desc {
    color: hsla(0, 0%, 100%, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.blog-meta {
    font-size: 0.9rem;
    color: hsla(0, 0%, 100%, 0.4);
    font-weight: 500;
    display: flex;
    gap: 16px;
}

.blog-card-category {
    font-size: 0.7rem;
    color: rgb(132, 100, 255);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Featured List (Right Column) */
.blog-featured-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    border-bottom: 2px solid rgb(132, 0, 255);
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.blog-list-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-list-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.blog-list-title a {
    color: #eee;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-list-title a:hover {
    color: rgb(132, 100, 255);
}

/* Grid Section */
.blog-grid-section {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 24px;
}

@media (max-width: 640px) {
    .blog-grid-section {
        margin: 32px auto;
        padding: 0 16px;
    }
}

.blog-grid-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-grid-title {
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
}

@media (max-width: 640px) {
    .blog-grid-title {
        font-size: 1.5rem;
    }
}

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

/* Blog Card - exact copy of yuque hubspot-card style */
.blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(6, 0, 16, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(132, 0, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(132, 0, 255, 0.1);
}

.blog-card-visual {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.blog-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
    transition: transform 0.5s ease;
}

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

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

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: rgb(132, 100, 255);
}

.blog-card-desc {
    font-size: 0.9rem;
    color: hsla(0, 0%, 100%, 0.6);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: hsla(0, 0%, 100%, 0.4);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
