/*
Theme Name: Auto SEO Theme AdSense
Theme URI: https://autoseotheme.local/
Author: Antigravity AI
Description: Un tema 100% automatizado, optimizado en SEO para Google AdSense, generado con IA (OpenRouter).
Version: 1.1
Text Domain: auto-seo-theme
*/

:root {
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--background: #f8fafc;
	--card-bg: #ffffff;
	--text-main: #1e293b;
	--text-muted: #64748b;
	--border-color: #e2e8f0;
	--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-sans);
	background-color: var(--background);
	color: var(--text-main);
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

header.site-header {
	background-color: var(--card-bg);
	border-bottom: 1px solid var(--border-color);
	padding: 1.5rem 0;
	margin-bottom: 2rem;
}

header.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
}

.site-title a {
	text-decoration: none;
	color: var(--text-main);
}

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
}

.main-nav a {
	text-decoration: none;
	color: var(--text-muted);
	font-weight: 500;
	transition: color 0.2s;
}

.main-nav a:hover {
	color: var(--primary);
}

/* Post Grid */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 3rem;
}

.post-card {
	background-color: var(--card-bg);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	transition: transform 0.2s ease;
}

.post-card:hover {
	transform: translateY(-4px);
}

.post-thumbnail {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.post-content {
	padding: 1.5rem;
}

.post-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.post-title a {
	text-decoration: none;
	color: var(--text-main);
}

.post-title a:hover {
	color: var(--primary);
}

.post-excerpt {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

/* Single Post */
.single-post-container {
	background: var(--card-bg);
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	margin-bottom: 3rem;
}

.single-title {
	font-size: 2.2rem;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.single-meta {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
}

.single-featured-image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	margin-bottom: 2rem;
}

/* Content Layout with Sidebar */
.site-content-layout {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    align-items: flex-start;
}

.single-post-container {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

.site-sidebar {
    width: 320px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .site-content-layout {
        flex-direction: column;
    }
    .site-sidebar {
        width: 100%;
    }
}

.single-content p {
	margin-bottom: 2rem;
	font-size: 1.15rem;
    line-height: 1.8;
}

/* Breadcrumbs */
.as-breadcrumbs { font-size: 0.85rem; color: #94a3b8; margin-bottom: 10px; }
.as-breadcrumbs a { color: #3b82f6; text-decoration: none; }

/* Widgets */
.widget { margin-bottom: 40px; background: #fff; padding: 25px; border: 1px solid #e2e8f0; border-radius: 8px; }
.widget-title { font-size: 1.2rem; margin-top: 0; margin-bottom: 20px; border-bottom: 2px solid #1e293b; padding-bottom: 5px; }

/* --- ADSENSE APPROVED FOOTER --- */
.site-footer {
	background-color: #ffffff;
	border-top: 1px solid #e2e8f0;
	padding: 40px 0;
	margin-top: 50px;
	text-align: center;
	color: #64748b;
}

.footer-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.footer-links {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	justify-content: center;
	gap: 30px;
}

.footer-links li {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Anti-bullet force */
.footer-links li::before, 
.footer-links li::after {
	content: none !important;
}

.footer-links a {
	text-decoration: none;
	color: #64748b;
	font-weight: 500;
	font-size: 0.95rem;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: var(--primary);
}

.footer-copyright {
	font-size: 0.85rem;
	border-top: 1px solid #f1f5f9;
	padding-top: 20px;
	width: 100%;
}
