/*
Theme Name: aeioum234 Theme
Description: Custom theme featuring a modern design with grid layout and centered navigation, optimized for content presentation and user experience
Version: 1.0.1
Author: Maciel Alves
Text Domain: aeioum234_theme
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.site-logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-bottom: 15px;
    display: inline-block;
}

.main-navigation {
    margin-top: 15px;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-menu li a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: #ef900b;
    /* background-color: #f0f8ff; */
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Featured Post */
.featured-post {
    background: #fff;
    overflow: hidden;
    box-shadow: none;
    margin-bottom: 40px;
}

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

.featured-content {
    padding: 30px;
}

.featured-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-excerpt {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-item {
    background: #fff;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

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

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

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

.post-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
    border-top: none;
    padding-top: 15px;
}

.post-home-destaque {
    border: 1px solid #95a5a6;
}

/* Footer */
.site-footer {
    background: #1b1b1b;
    color: #ecf0f1;
    padding: 50px 0 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-column h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-logo {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-title {
        font-size: 1.5rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0 15px;
    }
    
    .featured-content {
        padding: 20px;
    }
    
    .post-content {
        padding: 15px;
    }
}

/* Single Post Styles */
.single-post-content {
    max-width: 800px;
}

.single-post {
    background: #fff;
    box-shadow: none;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
    border-bottom: none;
    padding-bottom: 20px;
}

.single-post .post-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-post .post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.single-post .post-meta span {
    display: flex;
    align-items: center;
}

.single-post .post-meta a {
    color: #007cba;
    text-decoration: none;
}

.single-post .post-meta a:hover {
    text-decoration: underline;
}

.post-featured-image {
    margin: 30px 0;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.single-post .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.single-post .post-content p {
    margin-bottom: 20px;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
    margin: 30px 0 15px;
    color: #333;
}

.single-post .post-content blockquote {
    background: #f8f9fa;
    border-left: none;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0;
}

/* Post Tags */
.post-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: none;
}

.post-tags h4 {
    margin-bottom: 15px;
    color: #333;
}

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list li {
    background: #f0f8ff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tag-list li a {
    color: #007cba;
    text-decoration: none;
}

.tag-list li a:hover {
    text-decoration: underline;
}

/* Post Navigation */
.post-navigation {
    margin: 40px 0;
    padding: 30px 0;
    border-top: none;
    border-bottom: none;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-previous,
.nav-next {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    background: #e9ecef;
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-subtitle {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: bold;
    color: #333;
    display: block;
}

.nav-next {
    text-align: right;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 0;
    margin: 40px 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-name {
    margin-bottom: 10px;
}

.author-name a {
    color: #333;
    text-decoration: none;
}

.author-name a:hover {
    color: #007cba;
}

.author-description {
    color: #666;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin: 60px 0 40px;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-post-item {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
}

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

.related-post-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #007cba;
}

.related-post-date {
    font-size: 0.85rem;
    color: #666;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* Pagination */
.pagination {
    margin: 60px 0 40px;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    gap: 10px;
    list-style: none;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: block;
    padding: 10px 15px;
    background: #fff;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.page-numbers a:hover,
.page-numbers .current {
    background: #007cba;
    color: #fff;
    border-color: transparent;
}

/* Footer Bottom Styles */
.footer-bottom {
    border-top: none;
    padding-top: 20px;
    margin-top: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.footer-nav-menu a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav-menu a:hover {
    color: #3498db;
}

/* Create Post Button Styles */
.create-post-btn {
    background: #00a32a;
    color: white !important;
    padding: 8px 16px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.create-post-btn:hover {
    background: #008a20;
    transform: translateY(-2px);
    box-shadow: none;
}

/* Create Post Page Specific Styles */
.create-post-page .container {
    max-width: 900px;
}

.editor-toolbar {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: none;
    border-radius: 0;
    flex-wrap: wrap;
}

.editor-btn {
    padding: 6px 12px;
    border: none;
    background: white;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.editor-btn:hover {
    background: #e9ecef;
}

.char-counter {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.char-counter.over-limit {
    color: #dc3545;
    font-weight: bold;
}

.autosave-status {
    position: fixed;
    top: 60px;
    right: 20px;
    padding: 8px 15px;
    background: #28a745;
    color: white;
    border-radius: 0;
    font-size: 0.85rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: none;
}

.autosave-status.saving {
    background: #ffc107;
    color: #333;
}

.autosave-status.error {
    background: #dc3545;
}

.autosave-status.saved {
    background: #28a745;
}

.image-preview {
    margin-top: 10px;
    padding: 15px;
    border: none;
    border-radius: 0;
    background: #f8f9fa;
    text-align: center;
}

.image-preview img {
    max-width: 250px;
    max-height: 200px;
    border-radius: 0;
    display: block;
    margin: 0 auto 15px;
    box-shadow: none;
}

.remove-image {
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
}

.remove-image:hover {
    background: #c82333;
}

/* Login prompt styles */
.login-prompt {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 0;
    margin: 40px 0;
}

.login-prompt h2 {
    color: #333;
    margin-bottom: 20px;
}

.login-prompt p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.login-btn {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* Additional Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        display: none;
    }
    
    .create-post-btn {
        margin-left: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .single-post {
        /* padding: 20px; */
    }
    
    .single-post .post-title {
        font-size: 1.8rem;
    }
    
    .single-post .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav-menu {
        justify-content: center;
    }
    
    .editor-toolbar {
        padding: 8px;
        gap: 3px;
    }
    
    .editor-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .autosave-status {
        top: 50px;
        right: 10px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav-menu {
        flex-direction: column;
        gap: 10px;
    }
}