/*
Theme Name: Ecuadorian Literature
Theme URI: https://www.ecuadorianliterature.com
Description: Modern, clean theme for Ecuadorian Literature website
Author: Custom
Author URI: https://www.ecuadorianliterature.com
Template: twentysixteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eculit-theme
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary: #1E3A5F;
    --primary-dark: #152B47;
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    --background: #FFFFFF;
    --bg-light: #F3F4F6;
    --bg-dark: #E5E7EB;
    --text: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --border: #D1D5DB;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", Times, serif;
    color: var(--primary);
    font-weight: 700;
}

a {
    color: var(--accent);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--primary) !important;
    padding: 0;
}

.site-branding {
    padding: 30px 0;
}

.site-title a {
    color: var(--white) !important;
    font-size: 2.5rem;
    font-family: Georgia, serif;
    text-decoration: none;
}

.site-description {
    color: rgba(255,255,255,0.8) !important;
    font-size: 1rem;
}

.site-header-image,
.header-image {
    display: none !important;
}

/* Navigation */
.main-navigation {
    background-color: var(--primary-dark);
}

.main-navigation a {
    color: var(--white) !important;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
}

.main-navigation a:hover {
    background-color: var(--accent);
}

.main-navigation .current-menu-item > a {
    background-color: var(--accent);
}

/* ==========================================================================
   Homepage Hero
   ========================================================================== */
.homepage-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.homepage-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.homepage-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.homepage-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.homepage-section.alt-bg {
    background-color: var(--bg-light);
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.homepage-section.alt-bg .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 40px;
    color: var(--primary);
}

/* ==========================================================================
   Category Cards
   ========================================================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.category-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.category-card .count {
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.category-card .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ==========================================================================
   Post Cards Grid
   ========================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.post-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-image .placeholder-icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.post-card-content {
    padding: 25px;
}

.post-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-content h3 a {
    color: var(--primary);
    text-decoration: none;
}

.post-card-content h3 a:hover {
    color: var(--accent);
}

.post-card-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.post-card-excerpt {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.view-all-link {
    text-align: center;
    margin-top: 40px;
}

.view-all-link a {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.view-all-link a:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   Single Post / Article Page
   ========================================================================== */
.single .site-main {
    padding: 0;
}

.single-post-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    margin-bottom: 40px;
    text-align: center;
}

.single-post-header .entry-title {
    color: var(--white) !important;
    font-size: 2.5rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.post-categories {
    margin-bottom: 0;
}

.post-categories a {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white) !important;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.post-categories a:hover {
    background: var(--accent);
}

.single .entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.single .entry-content p {
    margin-bottom: 1.5em;
}

/* Related Posts */
.related-posts {
    background: var(--bg-light);
    padding: 60px 20px;
    margin-top: 40px;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 40px;
}

.related-posts .posts-grid {
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Archive / Category Pages
   ========================================================================== */
.archive .page-header,
.search .page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.archive .page-title,
.search .page-title {
    color: var(--white) !important;
    font-size: 2rem;
}

.archive .taxonomy-description,
.search .taxonomy-description {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 10px auto 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar,
.widget-area {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text);
    text-decoration: none;
}

.widget a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-dark) !important;
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.site-footer a {
    color: var(--accent-light);
}

.site-footer .site-title a {
    color: var(--white) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .homepage-hero h1 {
        font-size: 2rem;
    }

    .homepage-hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .category-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post-header .entry-title {
        font-size: 1.75rem;
    }

    .homepage-section {
        padding: 40px 15px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

/* Hide Twenty Sixteen elements we don't want */
.site-header-main {
    padding: 0;
}

.site-branding {
    margin: 0;
}

body:not(.home) .site-header-image {
    display: none !important;
}
