/* Piranha CMS Content Styles */

/* Loading & Not Found States */
.loading,
.not-found {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.not-found h1 {
    color: #333;
    margin-bottom: 1rem;
}

/* Content Page */
.content-page,
.blog-page,
.post-page,
.content-portal {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header,
.blog-header,
.post-header,
.portal-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-header h1,
.blog-header h1,
.post-header h1,
.portal-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.25rem;
    color: #666;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Content Regions */
.content-region {
    margin-bottom: 2rem;
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    gap: 2rem;
}

.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-card h2 a {
    color: #333;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: #667eea;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.category {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.excerpt {
    color: #555;
    line-height: 1.6;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #666;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Post Page */
.breadcrumb {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.post-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-info .author,
.post-info .reading-time {
    color: #666;
    font-size: 0.9rem;
}

.featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.back-to-blog {
    color: #667eea;
    text-decoration: none;
}

/* Content Portal */
.portal-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pages-section,
.blogs-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
}

.pages-section h2,
.blogs-section h2,
.recent-posts h2 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.page-list,
.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-list li,
.blog-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-list li:last-child,
.blog-list li:last-child {
    border-bottom: none;
}

.page-list a,
.blog-list a {
    color: #333;
    text-decoration: none;
}

.page-list a:hover,
.blog-list a:hover {
    color: #667eea;
}

.page-type,
.post-count {
    font-size: 0.75rem;
    color: #999;
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Recent Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.post-preview {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.25rem;
}

.post-preview h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.post-preview h3 a {
    color: #333;
    text-decoration: none;
}

.post-preview h3 a:hover {
    color: #667eea;
}

.post-preview time {
    font-size: 0.75rem;
    color: #999;
}

.post-preview p {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* CMS Navigation */
.cms-navigation .nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1rem;
}

.cms-navigation .nav-item {
    padding: 0;
}

.cms-navigation .nav-link {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cms-navigation .nav-link:hover {
    background: #f0f0f0;
}

.cms-navigation .nav-item.active .nav-link {
    background: #667eea;
    color: white;
}

/* Content Block */
.content-block {
    margin-bottom: 1.5rem;
}

.block-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.block-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.block-html {
    line-height: 1.7;
}

.block-text {
    line-height: 1.6;
    color: #555;
}

/* Page Footer */
.page-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .content-page,
    .blog-page,
    .post-page,
    .content-portal {
        padding: 1rem;
    }

    .page-header h1,
    .blog-header h1,
    .post-header h1 {
        font-size: 1.75rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .cms-navigation .nav-list {
        flex-direction: column;
    }

    .portal-navigation {
        grid-template-columns: 1fr;
    }
}
