/*
Theme Name: Memoria y Resistencia Blog
Theme URI: https://memoriayresistencia.org
Author: Memoria y Resistencia Team
Description: Tema personalizado con diseño Glassmorphism y Bootstrap 5 para el blog.
Version: 1.0
*/

/* --- 1. Variables Globales y Reset --- */
:root {
    --color-primary: #750787; /* Violeta principal */
    --color-accent: #004DFF;
    --color-text: #2d3436;
    --color-bg-light: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #2a0a3b 0%, #5e1545 100%);
    --font-family: 'Inter', sans-serif;
    --shadow-soft: 0 10px 30px -10px rgba(0,0,0,0.08);
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-light);
    color: var(--color-text);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
a:hover { color: var(--color-accent); }

/* --- 2. Navbar Glassmorphism --- */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 0;
    z-index: 1030;
}
.navbar-custom::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #E40303, #FF8C00, #FFED00, #008026, #004DFF, #750787);
    opacity: 0.7;
}
.navbar-brand img { height: 45px; width: auto; }

/* Menú de WordPress */
.navbar-nav .nav-link {
    font-weight: 600;
    color: #555 !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
}
.navbar-nav .nav-link:hover, .navbar-nav .current-menu-item .nav-link {
    color: var(--color-primary) !important;
    background-color: rgba(117, 7, 135, 0.05);
    border-radius: 8px;
}
.btn-nav-action {
    background: linear-gradient(135deg, var(--color-primary) 0%, #9b59b6 100%);
    color: white !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
    box-shadow: 0 4px 10px rgba(117, 7, 135, 0.2);
}

/* --- 3. Hero Blog --- */
.blog-hero {
    background: var(--gradient-primary);
    padding: 6rem 0 4rem 0;
    color: white;
    text-align: center;
    position: relative;
    margin-bottom: 3rem;
}
.blog-hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.3;
}

/* --- 4. Cards de Artículos --- */
.blog-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.blog-thumb {
    height: 220px;
    width: 100%;
    object-fit: cover;
}
.blog-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}
.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2d3436;
    line-height: 1.4;
}
.blog-excerpt {
    font-size: 0.95rem;
    color: #636e72;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* --- 5. Single Post --- */
.single-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}
.single-content h2, .single-content h3 { margin-top: 2rem; color: var(--color-primary); font-weight: 700; }
.single-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5rem 0; }
.post-meta { font-size: 0.9rem; color: #888; margin-bottom: 2rem; text-align: center; }

/* --- 6. Footer --- */
.footer-modern {
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 100%);
    color: #e0e0e0;
    padding-top: 4rem;
    margin-top: 4rem;
    position: relative;
}
.footer-modern::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #E40303, #FF8C00, #FFED00, #008026, #004DFF, #750787);
    opacity: 0.8;
}
.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}

/* Paginación */
.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 2px;
    border-radius: 50px;
    background: white;
    color: var(--color-primary);
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.pagination .current {
    background: var(--color-primary);
    color: white;
}