/* ==========================================
   Hero Section
   ========================================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: var(--line-height-normal);
    color: var(--text-tertiary);
    max-width: 700px;
}

.hero-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ==========================================
   Section Headings
   ========================================== */
.section-heading {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ==========================================
   Home Layout - Main + Sidebar
   ========================================== */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.home-main {
    min-width: 0;
}

.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    animation: fadeInUp 0.6s ease-out backwards;
}

.sidebar-section-heading {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sidebar-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.sidebar-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.sidebar-card-link:hover .sidebar-card {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    background: var(--bg-primary);
}

.sidebar-badge {
    display: inline-block;
    background: var(--accent-muted);
    color: var(--bg-primary);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-section.bookshelf-section .sidebar-badge {
    background: var(--accent-secondary);
}

.sidebar-section.videos-section .sidebar-badge {
    background: var(--accent-tertiary);
}

.sidebar-card-duration {
    font-size: 0.75rem;
    color: var(--accent-primary);
    margin-top: 0.3rem;
    font-weight: 500;
}

.sidebar-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: var(--line-height-tight);
    margin-bottom: 0.2rem;
}

.sidebar-card-author {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-bottom: 0.3rem;
}

.sidebar-card-excerpt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
}

.sidebar-card-rating {
    display: flex;
    gap: 0.1rem;
    margin-top: 0.3rem;
}

.sidebar-card-rating .star {
    color: var(--accent-primary);
    font-size: 0.75rem;
}

.sidebar-view-all {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: var(--spacing-sm);
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--accent-primary);
}

.sidebar-view-all:hover {
    color: var(--accent-tertiary);
    border-bottom-color: var(--accent-tertiary);
}

.posts-section {
    margin-bottom: var(--spacing-xl);
}

/* ==========================================
   Posts Grid
   ========================================== */
.posts-grid {
    display: grid;
    gap: var(--spacing-md);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-primary);
    transition: height var(--transition-normal);
}

.post-card-link:hover .post-card {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.post-card-link:hover .post-card::before {
    height: 100%;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
}

.post-meta time {
    color: var(--text-tertiary);
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: var(--bg-tertiary);
    color: var(--accent-tertiary);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-title {
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.post-card-link:hover .post-title {
    color: var(--accent-primary);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-normal);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.read-time {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.post-arrow {
    color: var(--accent-primary);
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.post-card-link:hover .post-arrow {
    transform: translateX(4px);
}

/* ==========================================
   Responsive Design - Home
   ========================================== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: var(--spacing-md) 0;
        gap: var(--spacing-lg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .post-title a {
        font-size: 1.3rem;
    }

    .post-card {
        padding: var(--spacing-md);
    }

    .home-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .home-sidebar {
        gap: var(--spacing-md);
    }

    .sidebar-section {
        padding: var(--spacing-md);
    }
}
