/**
 * 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;
}
