/* ==========================================================================
   Additional Component Styles
   ========================================================================== */

/* Main Content Area */
.hc-main {
    min-height: calc(100vh - var(--hc-header-height) - 200px);
    padding: var(--hc-spacing-2xl) 0;
}

.hc-main--fullwidth {
    padding: 0;
}

/* Page Header */
.hc-page-header {
    margin-bottom: var(--hc-spacing-2xl);
    text-align: center;
}

.hc-page-title {
    margin-bottom: var(--hc-spacing-sm);
}

.hc-page-description {
    color: var(--hc-text-secondary);
    font-size: var(--hc-text-lg);
}

/* Posts Grid */
.hc-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--hc-spacing-xl);
}

/* Post Card */
.hc-post-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.hc-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--hc-transition-slow);
}

.hc-post-card:hover .hc-post-card__image img {
    transform: scale(1.05);
}

.hc-post-card__header {
    margin-bottom: var(--hc-spacing-md);
}

.hc-post-card__title {
    font-size: var(--hc-text-lg);
    margin-bottom: var(--hc-spacing-sm);
}

.hc-post-card__title a {
    color: var(--hc-text);
}

.hc-post-card__title a:hover {
    color: var(--hc-primary);
}

.hc-post-card__meta {
    display: flex;
    gap: var(--hc-spacing-md);
    font-size: var(--hc-text-sm);
    color: var(--hc-text-muted);
}

.hc-post-card__excerpt {
    color: var(--hc-text-secondary);
    font-size: var(--hc-text-sm);
    margin-bottom: var(--hc-spacing-md);
}

/* Single Post */
.hc-single__hero {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: var(--hc-spacing-2xl);
}

.hc-single__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hc-single__header {
    text-align: center;
    margin-bottom: var(--hc-spacing-2xl);
    padding-bottom: var(--hc-spacing-xl);
    border-bottom: 1px solid var(--hc-border);
}

.hc-single__title {
    font-size: var(--hc-text-4xl);
    margin-bottom: var(--hc-spacing-lg);
}

.hc-single__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--hc-spacing-lg);
    color: var(--hc-text-secondary);
    font-size: var(--hc-text-sm);
}

.hc-single__author {
    display: flex;
    align-items: center;
    gap: var(--hc-spacing-sm);
}

.hc-single__author img {
    border-radius: var(--hc-radius-full);
}

.hc-single__footer {
    margin-top: var(--hc-spacing-2xl);
    padding-top: var(--hc-spacing-lg);
    border-top: 1px solid var(--hc-border);
}

.hc-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hc-spacing-sm);
}

/* Content Styles */
.hc-content {
    line-height: var(--hc-leading-relaxed);
}

.hc-content h2,
.hc-content h3,
.hc-content h4 {
    margin-top: var(--hc-spacing-2xl);
    margin-bottom: var(--hc-spacing-md);
}

.hc-content p {
    margin-bottom: var(--hc-spacing-lg);
}

.hc-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--hc-radius);
}

.hc-content ul,
.hc-content ol {
    padding-left: var(--hc-spacing-xl);
    margin-bottom: var(--hc-spacing-lg);
}

.hc-content li {
    margin-bottom: var(--hc-spacing-sm);
}

.hc-content blockquote {
    margin: var(--hc-spacing-xl) 0;
    padding: var(--hc-spacing-lg);
    border-left: 4px solid var(--hc-primary);
    background: var(--hc-bg-alt);
    border-radius: 0 var(--hc-radius) var(--hc-radius) 0;
}

.hc-content blockquote p:last-child {
    margin-bottom: 0;
}

.hc-content pre {
    background: var(--hc-bg-alt);
    padding: var(--hc-spacing-lg);
    border-radius: var(--hc-radius);
    overflow-x: auto;
}

.hc-content code {
    font-family: var(--hc-font-mono);
    font-size: var(--hc-text-sm);
    background: var(--hc-bg-alt);
    padding: 2px 6px;
    border-radius: var(--hc-radius-sm);
}

.hc-content pre code {
    background: none;
    padding: 0;
}

/* Post Navigation */
.hc-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hc-spacing-lg);
    margin-top: var(--hc-spacing-2xl);
    padding-top: var(--hc-spacing-xl);
    border-top: 1px solid var(--hc-border);
}

.hc-post-nav a {
    display: block;
    padding: var(--hc-spacing-lg);
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    transition: all var(--hc-transition-fast);
}

.hc-post-nav a:hover {
    border-color: var(--hc-primary);
    box-shadow: var(--hc-shadow);
}

.hc-post-nav__label {
    display: block;
    font-size: var(--hc-text-sm);
    color: var(--hc-text-muted);
    margin-bottom: var(--hc-spacing-xs);
}

.hc-post-nav__title {
    display: block;
    color: var(--hc-text);
    font-weight: 500;
}

/* Pagination */
.hc-pagination,
.navigation.pagination {
    margin-top: var(--hc-spacing-2xl);
}

.hc-pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--hc-spacing-sm);
}

.hc-pagination .page-numbers,
.navigation.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--hc-spacing-sm);
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius);
    color: var(--hc-text-secondary);
    font-size: var(--hc-text-sm);
    transition: all var(--hc-transition-fast);
}

.hc-pagination .page-numbers:hover,
.navigation.pagination .page-numbers:hover {
    border-color: var(--hc-primary);
    color: var(--hc-primary);
}

.hc-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background: var(--hc-primary);
    border-color: var(--hc-primary);
    color: var(--hc-text-inverse);
}

/* Error Page */
.hc-error-page {
    text-align: center;
    padding: var(--hc-spacing-2xl) 0;
}

.hc-error-page__icon {
    color: var(--hc-text-muted);
    margin-bottom: var(--hc-spacing-lg);
}

.hc-error-page__title {
    font-size: 6rem;
    font-weight: 700;
    color: var(--hc-primary);
    margin-bottom: var(--hc-spacing-md);
}

.hc-error-page__text {
    font-size: var(--hc-text-xl);
    color: var(--hc-text);
    margin-bottom: var(--hc-spacing-sm);
}

.hc-error-page__subtext {
    color: var(--hc-text-secondary);
    margin-bottom: var(--hc-spacing-xl);
}

/* Search Form */
.hc-search-form__inner {
    display: flex;
    gap: var(--hc-spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

/* Search Results */
.hc-search-results {
    display: flex;
    flex-direction: column;
    gap: var(--hc-spacing-lg);
}

.hc-search-result__title {
    font-size: var(--hc-text-lg);
    margin-bottom: var(--hc-spacing-sm);
}

.hc-search-result__title a {
    color: var(--hc-text);
}

.hc-search-result__title a:hover {
    color: var(--hc-primary);
}

.hc-search-result__meta {
    display: flex;
    gap: var(--hc-spacing-md);
    margin-bottom: var(--hc-spacing-sm);
}

/* Comments */
.hc-comments-area {
    margin-top: var(--hc-spacing-2xl);
    padding-top: var(--hc-spacing-xl);
    border-top: 1px solid var(--hc-border);
}

.hc-comments__title {
    margin-bottom: var(--hc-spacing-xl);
}

.hc-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--hc-spacing-2xl);
}

.hc-comment {
    margin-bottom: var(--hc-spacing-lg);
    padding: var(--hc-spacing-lg);
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-lg);
}

.hc-comment__header {
    display: flex;
    gap: var(--hc-spacing-md);
    margin-bottom: var(--hc-spacing-md);
}

.hc-comment__avatar img {
    border-radius: var(--hc-radius-full);
}

.hc-comment__author {
    display: block;
    font-weight: 600;
    color: var(--hc-text);
}

.hc-comment__date {
    font-size: var(--hc-text-sm);
    color: var(--hc-text-muted);
}

.hc-comment__content {
    margin-bottom: var(--hc-spacing-md);
}

.hc-comment__footer {
    display: flex;
    gap: var(--hc-spacing-md);
}

/* Sidebar */
.hc-sidebar {
    padding: var(--hc-spacing-lg);
}

.hc-widget {
    margin-bottom: var(--hc-spacing-xl);
}

.hc-widget__title {
    font-size: var(--hc-text-base);
    font-weight: 600;
    margin-bottom: var(--hc-spacing-md);
    padding-bottom: var(--hc-spacing-sm);
    border-bottom: 2px solid var(--hc-primary);
}

/* No Content */
.hc-no-content {
    text-align: center;
    padding: var(--hc-spacing-2xl);
}

/* Header Scroll State */
.hc-header.is-scrolled {
    box-shadow: var(--hc-shadow-md);
}

/* Theme Toggle Icons */
.hc-theme-toggle .hc-icon--sun {
    display: none;
}

.hc-theme-toggle .hc-icon--moon {
    display: block;
}

[data-theme="dark"] .hc-theme-toggle .hc-icon--sun {
    display: block;
}

[data-theme="dark"] .hc-theme-toggle .hc-icon--moon {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hc-posts {
        grid-template-columns: 1fr;
    }
    
    .hc-single__title {
        font-size: var(--hc-text-3xl);
    }
    
    .hc-single__meta {
        flex-direction: column;
        gap: var(--hc-spacing-sm);
    }
    
    .hc-post-nav {
        grid-template-columns: 1fr;
    }
    
    .hc-footer__inner {
        grid-template-columns: 1fr;
    }
}
