/*
Theme Name: AutoSEO Blog
Theme URI: https://getautoseo.com
Author: AutoSEO
Author URI: https://getautoseo.com
Description: Custom theme matching the main AutoSEO website design
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autoseo-blog
*/

/* Import Inter font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.site-container {    max-width: 850px;    margin: 0 auto;    padding: 0;}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 850px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.logo-text {
    margin-left: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s;
}

.site-nav a:hover {
    color: #2563eb;
}

.nav-cta {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: scale(1.05);
}

/* Main Content */
.site-content {
    max-width: 850px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Blog Posts */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

article.post {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

article.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-content-wrap {
    padding: 0;
}

.post-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: #2563eb;
}

.post-excerpt {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Single Post */
.single-post {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
}
.single-post .post-header {
    margin-bottom: 2rem;
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.single-post .post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 100%;
    width: 100%;
}

.single-post .post-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.single-post .post-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #334155;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
}

.single-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.single-post .post-content ul,
.single-post .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post .post-content li {
    margin-bottom: 0.5rem;
}

.single-post .post-content a {
    color: #2563eb;
    text-decoration: underline;
}

.single-post .post-content a:hover {
    color: #9333ea;
}

/* WordPress Core Alignment Classes */
.alignnone {
    margin: 1.5rem 0;
}

.aligncenter {
    display: block;
    margin: 1.5rem auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

/* WordPress Blocks */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Footer */
.site-footer {
    background: #111827;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .site-nav {
        display: none;
    }
    
    .post-list {
        grid-template-columns: 1fr;
    }
    
    .single-post {
        padding: 0;
    }
    
    .single-post .post-title {
        font-size: 2rem;
    }
    
    .single-post .post-content {
        font-size: 1rem;
    }
}

/* Override WordPress default block constraints */
.wp-site-blocks,
.wp-block-post-content,
.entry-content,
.post-content {
    max-width: 100% !important;
}

.wp-block-post-content > *,
.entry-content > *,
.post-content > * {
    max-width: 100% !important;
}

/* Override WordPress core alignments */
.wp-block-group__inner-container {
    max-width: 100% !important;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
}

.has-global-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.has-global-padding > .alignfull {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Add padding to article content areas */
.single-post .post-header,
.single-post .post-content,
.single-post .post-thumbnail {
    padding-left: 2rem;
    padding-right: 2rem;
}

.single-post .post-header {
    padding-top: 2rem;
}

/* Ensure body background is visible */
body.wp-singular {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%) !important;
    min-height: 100vh;
}

/* Add padding back to post cards on index page */
.post-content-wrap {
    padding: 1.5rem;
}
