/* İçerik takvimi — saat dilimli haftalık görünüm */
.content-calendar-page {
	--vx-cal-slot-h: 3.25rem;
}

.vx-cal-shell {
	overflow: hidden;
	border-radius: 1rem;
	border: 1px solid var(--demo-border);
	background: var(--demo-surface);
}

.vx-cal-view-switch {
	display: inline-flex;
	padding: 0.2rem;
	border-radius: 0.75rem;
	border: 1px solid var(--demo-border);
	background: var(--demo-surface);
	gap: 0.15rem;
}

.vx-cal-view-btn {
	padding: 0.4rem 0.85rem;
	border-radius: 0.55rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--demo-muted);
	transition: background 0.15s, color 0.15s;
}

.vx-cal-view-btn:hover {
	color: var(--demo-text);
	background: var(--demo-surface-2);
}

.vx-cal-view-btn.is-active {
	background: #155ee8;
	color: #fff;
	box-shadow: 0 2px 8px rgba(21, 94, 232, 0.3);
}

.vx-cal-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--demo-border);
	background: var(--demo-surface-2);
}

.vx-cal-toolbar-title {
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--demo-text);
	letter-spacing: -0.02em;
}

.vx-cal-toolbar-sub {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--demo-muted);
}

.vx-cal-nav {
	display: inline-flex;
	align-items: center;
	border-radius: 0.75rem;
	border: 1px solid var(--demo-border);
	background: var(--demo-surface);
	overflow: hidden;
}

.vx-cal-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--demo-muted);
	transition: background 0.15s, color 0.15s;
	border-right: 1px solid var(--demo-border);
}

.vx-cal-nav a:last-child {
	border-right: none;
}

.vx-cal-nav a:hover {
	background: var(--demo-surface-2);
	color: var(--demo-text);
}

.vx-cal-nav .vx-cal-nav-arrow {
	font-size: 1.25rem;
	line-height: 1;
	padding: 0 0.5rem;
}

.vx-cal-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vx-cal-stat {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.7rem;
	border-radius: 9999px;
	border: 1px solid var(--demo-border);
	background: var(--demo-surface);
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--demo-muted);
}

.vx-cal-stat strong {
	color: var(--demo-text);
	font-size: 0.8125rem;
}

.vx-cal-legend {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--demo-muted);
}

.vx-cal-legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.vx-cal-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
}

.vx-cal-dot--post { background: #ec4899; }
.vx-cal-dot--story { background: #a855f7; }

/* Saat ızgarası */
.vx-cal-timegrid {
	display: grid;
	grid-template-columns: 3.5rem repeat(7, minmax(0, 1fr));
	overflow-x: auto;
}

.vx-cal-corner {
	position: sticky;
	left: 0;
	z-index: 3;
	background: var(--demo-surface-2);
	border-bottom: 1px solid var(--demo-border);
	border-right: 1px solid var(--demo-border);
	min-height: 4.5rem;
}

.vx-cal-dayhead {
	padding: 0.65rem 0.4rem;
	text-align: center;
	border-bottom: 1px solid var(--demo-border);
	border-right: 1px solid var(--demo-border);
	background: var(--demo-surface-2);
	min-height: 4.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
}

.vx-cal-dayhead:last-of-type {
	border-right: none;
}

.vx-cal-dayhead.is-weekend {
	background: rgba(148, 163, 184, 0.08);
}

.vx-cal-dayhead.is-today {
	background: rgba(21, 94, 232, 0.08);
	box-shadow: inset 0 -3px 0 #155ee8;
}

.vx-cal-dayhead-weekday {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--demo-muted);
}

.vx-cal-dayhead-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 9999px;
	font-size: 0.9375rem;
	font-weight: 800;
	color: var(--demo-text);
}

.vx-cal-dayhead.is-today .vx-cal-dayhead-num {
	background: #155ee8;
	color: #fff;
	box-shadow: 0 2px 10px rgba(21, 94, 232, 0.35);
}

.vx-cal-slot-label {
	position: sticky;
	left: 0;
	z-index: 2;
	height: var(--vx-cal-slot-h);
	padding: 0.35rem 0.5rem 0 0;
	text-align: right;
	font-size: 0.625rem;
	font-weight: 600;
	color: var(--demo-muted);
	border-right: 1px solid var(--demo-border);
	border-bottom: 1px solid var(--demo-border);
	background: var(--demo-surface);
}

.vx-cal-slot {
	position: relative;
	height: var(--vx-cal-slot-h);
	border-right: 1px solid var(--demo-border);
	border-bottom: 1px solid var(--demo-border);
	background: var(--demo-surface);
	transition: background 0.12s;
}

.vx-cal-timegrid .vx-cal-slot:nth-child(8n) {
	border-right: none;
}

.vx-cal-slot.is-weekend {
	background: rgba(148, 163, 184, 0.04);
}

.vx-cal-slot.is-today {
	background: rgba(21, 94, 232, 0.03);
}

.vx-cal-slot.is-clickable {
	cursor: pointer;
}

.vx-cal-slot.is-clickable:hover {
	background: rgba(21, 94, 232, 0.06);
}

.vx-cal-slot-events {
	position: absolute;
	inset: 2px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow: hidden;
	pointer-events: none;
}

.vx-cal-ev {
	display: block;
	padding: 2px 5px;
	border-radius: 4px;
	font-size: 0.5625rem;
	font-weight: 700;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border-left: 3px solid transparent;
}

.vx-cal-ev--post {
	background: rgba(236, 72, 153, 0.18);
	border-left-color: #ec4899;
	color: #9d174d;
}

html.dark .vx-cal-ev--post {
	color: #fbcfe8;
}

.vx-cal-ev--story {
	background: rgba(168, 85, 247, 0.18);
	border-left-color: #a855f7;
	color: #6b21a8;
}

html.dark .vx-cal-ev--story {
	color: #e9d5ff;
}

/* Modal — viewport ortasında (body altında) */
.vx-schedule-modal {
	z-index: 200;
}

.vx-schedule-modal .modal-panel {
	max-width: 26rem;
	max-height: min(90vh, 640px);
	overflow-y: auto;
	padding: 0;
}

@media (min-width: 640px) {
	.vx-schedule-modal .modal-panel {
		max-width: 32rem;
		max-height: min(92vh, 720px);
	}
}

@media (min-width: 1024px) {
	.vx-schedule-modal .modal-panel {
		max-width: 42rem;
		width: calc(100vw - 4rem);
	}
}

.vx-schedule-modal-panel {
	position: relative;
}

.vx-schedule-modal-head {
	padding: 1.35rem 1.5rem 1rem;
	border-bottom: 1px solid var(--demo-border);
	background: linear-gradient(135deg, rgba(21, 94, 232, 0.08), rgba(168, 85, 247, 0.06));
}

@media (min-width: 1024px) {
	.vx-schedule-modal-head {
		padding: 1.5rem 1.75rem 1.15rem;
	}
}

.vx-schedule-modal-body {
	padding: 1.25rem 1.5rem 1.5rem;
}

@media (min-width: 1024px) {
	.vx-schedule-modal-body {
		padding: 1.35rem 1.75rem 1.65rem;
	}

	.vx-schedule-modal-body .vx-studio-pick-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		max-height: 9rem;
	}

	#schedule-image-preview img {
		max-height: 14rem;
	}
}

.vx-connect-card {
	text-align: center;
	padding: 0.5rem 0;
}

.vx-connect-icon {
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 auto;
	border-radius: 1rem;
	background: linear-gradient(135deg, #f472b6, #a855f7);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

.vx-type-pill input:checked + span {
	border-color: rgba(236, 72, 153, 0.5);
	background: rgba(236, 72, 153, 0.12);
	color: #be185d;
}

.vx-type-pill input[value="story"]:checked + span,
.vx-type-pill label:has(input[value="story"]:checked) span {
	border-color: rgba(168, 85, 247, 0.5);
	background: rgba(168, 85, 247, 0.12);
	color: #7e22ce;
}

html.dark .vx-type-pill input:checked + span {
	color: #fbcfe8;
}

html.dark .vx-type-pill input[value="story"]:checked + span {
	color: #e9d5ff;
}

/* Aylık görünüm */
.vx-cal-month-head,
.vx-cal-month-row {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.vx-cal-month-head-cell {
	padding: 0.6rem 0.25rem;
	text-align: center;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--demo-muted);
	border-bottom: 1px solid var(--demo-border);
	background: var(--demo-surface-2);
}

.vx-cal-month-cell {
	min-height: 6.5rem;
	border-right: 1px solid var(--demo-border);
	border-bottom: 1px solid var(--demo-border);
	background: var(--demo-surface);
	padding: 0.4rem 0.45rem;
	display: flex;
	flex-direction: column;
	transition: background 0.12s;
}

.vx-cal-month-row .vx-cal-month-cell:last-child {
	border-right: none;
}

.vx-cal-month-cell.is-weekend {
	background: rgba(148, 163, 184, 0.06);
}

.vx-cal-month-cell.is-other-month {
	background: var(--demo-surface-2);
	opacity: 0.55;
}

.vx-cal-month-cell.is-today {
	background: rgba(21, 94, 232, 0.07);
	box-shadow: inset 0 0 0 2px rgba(21, 94, 232, 0.35);
}

.vx-cal-month-cell.is-clickable:hover {
	background: rgba(21, 94, 232, 0.05);
}

.vx-cal-month-cell-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.25rem;
}

.vx-cal-month-daynum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6rem;
	height: 1.6rem;
	font-size: 0.8125rem;
	font-weight: 800;
	color: var(--demo-text);
	border-radius: 9999px;
}

.vx-cal-month-cell.is-today .vx-cal-month-daynum {
	background: #155ee8;
	color: #fff;
}

.vx-cal-month-badge {
	font-size: 0.5625rem;
	font-weight: 700;
	padding: 0.1rem 0.35rem;
	border-radius: 9999px;
	background: rgba(21, 94, 232, 0.12);
	color: #155ee8;
}

.vx-cal-month-events {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	overflow: hidden;
}

.vx-cal-month-ev {
	display: block;
	padding: 2px 4px;
	border-radius: 3px;
	font-size: 0.5625rem;
	font-weight: 700;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border-left: 3px solid transparent;
}

.vx-cal-month-ev.vx-cal-ev--post {
	background: rgba(236, 72, 153, 0.15);
	border-left-color: #ec4899;
	color: #9d174d;
}

.vx-cal-month-ev.vx-cal-ev--story {
	background: rgba(168, 85, 247, 0.15);
	border-left-color: #a855f7;
	color: #6b21a8;
}

html.dark .vx-cal-month-ev.vx-cal-ev--post { color: #fbcfe8; }
html.dark .vx-cal-month-ev.vx-cal-ev--story { color: #e9d5ff; }

.vx-cal-month-more {
	font-size: 0.5625rem;
	font-weight: 600;
	color: var(--demo-muted);
	padding-left: 2px;
}

.vx-cal-timegrid.is-single-day {
	grid-template-columns: 3.5rem minmax(0, 1fr);
}

.vx-cal-timegrid.is-single-day .vx-cal-slot:nth-child(2n) {
	border-right: none;
}

@media (max-width: 900px) {
	.vx-cal-timegrid {
		grid-template-columns: 2.75rem repeat(7, minmax(4.5rem, 1fr));
		min-width: 640px;
	}

	.content-calendar-page .vx-cal-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.vx-studio-pick-item {
	padding: 0;
	background: var(--demo-surface-2);
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.vx-studio-pick-item.is-selected {
	border-color: #155ee8;
	box-shadow: 0 0 0 2px rgba(21, 94, 232, 0.25);
}

.vx-studio-pick-grid::-webkit-scrollbar {
	width: 6px;
}

.vx-studio-pick-grid::-webkit-scrollbar-thumb {
	background: var(--demo-border);
	border-radius: 999px;
}
