/**
 * MayaSoft News Theme - Elementor Integration Styles
 *
 * Proporciona soporte visual para los 12 widgets editoriales y de monetización
 * de MayaSoft News dentro de secciones, contenedores flex y columnas de Elementor.
 *
 * @package MayaSoft\News
 */

/* ==========================================================================
   1. ESTADOS VACÍOS & PLACEHOLDERS (EMPTY STATES)
   ========================================================================== */
.mn-elementor-empty-state {
	padding: var(--mn-space-lg, 1.5rem);
	background-color: var(--mn-color-surface, #f8fafc);
	border: 2px dashed var(--mn-color-border, #cbd5e1);
	border-radius: var(--mn-radius-md, 8px);
	text-align: center;
	color: var(--mn-color-text-muted, #64748b);
	font-size: var(--mn-font-size-sm, 0.875rem);
	margin: var(--mn-space-sm, 0.5rem) 0;
}

.mn-elementor-empty-state p {
	margin: 0;
}

.mn-ad-preview-placeholder {
	background-color: rgba(2, 132, 199, 0.04);
	border-color: var(--mn-color-secondary, #0284c7);
}

/* ==========================================================================
   2. LEAD STORY WIDGET
   ========================================================================== */
.mn-elementor-lead-story {
	width: 100%;
}

.mn-elementor-lead-story .mn-card-lead {
	display: flex;
	flex-direction: column;
	gap: var(--mn-space-md);
}

.mn-elementor-lead-story .mn-card-lead .mn-card-media {
	border-radius: var(--mn-radius-md);
	overflow: hidden;
	position: relative;
}

.mn-elementor-lead-story .mn-card-lead .mn-card-media img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   3. GRIDS: FEATURED, NEWS GRID, CATEGORY, RELATED
   ========================================================================== */
.mn-featured-grid,
.mn-elementor-news-grid .mn-posts-grid,
.mn-elementor-latest-news .mn-posts-grid,
.mn-category-grid,
.mn-related-grid {
	display: grid;
	gap: var(--mn-space-lg);
	width: 100%;
}

/* ==========================================================================
   4. NEWS LIST WIDGET
   ========================================================================== */
.mn-elementor-news-list {
	width: 100%;
}

.mn-list-container {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--mn-space-md);
}

.mn-list-item {
	display: flex;
	gap: var(--mn-space-md);
	align-items: center;
	border-bottom: 1px solid var(--mn-color-border);
	padding-bottom: var(--mn-space-md);
}

.mn-list-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.mn-list-thumb {
	flex-shrink: 0;
	border-radius: var(--mn-radius-sm);
	overflow: hidden;
}

.mn-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mn-list-body {
	flex-grow: 1;
}

/* ==========================================================================
   5. COMPACT NEWS WIDGET
   ========================================================================== */
.mn-elementor-compact-news {
	display: flex;
	flex-direction: column;
	gap: var(--mn-space-sm);
	width: 100%;
}

/* ==========================================================================
   6. CATEGORY NEWS WIDGET
   ========================================================================== */
.mn-elementor-category-news {
	width: 100%;
}

.mn-elementor-category-news .mn-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--mn-space-md);
	border-bottom: 2px solid var(--mn-color-primary);
	padding-bottom: var(--mn-space-xs);
}

.mn-elementor-category-news .mn-section-title {
	margin: 0;
	font-size: var(--mn-font-size-lg);
	font-weight: 700;
	text-transform: uppercase;
}

.mn-elementor-category-news .mn-section-title a {
	color: inherit;
	text-decoration: none;
}

.mn-elementor-category-news .mn-section-view-all {
	font-size: var(--mn-font-size-xs);
	font-weight: 600;
	color: var(--mn-color-secondary);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mn-elementor-category-news .mn-section-view-all:hover {
	color: var(--mn-color-accent);
}

/* ==========================================================================
   7. BREAKING NEWS WIDGET
   ========================================================================== */
.mn-elementor-breaking-ticker {
	width: 100%;
}

.mn-elementor-breaking-list {
	width: 100%;
	padding: var(--mn-space-md);
	background: var(--mn-color-surface);
	border: 1px solid var(--mn-color-border);
	border-radius: var(--mn-radius-md);
}

/* ==========================================================================
   8. AUTHOR BOX WIDGET
   ========================================================================== */
.mn-elementor-author-box {
	width: 100%;
	box-sizing: border-box;
}

/* ==========================================================================
   9. READING TIME WIDGET
   ========================================================================== */
.mn-elementor-reading-time {
	font-size: var(--mn-font-size-xs);
	color: var(--mn-color-text-muted);
}

.mn-elementor-reading-time .mn-reading-time {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

/* ==========================================================================
   10. AD SLOT WIDGET
   ========================================================================== */
.mn-elementor-ad-slot-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.mn-elementor-ad-slot-wrapper .mn-ad-container {
	margin: var(--mn-space-sm) 0;
}
