/**
 * Public-facing styles for EditorialPub.
 *
 * @package    EditorialPub
 * @subpackage EditorialPub/public/css
 */

/* Full page background - reset body margins */
html:has(.editorialpub-calendar),
body:has(.editorialpub-calendar) {
	overflow-x: hidden !important;
	width: 100% !important;
	max-width: 100% !important;
}

body:has(.editorialpub-calendar),
body:has(.editorialpub-calendar) .site,
body:has(.editorialpub-calendar) .site-content,
body:has(.editorialpub-calendar) .content-area,
body:has(.editorialpub-calendar) .site-main,
body:has(.editorialpub-calendar) .entry-content,
body:has(.editorialpub-calendar) .wp-block-group__inner-container,
body:has(.editorialpub-calendar) .container,
body:has(.editorialpub-calendar) .wrap,
body:has(.editorialpub-calendar) article,
body:has(.editorialpub-calendar) .page-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box !important;
	overflow-x: hidden !important;
}

/* Reset mais agressivo para garantir largura total */
body:has(.editorialpub-calendar) #page,
body:has(.editorialpub-calendar) #main,
body:has(.editorialpub-calendar) #content,
body:has(.editorialpub-calendar) .main-content,
body:has(.editorialpub-calendar) .content-wrapper {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.editorialpub-wrapper {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	overflow-x: hidden !important;
	box-sizing: border-box !important;
}

/* Dark theme base - Full page background */
.editorialpub-calendar {
	/* background: #1a1a1a; */
	/* background: linear-gradient(0deg,#000000,#272727); */
    background: linear-gradient(0deg,#36a253,#44ca67);

	color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	height: 100vh;
	max-height: 100vh;
	width: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

/* Wrapper que agrupa sidebar + calendário para controlar posição */
.editorialpub-layout {
	display: flex;
	/* flex-direction: row; */
	/* align-items: stretch; */
	/* justify-content: center; */
	/* width: 100%; */
	/* height: 100%; */
	max-width: 1380px;
	margin: auto auto;
	box-sizing: border-box;
}

.editorialpub-loading {
	text-align: center;
	padding: 40px;
	color: #ffffff;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

.editorialpub-loading-logo {
	max-width: 200px;
	height: auto;
	animation: editorialpub-pulse 2s ease-in-out infinite;
	margin-bottom: 20px;
}

.editorialpub-loading-text {
	font-size: 18px;
	font-weight: 500;
	color: #ffffff;
	margin: 0;
	animation: editorialpub-fade 1.5s ease-in-out infinite;
}

@keyframes editorialpub-pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.05);
	}
}

@keyframes editorialpub-fade {
	0%, 100% {
		opacity: 0.6;
	}
	50% {
		opacity: 1;
	}
}

/* Two-column layout */
.editorialpub-sidebar {
	width: 330px;
	min-width: 300px;
	max-width: 400px;
	/* background: #1a1a1a; */
	padding: 30px 18px;
	overflow-y: auto;
	overflow-x: hidden;
	height: 100%;
	max-height: 100vh;
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	border: none;
	box-sizing: border-box;
}

.editorialpub-main {
	flex: 1;
	padding: 30px 30px 30px 24px;
	overflow-y: auto !important; /* Scroll apenas neste container quando necessário */
	overflow-x: hidden;
	height: 95vh; /* Altura fixa para forçar scroll interno */
	max-height: 95vh;
	box-sizing: border-box;
	min-width: 0; /* Allows flex item to shrink below content size */
	display: flex;
	flex-direction: column;
	position: relative;
	border-radius: 24px;
	/* border: 1px solid #2d2d2d; */
	/* background: linear-gradient(180deg,#000000,#272727); */
    /* background: linear-gradient(0deg,#36a253,#44ca67); */
    background: linear-gradient(180deg,#36a253,#44ca67);

	/* background: #111111; */
}

/* Garantir que o grid não force o container a crescer */
.editorialpub-main > .editorialpub-grid {
	flex-shrink: 0; /* Não encolhe, mas permite scroll */
}

/* Header */
.editorialpub-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	flex-wrap: wrap;
	gap: 20px;
	padding-bottom: 0;
	border-bottom: none;
	width: 980px;
	max-width: 1051px;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	overflow: visible;
	margin-left: 0;
	margin-right: auto;
	flex-shrink: 0; /* Não encolhe, mantém tamanho fixo */
}

.editorialpub-header-left {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
}

.editorialpub-month-selector {
	display: flex;
	align-items: center;
	gap: 15px;
	position: relative;
	z-index: 100;
}

.editorialpub-month-selector select {
	background: transparent;
	color: #ffffff;
	border: none;
	padding: 10px 40px 10px 15px;
	border-radius: 0;
	font-size: 24px;
	font-weight: 600;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	min-width: 210px;
	transition: opacity 0.2s;
	position: relative;
	z-index: 1;
}

.editorialpub-month-selector select:hover {
	opacity: 0.8;
}

.editorialpub-month-selector select:focus {
	outline: none;
}

.editorialpub-nav-button {
	display: none; /* Hide nav buttons, use only selects */
}

/* Year select styling */
.editorialpub-year-select {
	background: transparent;
	color: #ffffff;
	border: none;
	padding: 10px 40px 10px 15px;
	border-radius: 0;
	font-size: 24px;
	font-weight: 600;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	min-width: 120px;
	transition: opacity 0.2s;
	position: relative;
	z-index: 1;
}

.editorialpub-year-select:hover {
	opacity: 0.8;
}

.editorialpub-year-select:focus {
	outline: none;
}

/* Ensure select options appear correctly */
.editorialpub-month-selector select option,
.editorialpub-year-select option {
	background: #1a1a1a;
	color: #ffffff;
	padding: 10px;
}

/* Fix dropdown positioning - ensure options appear below */
.editorialpub-month-selector select,
.editorialpub-year-select {
	position: relative;
	z-index: 101;
}

/* Prevent overflow issues that cause dropdown to appear at top */
.editorialpub-header {
	overflow: visible;
}

.editorialpub-main {
	overflow-y: auto;
	overflow-x: hidden;
}

.editorialpub-nav-button {
	background: #2d2d2d;
	color: #ffffff;
	border: 1px solid #444;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}

.editorialpub-nav-button:hover {
	background: #3d3d3d;
}

.editorialpub-header-right {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.editorialpub-action-button {
	color: #ffffff;
    background-color: #61ce70;
	/* border: 1px solid #444; */
    border: none;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s;
    font-size: 13px;
    font-weight: 600;
}

.editorialpub-action-button:hover, .editorialpub-action-button:focus {
	background: #1a1a1a;
}

/* Sidebar content */
.editorialpub-sidebar-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.editorialpub-title {
	font-size: 42px;
	font-weight: 800;
	margin: 0 0 10px 0;
	color: #ffffff;
}

.editorialpub-description {
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	margin-bottom: 20px;
}

.editorialpub-filters {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	margin-top: 12px;
	border-radius: 16px;
	/* background: #272727; */
    background: #3f4444;
	/* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); */
	width: 100%;
	/* max-width: 260px; */
}

.editorialpub-filters-title {
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	display: block;
	margin-bottom: 4px;
}

.editorialpub-filter-section button{
	margin-bottom: 8px;
	display: flex;
	width: 100%;
	border-radius: 8px;
	background: none !important;
}
.editorialpub-filter-section span{
	font-size: 14px;
	font-weight: 700;
	/* color: #b0b0b0; */
}

.editorialpub-filter-section-content {
	display: none;
	padding: 0;
}

.editorialpub-filter-section-content.expanded {
	display: block;
	padding: 4px 0 0 12px;
}

/* Botão de toggle dos grupos de filtros (Temas, Categorias, Formato) */
.editorialpub-filter-toggle {
	width: 100%;
	max-width: 250px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 10px;
	border: 2px solid currentColor;
	background: transparent;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	text-align: left;
}

.editorialpub-filter-toggle-icon {
	width: 14px;
	text-align: center;
	font-size: 14px;
}

.editorialpub-filter-toggle.border-magenta,
.editorialpub-filter-button.border-magenta {
	color: #ec4899;
	border-color: #ec4899;
}

.editorialpub-filter-toggle.border-mint,
.editorialpub-filter-button.border-mint {
	color: #22c55e;
	border-color: #22c55e;
}

.editorialpub-filter-toggle.border-orange,
.editorialpub-filter-button.border-orange {
	color: #f97316;
	border-color: #f97316;
}

/* Estado expandido - background colorido */
.editorialpub-filter-toggle.border-magenta.expanded {
	background: #ec4899 !important;
	color: #000000 !important;
	border-color: #ec4899 !important;
}

/* Estado normal (não expandido) - sempre transparente */
.editorialpub-filter-toggle.border-magenta:not(.expanded) {
	background: transparent !important;
	color: #ec4899;
}

.editorialpub-filter-toggle.border-magenta:not(.expanded):hover {
	background: transparent !important;
	color: #ec4899;
}

/* Estado expandido - background colorido */
.editorialpub-filter-toggle.border-mint.expanded {
	background: #22c55e !important;
	color: #000000 !important;
	border-color: #22c55e !important;
}

/* Estado normal (não expandido) - sempre transparente */
.editorialpub-filter-toggle.border-mint:not(.expanded) {
	background: transparent !important;
	color: #22c55e;
}

.editorialpub-filter-toggle.border-mint:not(.expanded):hover {
	background: transparent !important;
	color: #22c55e;
}

/* Estado expandido - background colorido */
.editorialpub-filter-toggle.border-orange.expanded {
	background: #f97316 !important;
	color: #000000 !important;
	border-color: #f97316 !important;
}

/* Estado normal (não expandido) - sempre transparente */
.editorialpub-filter-toggle.border-orange:not(.expanded) {
	background: transparent !important;
	color: #f97316;
}

.editorialpub-filter-toggle.border-orange:not(.expanded):hover {
	background: transparent !important;
	color: #f97316;
}

.editorialpub-filter-button {
	background: transparent;
	color: #ffffff;
	border: none;
	padding: 4px 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	width: 100%;
	max-width: 250px;
	transition: all 0.2s;
	text-align: left;
}

/* Garantir que todos os bullet points sejam exibidos */
.editorialpub-filter-button .editorialpub-filter-bullet {
	display: inline-block !important;
	width: 12px !important;
	height: 12px !important;
	border-radius: 2px;
	margin-right: 8px;
	flex-shrink: 0;
}

/* Cores específicas para cada tipo de filtro */
.editorialpub-filter-button.border-magenta .editorialpub-filter-bullet {
	background: #ec4899 !important;
}

.editorialpub-filter-button.border-mint .editorialpub-filter-bullet {
	background: #22c55e !important;
}

.editorialpub-filter-button.border-orange .editorialpub-filter-bullet {
	background: #f97316 !important;
}

.editorialpub-filter-button.active {
	font-weight: 600;
}

/* Neutraliza qualquer efeito visual de hover/focus nos subitens */
.editorialpub-filter-button:hover,
.editorialpub-filter-button:focus {
	background: transparent;
	color: inherit;
}

/* Calendar Grid */
.editorialpub-grid {
	display: grid;
	grid-template-columns: repeat(7, 140px);
	gap: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: hidden;
	width: 980px; /* 7 * 140px = 980px (com bordas pode chegar a ~1051px) */
	max-width: 1051px;
	box-sizing: border-box;
	margin: 0;
}

.editorialpub-day-header {
	display: none; /* Headers removed - day names shown inside cells */
}

.editorialpub-day {
	/* background: #1a1a1a; */
    background: #3f4444;
	min-height: 150px;
	height: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	overflow: hidden;
	position: relative;
	width: 140px;
	max-width: 140px;
	box-sizing: border-box;
	/* border: 1px solid #2d2d2d; */
    border: 1px solid rgb(58, 57, 57);
	border-right: none;
	border-bottom: none;
}

.editorialpub-day:nth-child(7n) {
	border-right: 1px solid #2d2d2d;
}

/* Last row of days */
.editorialpub-grid > .editorialpub-day:nth-last-child(-n+7) {
	border-bottom: 1px solid #2d2d2d;
}

.editorialpub-day-number {
	font-size: 1.125rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 8px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.editorialpub-day-number .day-name {
	font-size: 11px;
	font-weight: 400;
	color: #b0b0b0;
	text-transform: lowercase;
	margin-left: 4px;
}

.editorialpub-day.other-month {
	opacity: 0.3;
}

.editorialpub-day.today .editorialpub-day-number {
	color: #84cc16;
	font-weight: 700;
}

/* Event Cards */
.editorialpub-event-card {
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	flex-shrink: 0;
	line-height: 1.5;
	min-width: 0; /* Allows text truncation in flex container */
	margin-bottom: 4px;
}

.editorialpub-event-card:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.editorialpub-event-card:hover {
	opacity: 0.8;
}

.editorialpub-event-card.color-blue {
	background: #3b82f6;
	color: #ffffff;
}

.editorialpub-event-card.color-green {
	background: #84cc16;
	color: #1a1a1a;
}

.editorialpub-event-card.color-pink {
	background: #ec4899;
	color: #ffffff;
}

.editorialpub-event-card.color-red {
	background: #ef4444;
	color: #ffffff;
}

.editorialpub-event-card.color-purple {
	background: #a855f7;
	color: #ffffff;
}

.editorialpub-event-card.color-gray {
	background: #6b7280;
	color: #ffffff;
}

.editorialpub-event-more {
	color: #b0b0b0;
	font-size: 11px;
	cursor: pointer;
	margin-top: 4px;
	flex-shrink: 0;
}

.editorialpub-event-more:hover {
	color: #ffffff;
}

/* Ensure day content doesn't overflow */
.editorialpub-day > * {
	max-width: 100%;
	overflow: hidden;
}

/* Modal */
.editorialpub-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
}

.editorialpub-modal {
	background: #ffffff;
	color: #1a1a1a;
	border-radius: 8px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.editorialpub-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	/* border-bottom: 1px solid #e0e0e0; */
}

.editorialpub-modal-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Ícones flat e escuros no modal */
.editorialpub-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: #1a1a1a;
	flex-shrink: 0;
}

.editorialpub-icon svg {
	width: 100%;
	height: 100%;
}

.editorialpub-modal-close {
	background: none !important;
	border: none !important;
	font-size: 24px;
	cursor: pointer;
	color: #666 !important;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: none;
}

.editorialpub-modal-close:hover,
.editorialpub-modal-close:focus,
.editorialpub-modal-close:active {
	color: #666 !important;
	background: none !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.editorialpub-modal-content {
	padding: 20px;
}

.editorialpub-modal-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 15px;
}

.editorialpub-modal-tags {
	display: flex;
	gap: 8px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.editorialpub-modal-tag {
	background: #3b82f6;
	color: #ffffff;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
}

.editorialpub-modal-main-title {
	font-size: 14px;
	font-weight: 500;
	color: #666;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.editorialpub-modal-item-title {
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	margin: 0 0 15px 0;
	color: #000000;
}

.editorialpub-modal-item-excerpt {
	color: #000000;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	margin-bottom: 20px;
}

.editorialpub-modal-actions {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.editorialpub-modal-actions button:hover,
.editorialpub-modal-actions button:focus,
.editorialpub-modal-actions button:active {
	background-color: transparent !important;
	color: #000000 !important;
}

.editorialpub-modal-action {
	background: #ffffff !important;
	color: #000000 !important;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	font-weight: 600;
	transition: background 0.2s, border-color 0.2s;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.editorialpub-modal-action .editorialpub-icon {
	margin-bottom: 4px;
}

/* Garante que o texto das ações quebre dentro do botão */
.editorialpub-modal-action span {
	display: block;
	text-align: center;
	white-space: normal;
	word-break: break-word;
	max-width: 100%;
}
button.editorialpub-modal-action:hover {
	background-color: none !important;
}

/* Layout em duas colunas (conteúdo + ações) apenas para a modal de item */
.editorialpub-modal.editorialpub-modal--with-actions {
	max-width: 780px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto;
	column-gap: 8px;
	background: transparent; /* deixa o espaço entre colunas com a cor do overlay/página */
	border-radius: 0;        /* bordas passam a ser controladas pelas caixas internas */
}

/* Coluna esquerda: header + conteúdo dentro de um cartão único */
.editorialpub-modal.editorialpub-modal--with-actions .editorialpub-modal-main {
	grid-column: 1 / 2;
	background: #ffffff;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	overflow: hidden; /* garante que o conteúdo respeita o raio */
}

/* Coluna direita: ações em outro cartão */
.editorialpub-modal.editorialpub-modal--with-actions .editorialpub-modal-actions {
	grid-column: 2 / 3;
	align-self: flex-start;
	padding: 20px 0px;
	background: #ffffff;
	border-radius: 16px;
	max-width: 160px;
}

.editorialpub-modal-sponsor {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

/* Calendar Selection Modal */
.editorialpub-calendar-modal {
	background: #ffffff;
	border-radius: 8px;
	padding: 20px;
	max-width: 400px;
	width: 100%;
}

.editorialpub-calendar-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.editorialpub-calendar-modal-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}

.editorialpub-calendar-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.editorialpub-calendar-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s;
}

.editorialpub-calendar-option:hover {
	background: #f5f5f5;
}

.editorialpub-calendar-option-icon {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.editorialpub-calendar-option-icon .editorialpub-icon {
	width: 24px;
	height: 24px;
	color: #1a1a1a;
}

.editorialpub-calendar-option-text {
	font-weight: 500;
}

/* Share Calendar Modal */
.editorialpub-share-modal {
	background: #ffffff;
	color: #000000;
	border-radius: 16px;
	padding: 24px;
	max-height: 98vh;
	width: 90vw;
	max-width: 40rem;
	position: relative;
}

.editorialpub-share-close {
	position: absolute;
	right: 16px;
	top: 16px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.editorialpub-share-close:hover {
	background: none;
}

.editorialpub-share-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 24px 0 8px;
}

.editorialpub-share-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	text-align: center;
}

.editorialpub-share-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.editorialpub-share-input {
	width: 100%;
	border-radius: 8px;
	border: none;
	background: #f5f5f5;
	padding: 12px 16px;
	outline: none;
	font-size: 14px;
	color: #000000;
	box-sizing: border-box;
}

.editorialpub-share-input:disabled,
.editorialpub-share-input[readonly] {
	color: #000000;
}

.editorialpub-share-copy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	padding: 8px 24px;
	font-size: 14px;
	font-weight: 600;
	background: #000000;
	color: #ffffff;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	align-self: center;
	white-space: nowrap;
}

.editorialpub-share-copy-button:hover {
	background: #262626;
}

.editorialpub-share-copy-button:active {
	transform: scale(0.97);
}

.editorialpub-share-socials {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
}

.editorialpub-share-socials-text {
	margin: 0;
	font-size: 14px;
}

.editorialpub-share-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.editorialpub-share-social-link svg {
	display: block;
}

@media (min-width: 1024px) {
	.editorialpub-share-modal {
		padding: 32px;
	}

	.editorialpub-share-content {
		padding-top: 32px;
	}

	.editorialpub-share-row {
		flex-direction: row;
		align-items: center;
	}

	.editorialpub-share-copy-button {
		align-self: auto;
	}
}

/* CTA Button */
.editorialpub-cta-button {
	/* background: #000000; */
    background: #61ce70;
	color: #ffffff;
	border: none;
	padding: 12px 20px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	width: 100%;
	justify-content: center;
	transition: background 0.2s;
	font-size: 14px;
    font-weight: 600;
}

.editorialpub-cta-button:hover, .editorialpub-cta-button:active, .editorialpub-cta-button:focus {
	background: #1a1a1a;
}

/* Responsive */
@media (max-width: 1024px) {
	.editorialpub-calendar {
		flex-direction: column;
		width: 100%;
		overflow-x: hidden;
	}

	.editorialpub-layout {
		flex-direction: column;
		max-width: 100%;
	}

	.editorialpub-sidebar {
		width: 100%;
		max-width: 100%;
		height: auto;
		position: relative;
		border-right: none;
		border-bottom: 1px solid #2d2d2d;
		padding: 20px;
	}

	.editorialpub-main {
		padding: 20px;
		width: 100%;
		align-items: stretch;
	}
	
	.editorialpub-grid {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
	}
}

@media (max-width: 768px) {
	.editorialpub-header {
		flex-direction: column;
		align-items: stretch;
	}

	.editorialpub-grid {
		grid-template-columns: 1fr;
	}

	.editorialpub-day {
		min-height: auto;
		padding: 12px;
		border-bottom: 1px solid #2d2d2d;
	}

	.editorialpub-day-header {
		display: none;
	}

	.editorialpub-modal-actions {
		position: static;
		flex-direction: row;
		margin-top: 20px;
	}

	.editorialpub-modal-action {
		flex: 1;
	}

	.editorialpub-sidebar {
		padding: 15px;
	}

	/* Em telas pequenas, a modal com ações volta para layout em coluna única */
	.editorialpub-modal.editorialpub-modal--with-actions {
		display: block;
		max-width: 100%;
	}

	.editorialpub-modal.editorialpub-modal--with-actions .editorialpub-modal-header,
	.editorialpub-modal.editorialpub-modal--with-actions .editorialpub-modal-content,
	.editorialpub-modal.editorialpub-modal--with-actions .editorialpub-modal-actions {
		grid-column: auto;
	}

	.editorialpub-modal.editorialpub-modal--with-actions .editorialpub-modal-actions {
		padding: 0 20px 20px 20px;
	}
}