/**
 * VibePress Frontend Styles
 *
 * Styles for rendered features (posts, forms, etc.)
 * These are minimal styles - users should customize with their own CSS or use custom templates.
 */

/* Posts Container */
.vibepress-posts {
    display: grid !important;
    gap: 24px;
}

.vibepress-posts--card {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
}

.vibepress-posts--list {
    grid-template-columns: 1fr !important;
}

/* Post Card */
.vibepress-post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vibepress-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.vibepress-post-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vibepress-post-card__content {
    padding: 20px;
}

.vibepress-post-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.vibepress-post-card__title a {
    color: inherit;
    text-decoration: none;
}

.vibepress-post-card__title a:hover {
    color: #2271b1;
}

.vibepress-post-card__excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.vibepress-post-card__excerpt p {
    margin: 0;
}

.vibepress-post-card__link {
    display: inline-block;
    color: #2271b1;
    font-weight: 500;
    text-decoration: none;
}

.vibepress-post-card__link:hover {
    text-decoration: underline;
}

/* Post List */
.vibepress-post-list {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.vibepress-post-list:last-child {
    border-bottom: none;
}

.vibepress-post-list__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.vibepress-post-list__title a {
    color: inherit;
    text-decoration: none;
}

.vibepress-post-list__title a:hover {
    color: #2271b1;
}

.vibepress-post-list__meta {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.vibepress-post-list__meta span {
    margin-right: 16px;
}

.vibepress-post-list__excerpt {
    color: #555;
    line-height: 1.6;
}

/* Post Minimal */
.vibepress-post-minimal {
    padding: 8px 0;
}

.vibepress-post-minimal a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
}

.vibepress-post-minimal a:hover {
    color: #2271b1;
    text-decoration: underline;
}

/* Empty State */
.vibepress-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

.vibepress-empty-state a {
    color: #2271b1;
}

/* ============================================================
   Content-Only Mode: Full-Width Reset
   Strips theme containers so VibePress content renders
   edge-to-edge between header and footer.
   ============================================================ */

/* --- Universal resets (works across themes) --- */
body.vibepress-content-only .site-main,
body.vibepress-content-only .site-main > *,
body.vibepress-content-only article.page,
body.vibepress-content-only article.type-page,
body.vibepress-content-only .entry-content,
body.vibepress-content-only .vibe-content-wrapper,
body.vibepress-content-only .vibe-tailwind-scope {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Hide page title / hero section injected by theme */
body.vibepress-content-only .entry-header,
body.vibepress-content-only .page-title,
body.vibepress-content-only .page-header {
    display: none !important;
}

/* --- Blocksy-specific resets --- */
body.vibepress-content-only .ct-container-full[data-vertical-spacing] {
    --spacing: 0px !important;
}
body.vibepress-content-only .ct-container-full[data-content] {
    --content-max-width: 100% !important;
    --content-editor-max-width: 100% !important;
}
body.vibepress-content-only .is-width-constrained,
body.vibepress-content-only .hero-section[data-type] {
    max-width: 100% !important;
    display: none !important; /* hero-section contains page title in Blocksy */
}

/* WordPress block editor layout constraint */
body.vibepress-content-only .entry-content.is-layout-constrained > * {
    max-width: 100% !important;
}

/* --- Astra-specific resets --- */
body.vibepress-content-only .ast-container,
body.vibepress-content-only .ast-article-single {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* --- GeneratePress-specific resets --- */
body.vibepress-content-only .inside-article,
body.vibepress-content-only .site-content .content-area {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
