/*
Theme Name: Radar IP
Theme URI: https://radar-ip.com
Description: Tema profesional inspirado en diseño moderno para noticias de propiedad industrial
Author: Herrero y Asociados
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: radar-ip
*/

/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-orange: #f97316;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --background-alt: #f9fafb;
    --border-color: #e5e7eb;
    --max-width: 1280px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-alt);
}

/* ===== HEADER ===== */
.site-logo {
    height: 50px;
    width: auto;
    display: block;
}

.site-title {
    margin: 0;
    line-height: 1;
}

.site-title a {
    display: block;
}

/* Ajustar header con logo */
.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a5891;
}

.site-header {
    background: #0a5891;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ajustar navegación para fondo azul */
.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}

.main-navigation a:hover {
    opacity: 0.8;
    color: white;
}

/* ===== NAVIGATION ===== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* ===== MAIN CONTENT ===== */
.site-content {
    max-width: var(--max-width);
    margin: 3rem auto;
    padding: 0 2rem;
}

/* ===== GRID DE POSTS ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ===== POST CARD ===== */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== CATEGORY BADGE ===== */
.category-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    width: fit-content;
}

.category-badge.cat-patentes { background: var(--accent-blue); }
.category-badge.cat-marcas { background: var(--accent-green); }
.category-badge.cat-legislacion { background: var(--accent-purple); }
.category-badge.cat-tips { background: var(--accent-orange); }

/* ===== ENTRY TITLE ===== */
.entry-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.entry-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.entry-title a:hover {
    color: var(--primary-color);
}

/* ===== ENTRY META ===== */
.entry-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* ===== ENTRY EXCERPT ===== */
.entry-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

/* ===== READ MORE ===== */
.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: auto;
}

.read-more:hover {
    gap: 0.75rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== SINGLE POST ===== */
.single .site-content {
    max-width: 800px;
}

.single .post {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.single .entry-header {
    margin-bottom: 2rem;
}

.single .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.single .entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.single .entry-content p {
    margin-bottom: 1.5rem;
}

.single .entry-content h2 {
    font-size: 1.875rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.single .entry-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-color);
}

/* ===== FOOTER ===== */
.site-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .single .post {
        padding: 1.5rem;
    }
    
    .single .entry-title {
        font-size: 1.875rem;
    }
}
