/* PowerSite Theme - Main Stylesheet */

/* Hero Section */
.hero-section{padding:4rem 1rem;text-align:center;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);color:#fff}
.hero-section__inner{max-width:800px;margin:0 auto}
.hero-section__title{font-size:2.5rem;margin-bottom:.5rem;color:#fff}
.hero-section__tagline{font-size:1.25rem;margin-bottom:2rem;opacity:.9}

/* Buttons */
.btn{display:inline-block;padding:.75rem 1.5rem;border-radius:4px;font-weight:600;text-decoration:none;transition:background .2s,transform .1s;cursor:pointer;border:none;font-size:1rem}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn--primary{background:#0066cc;color:#fff}
.btn--primary:hover{background:#0052a3}

/* Services */
.services-section,.latest-posts-section,.faq-preview-section,.cta-section{padding:3rem 1rem}
.services-section__inner,.latest-posts-section__inner,.faq-preview-section__inner,.cta-section__inner{max-width:1200px;margin:0 auto}
.section-title{text-align:center;margin-bottom:2rem;font-size:1.75rem}
.services-grid,.posts-grid,.related-posts__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.service-card{padding:1.5rem;border:1px solid #e0e0e0;border-radius:8px;transition:box-shadow .2s}
.service-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.1)}
.service-card__title{font-size:1.125rem;margin-bottom:.5rem}

/* Post Cards */
.post-card,.archive-card{border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;transition:box-shadow .2s}
.post-card:hover,.archive-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.1)}
.post-card__content,.archive-card__content{padding:1.25rem}
.post-card__title,.archive-card__title{font-size:1.125rem;margin-bottom:.5rem}
.post-card__title a,.archive-card__title a{color:inherit}
.post-card__date,.archive-card__date{font-size:.8125rem;color:#666;display:block;margin-bottom:.5rem}
.post-card__excerpt,.archive-card__excerpt{font-size:.9375rem;color:#444}
.archive-card__meta{font-size:.8125rem;color:#666;margin-bottom:.5rem;display:flex;gap:.75rem;flex-wrap:wrap}
.archive-card__read-more{display:inline-block;margin-top:.75rem;font-weight:600;font-size:.875rem}
.post-card__image img,.archive-card__image img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}

/* FAQ */
.faq-list,.post-faq__list{max-width:800px;margin:0 auto}
.faq-item,.post-faq__item{border:1px solid #e0e0e0;border-radius:4px;margin-bottom:.5rem;overflow:hidden}
.faq-item__question,.post-faq__question{padding:1rem 1.25rem;font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center}
.faq-item__question::after,.post-faq__question::after{content:"+";font-size:1.25rem;font-weight:400;transition:transform .2s}
details[open] .faq-item__question::after,details[open] .post-faq__question::after{transform:rotate(45deg)}
.faq-item__answer,.post-faq__answer{padding:0 1.25rem 1rem}

/* CTA Section */
.cta-section{text-align:center;background:#f8f9fa;border-radius:8px}
.cta-section__title{font-size:1.5rem;margin-bottom:.5rem}
.cta-section__text{margin-bottom:1.5rem;color:#666}

/* Single Post */
.single-post__header{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid #e0e0e0}
.single-post__title{font-size:2rem;margin-bottom:1rem;line-height:1.3}
.single-post__meta{display:flex;flex-wrap:wrap;gap:.75rem;font-size:.8125rem;color:#666}
.single-post__tldr{background:#f0f7ff;border-left:4px solid #0066cc;padding:1.25rem;margin-bottom:2rem;border-radius:0 4px 4px 0}
.single-post__content{line-height:1.8;font-size:1.0625rem}
.single-post__content h2{margin-top:2rem;margin-bottom:.75rem}
.single-post__content h3{margin-top:1.5rem;margin-bottom:.5rem}
.single-post__content p{margin-bottom:1.25rem}
.single-post__content ul,.single-post__content ol{margin-bottom:1.25rem;padding-left:1.5rem}
.single-post__content li{margin-bottom:.5rem}
.single-post__content blockquote{border-left:4px solid #0066cc;padding:1rem 1.25rem;margin:1.5rem 0;background:#f8f9fa;font-style:italic}
.single-post__content pre{background:#1a1a2e;color:#e0e0e0;padding:1.25rem;border-radius:4px;overflow-x:auto;margin:1.5rem 0;font-size:.875rem;line-height:1.5}
.single-post__content code{background:#f0f0f0;padding:.125rem .375rem;border-radius:3px;font-size:.875em}
.single-post__content pre code{background:none;padding:0}
.single-post__content img{border-radius:4px;margin:1.5rem 0}

/* Table of Contents */
.table-of-contents{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:8px;padding:1.25rem 1.5rem;margin-bottom:2rem}
.table-of-contents__title{font-size:1rem;margin-bottom:.75rem}
.table-of-contents__list{padding-left:1.25rem;margin:0}
.table-of-contents__item{margin-bottom:.375rem;font-size:.9375rem}
.table-of-contents__item--sub{margin-left:1rem;font-size:.875rem}
.table-of-contents__item a{color:#333}

/* Author Box */
.author-box{display:flex;gap:1rem;align-items:flex-start;padding:1.5rem;border:1px solid #e0e0e0;border-radius:8px;margin:2rem 0}
.author-box__image{border-radius:50%}
.author-box__name{font-size:1rem;margin-bottom:.375rem}
.author-box__name a{color:inherit}
.author-box__bio{font-size:.875rem;color:#555}

/* CTA Main Site */
.cta-main-site{background:#f0f7ff;border:1px solid #cce0ff;border-radius:8px;padding:2rem;margin:2rem 0;text-align:center}
.cta-main-site__title{font-size:1.25rem;margin-bottom:.5rem}
.cta-main-site__text{color:#666;margin-bottom:1rem}

/* Related Posts */
.related-posts{margin:2.5rem 0;padding-top:2rem;border-top:1px solid #e0e0e0}
.related-posts__title{font-size:1.25rem;margin-bottom:1.25rem}
.related-posts__card{text-align:center;padding:1rem}
.related-posts__card-image img{border-radius:50%;width:80px;height:80px;object-fit:cover;margin:0 auto .75rem}
.related-posts__card-title{font-size:.9375rem;margin-bottom:.25rem}
.related-posts__card-title a{color:inherit}
.related-posts__card-date{font-size:.75rem;color:#666}

/* Pagination */
.pagination{margin:2rem 0;text-align:center}
.pagination .nav-links{display:flex;justify-content:center;gap:.5rem;flex-wrap:wrap}
.pagination .page-numbers{display:inline-block;padding:.5rem .75rem;border:1px solid #e0e0e0;border-radius:4px;font-size:.875rem;color:#333}
.pagination .page-numbers.current{background:#0066cc;color:#fff;border-color:#0066cc}

/* 404 Page */
.error-404{text-align:center;padding:2rem 0}
.error-404__title{font-size:2rem;margin-bottom:1rem}
.error-404__message{font-size:1.125rem;color:#666;margin-bottom:2rem;max-width:600px;margin-left:auto;margin-right:auto}
.error-404__search{margin-bottom:2rem}
.error-404__recent-posts{list-style:none;max-width:500px;margin:0 auto 2rem;text-align:left}
.error-404__recent-posts li{padding:.75rem 0;border-bottom:1px solid #e0e0e0;display:flex;justify-content:space-between;gap:1rem}
.error-404__post-date{font-size:.8125rem;color:#666;white-space:nowrap}

/* Search Form */
.search-form{display:flex;gap:.5rem;max-width:500px;margin:0 auto}
.search-field{flex:1;padding:.5rem .75rem;border:1px solid #ccc;border-radius:4px;font-size:1rem}
.search-submit{padding:.5rem 1rem;background:#0066cc;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:1rem}

/* Page Links */
.page-links{margin:1.5rem 0;font-weight:600}
.page-links a{padding:.25rem .5rem;background:#0066cc;color:#fff;border-radius:3px;margin:0 .25rem}

/* Widget Area */
.widget-area{padding:1.5rem 0}
.widget{margin-bottom:2rem}
.widget-title{font-size:1.125rem;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:2px solid #0066cc}

/* Comments Disabled */
.comments-disabled-notice{font-style:italic;color:#666;padding:1rem 0;text-align:center}

/* Footer CTA */
.site-footer__cta{margin-top:1rem}
.footer-cta-link{font-weight:600;color:#0066cc}

/* Responsive */
@media(max-width:768px){
    .hero-section{padding:2.5rem 1rem}
    .hero-section__title{font-size:1.75rem}
    .single-post__title{font-size:1.5rem}
    .single-post__meta{flex-direction:column;gap:.375rem}
    .author-box{flex-direction:column;align-items:center;text-align:center}
    .services-grid,.posts-grid,.related-posts__grid{grid-template-columns:1fr}
    .error-404__recent-posts li{flex-direction:column;gap:.25rem}
}
