/**
 * NewsHub Engine - Estilos Frontend
 * Version: 1.0.0
 */

/* ============================================
   GRID DE NOTAS
   ============================================ */

.newshub-notas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.newshub-notas-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   TARJETAS DE NOTAS
   ============================================ */

.newshub-nota-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.newshub-nota-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.nota-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.nota-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.newshub-nota-card:hover .nota-thumbnail img {
    transform: scale(1.05);
}

.nota-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nota-content {
    padding: 25px;
}

.nota-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.nota-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nota-title a:hover {
    color: #667eea;
}

.nota-excerpt {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.nota-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85em;
    color: #999;
}

.nota-author {
    font-weight: 600;
    color: #667eea;
}

/* ============================================
   NOTA HERO
   ============================================ */

.newshub-nota-hero {
    position: relative;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin: 30px 0;
}

.nota-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 60px 40px 40px;
    color: white;
}

.nota-hero-overlay .nota-category {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.nota-hero-overlay .nota-title {
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: white;
}

.nota-hero-overlay .nota-title a {
    color: white;
    text-decoration: none;
}

.nota-hero-overlay .nota-meta {
    border-top: none;
    padding-top: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   PUBLICIDAD
   ============================================ */

.newshub-ad-container {
    margin: 30px 0;
    text-align: center;
}

.newshub-ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.newshub-ad-placeholder {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
}

.ad-placeholder-content {
    text-align: center;
}

.ad-label {
    display: block;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ad-size {
    color: #999;
    font-size: 14px;
}

/* ============================================
   LAYOUTS COMPACTOS
   ============================================ */

.newshub-layout-compact .nota-thumbnail {
    height: 150px;
}

.newshub-layout-compact .nota-content {
    padding: 15px;
}

.newshub-layout-compact .nota-title {
    font-size: 1.1em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .newshub-notas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .newshub-notas-grid {
        grid-template-columns: 1fr;
    }
    
    .nota-thumbnail {
        height: 200px;
    }
    
    .newshub-nota-hero {
        height: 400px;
    }
    
    .nota-hero-overlay .nota-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .nota-content {
        padding: 15px;
    }
    
    .nota-title {
        font-size: 1.2em;
    }
}
