/**
 * pSEO Engine Public Styles
 *
 * @package PSEO_Engine
 * @since 1.0.0
 */

/* Page Wrapper */
.pseo-page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumbs */
.pseo-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
}

.pseo-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pseo-breadcrumbs li {
    display: flex;
    align-items: center;
}

.pseo-breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #999;
}

.pseo-breadcrumbs a {
    color: #0073aa;
    text-decoration: none;
}

.pseo-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Page Content */
.pseo-page-content {
    line-height: 1.7;
}

.pseo-page-content h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.pseo-page-content h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.pseo-page-content h3 {
    font-size: 1.25em;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}

.pseo-page-content p {
    margin-bottom: 1em;
}

/* Article Styles */
.pseo-article {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pseo-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.pseo-title {
    font-size: 2.2em;
    line-height: 1.2;
    margin: 0 0 15px;
}

.pseo-intro {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}

/* FAQs */
.pseo-faqs {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pseo-faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
}

.pseo-faq-item h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.pseo-faq-item p {
    margin: 0;
    color: #555;
}

/* CTA Button */
.pseo-cta-section {
    margin: 40px 0;
    text-align: center;
}

.pseo-cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #1C7798 0%, #155d78 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(28, 119, 152, 0.3);
}

.pseo-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 119, 152, 0.4);
    background: linear-gradient(135deg, #1a8ab0 0%, #1C7798 100%);
    color: #fff !important;
}

/* Related Pages */
.pseo-related-pages {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pseo-related-pages h2 {
    font-size: 1.2em;
    margin: 0 0 15px;
}

.pseo-related-pages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pseo-related-pages li {
    margin-bottom: 10px;
}

.pseo-related-pages a {
    color: #0073aa;
    text-decoration: none;
}

.pseo-related-pages a:hover {
    text-decoration: underline;
}

/* Internal Links */
.pseo-internal-link {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px dotted #0073aa;
}

.pseo-internal-link:hover {
    border-bottom-style: solid;
}

/* Hub Pages */
.pseo-hub-page {
    padding: 20px;
}

.pseo-hub-header {
    text-align: center;
    margin-bottom: 40px;
}

.pseo-hub-title {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.pseo-hub-description {
    font-size: 1.2em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.pseo-entry-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pseo-entry-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.pseo-entry-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pseo-entry-item a {
    display: block;
    padding: 20px;
    color: inherit;
    text-decoration: none;
}

.pseo-entry-title {
    font-size: 1.2em;
    margin: 0 0 10px;
}

.pseo-entry-excerpt {
    color: #666;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.5;
}

/* Category Pages */
.pseo-category-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pseo-category-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.pseo-category-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.pseo-category-description {
    font-size: 1.15em;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.pseo-category-description strong {
    color: #1C7798;
}

/* Entry Grid */
.pseo-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.pseo-entry-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #eee;
}

.pseo-entry-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: #1C7798;
}

.pseo-entry-link {
    display: block;
    padding: 25px;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.pseo-entry-card .pseo-entry-title {
    font-size: 1.15em;
    margin: 0 0 12px;
    color: #1a1a1a;
    line-height: 1.4;
}

.pseo-entry-excerpt {
    color: #666;
    font-size: 0.95em;
    margin: 0 0 15px;
    line-height: 1.5;
}

.pseo-entry-readmore {
    display: inline-block;
    color: #1C7798;
    font-weight: 600;
    font-size: 0.9em;
    transition: color 0.2s;
}

.pseo-entry-card:hover .pseo-entry-readmore {
    color: #155d78;
}

.pseo-no-entries {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1em;
}

/* Pagination */
.pseo-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pseo-pagination a,
.pseo-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
}

.pseo-pagination a:hover {
    background: #f5f5f5;
    border-color: #1C7798;
    color: #1C7798;
}

.pseo-pagination .current {
    background: #1C7798;
    color: #fff;
    border-color: #1C7798;
}

.pseo-pagination .prev,
.pseo-pagination .next {
    padding: 8px 18px;
}

/* Related Pages Widget Formats */
.pseo-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pseo-related-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.pseo-related-list li:last-child {
    border-bottom: none;
}

.pseo-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.pseo-related-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.pseo-related-item h4 {
    margin: 0 0 5px;
    font-size: 1em;
}

.pseo-related-item .pseo-keyword {
    font-size: 0.85em;
    color: #666;
}

.pseo-related-minimal {
    color: #666;
}

.pseo-related-minimal a {
    color: #0073aa;
}

/* Category List */
.pseo-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pseo-category-list li {
    padding: 8px 0;
}

.pseo-category-list .count {
    color: #999;
    font-size: 0.9em;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .pseo-page-wrapper {
        padding: 15px;
    }

    .pseo-article {
        padding: 20px;
    }

    .pseo-title {
        font-size: 1.8em;
    }

    .pseo-hub-title {
        font-size: 2em;
    }

    .pseo-entry-list {
        grid-template-columns: 1fr;
    }

    .pseo-pagination {
        flex-wrap: wrap;
    }
}
