/*
 * Aurora Theme - Minimalist WordPress-like Theme
 * Version: 1.0
 */

/* ========================================
   Reset & Base Styles
   ======================================== */

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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --bg-color: #fff;
    --bg-secondary: #f8f9fa;
    --max-width: 1200px;
    --spacing: 2rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ========================================
   Header
   ======================================== */

.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.site-branding a {
    color: var(--primary-color);
}

.site-logo {
    max-width: 120px;
    height: auto;
    display: block;
}

.site-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.site-navigation a {
    color: var(--text-color);
    font-weight: 500;
}

.site-navigation a:hover {
    color: var(--secondary-color);
}

/* ========================================
   Main Content Area
   ======================================== */

.site-content {
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 var(--spacing);
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.content-area {
    min-width: 0;
}

/* ========================================
   Posts Listing
   ======================================== */

.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-card {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.post-card:last-child {
    border-bottom: none;
}

.post-thumbnail {
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.post-meta {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.post-meta span {
    margin-right: 1rem;
}

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

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

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

.read-more {
    color: var(--secondary-color);
    font-weight: 500;
}

/* ========================================
   Single Post
   ======================================== */

.single-post {
    max-width: 800px;
}

.post-header {
    margin-bottom: 2rem;
}

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

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-content h2 {
    margin: 2rem 0 1rem;
    font-size: 1.75rem;
}

.post-content h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.5rem;
}

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

.post-content img {
    margin: 2rem 0;
    border-radius: 4px;
}

/* ========================================
   Sidebar
   ======================================== */

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: var(--bg-secondary);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.pagination .current {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    text-align: center;
}

.footer-info {
    color: var(--light-text);
    font-size: 0.875rem;
}

/* ========================================
   404 Page
   ======================================== */

.error-404 {
    text-align: center;
    padding: 4rem 0;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
}

.btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .site-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .site-navigation ul {
        gap: 1rem;
    }

    .post-header .post-title {
        font-size: 2rem;
    }

    .post-content {
        font-size: 1rem;
    }
}

/*
 * Aurora Theme - Additional Footer Styles
 * These are the enhanced footer styles added to improve the footer design
 */

/* ========================================
   Enhanced Footer Styles
   ======================================== */

.site-footer {
    background: var(--primary-color);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 0;
}

.footer-widgets {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing) 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #2980b9;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

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

/* ========================================
   Related Posts Styles
   ======================================== */

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-posts-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.related-post-card {
    transition: transform 0.3s ease;
}

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

.related-post-thumbnail {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.related-post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content .post-meta {
    margin-bottom: 0.5rem;
}

.related-post-title {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

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

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

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 768px) {
    /* Footer Responsive */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    /* Related Posts Responsive */
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

