/* Universal ePaper Clip Pro - Authentic Newspaper Layout & Themes CSS */

/* Base Paper Container - Broadsheet Landscape Layout */
#uecp-paper-sheet {
	width: 920px;
	max-width: 960px;
	min-height: 580px;
	margin: 0 auto;
	padding: 36px 40px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	transition: all 0.3s ease;
	position: relative;
	box-sizing: border-box;
}

/* Unicode Font Definitions */
.telugu-font {
	font-family: "Ramabhadra", "Peddana", "Noto Sans Telugu", "Gurazada", "Noto Serif Telugu", "Playfair Display", Georgia, serif;
}

/* THEMES */

/* Prabhanjanam Newspaper Theme (Exact Match to Image 2) */
.uecp-theme-prabhanjanam {
	position: relative;
	overflow: hidden;
	background-color: #ffffff;
	color: #111111;
	border: 3px double #0d233a;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
	padding: 24px;
	border-radius: 4px;
}

/* PAPER BACKGROUND WATERMARK */
.uecp-paper-watermark {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	user-select: none;
	opacity: 0.06;
	z-index: 0;
}

.uecp-watermark-inner {
	transform: rotate(-25deg);
	text-align: center;
}

.uecp-watermark-title {
	font-size: 72px;
	font-weight: 900;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 2px;
	line-height: 1;
	font-family: Arial, sans-serif;
}

.uecp-watermark-tagline {
	font-size: 20px;
	font-weight: 700;
	color: #222222;
	letter-spacing: 4px;
	margin-top: 8px;
	font-family: Arial, sans-serif;
}

/* TOP SITE BAR */
.uecp-top-site-bar {
	width: 100%;
	max-width: 900px;
	text-align: center;
	background: #ffffff;
	padding: 8px 0;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 2px;
	color: #111111;
	border-bottom: 2px solid #000000;
	margin-bottom: 12px;
	font-family: Arial, Helvetica, sans-serif;
}

/* RED MASTHEAD HEADER */
.uecp-red-header {
	margin-bottom: 16px;
}

.uecp-masthead-red-box {
	background: #c82333;
	color: #ffffff;
	padding: 16px 20px;
	text-align: center;
	border-radius: 2px;
}

.uecp-telugu-logo-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.uecp-sub-logo-tag {
	font-size: 13px;
	font-weight: 700;
	color: #ffeb3b;
	margin-bottom: 2px;
	letter-spacing: 0.5px;
}

.uecp-main-logo-heading {
	font-size: 42px;
	font-weight: 900;
	color: #ffffff;
	margin: 0;
	line-height: 1.1;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* PUBLISH DATE & AUTHOR BAR */
.uecp-publish-bar {
	background: #991b1b;
	color: #ffffff;
	padding: 6px 16px;
	font-size: 12px;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(255,255,255,0.2);
}

.uecp-pub-left, .uecp-pub-right {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* MULTI-COLUMN ARTICLE FLOW */
.uecp-layout-2col #uecp-article-text-content {
	column-count: 2;
	column-gap: 22px;
	column-rule: 1px solid #cbd5e1;
	text-align: justify;
}

.uecp-layout-3col #uecp-article-text-content {
	column-count: 3;
	column-gap: 22px;
	column-rule: 1px solid #cbd5e1;
	text-align: justify;
}

.uecp-layout-4col #uecp-article-text-content {
	column-count: 4;
	column-gap: 18px;
	column-rule: 1px solid #cbd5e1;
	text-align: justify;
}

.uecp-layout-2col #uecp-article-text-content p,
.uecp-layout-3col #uecp-article-text-content p,
.uecp-layout-4col #uecp-article-text-content p {
	break-inside: avoid-column;
	text-indent: 1em;
	margin-bottom: 12px;
	line-height: 1.65;
}

/* GRID CONTAINER */
.uecp-grid-container {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 20px;
	margin-top: 16px;
}

@media (max-width: 768px) {
	.uecp-grid-container {
		grid-template-columns: 1fr;
	}
}

.uecp-grid-left {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.uecp-featured-img {
	width: 100%;
	height: auto;
	border: 1px solid #111111;
	object-fit: cover;
}

.uecp-sub-bullet {
	font-size: 13px;
	font-weight: 700;
	color: #b91c1c;
	margin-top: 4px;
}

/* RED SUBHEADINGS IN CONTENT */
.uecp-subheading-red {
	color: #c82333;
	font-size: 16px;
	font-weight: 800;
	margin: 14px 0 6px 0;
	display: block;
}

/* CMYK DOTS */
.uecp-cmyk-dots {
	display: flex;
	align-items: center;
	gap: 4px;
}

.cmyk-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.cmyk-dot.cyan { background-color: #00aeef; }
.cmyk-dot.magenta { background-color: #ec008c; }
.cmyk-dot.yellow { background-color: #fff200; }
.cmyk-dot.key-black { background-color: #000000; }

/* BOTTOM ACTION TOOLBAR */
.uecp-bottom-toolbar {
	width: 100%;
	background: #1f2937;
	border-top: 1px solid #374151;
	padding: 10px 16px;
	position: sticky;
	bottom: 0;
	z-index: 40;
}

.uecp-bottom-toolbar-container {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.uecp-bottom-select {
	background: #374151;
	color: #ffffff;
	border: 1px solid #4b5563;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	outline: none;
}

.uecp-bottom-btn {
	background: #374151;
	color: #ffffff;
	border: 1px solid #4b5563;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}

.uecp-bottom-btn:hover {
	background: #4b5563;
	transform: translateY(-1px);
}

.uecp-bottom-btn.uecp-btn-highlight {
	background: #2563eb;
	border-color: #3b82f6;
	color: #ffffff;
}

.uecp-bottom-btn.uecp-btn-highlight:hover {
	background: #1d4ed8;
}

/* 1. Classic Broadsheet (Traditional Aged Newsprint) */
.uecp-theme-light, .uecp-theme-broadsheet {
	background-color: #fcfbf7;
	color: #1a1a1a;
	border: 1px solid #dcd7cb;
}
.uecp-theme-light .uecp-paper-title {
	font-family: "Playfair Display", "Cinzel", "Gurazada", Georgia, serif;
	color: #111827;
}

/* 2. Modern Daily (Sleek High Contrast White) */
.uecp-theme-modern {
	background-color: #ffffff;
	color: #0f172a;
	border: 1px solid #e2e8f0;
}
.uecp-theme-modern .uecp-paper-title {
	font-family: "Cinzel", "Helvetica Neue", sans-serif;
	text-transform: uppercase;
	letter-spacing: 2px;
}

/* 3. Vintage Sepia (Aged Antique Parchment) */
.uecp-theme-vintage {
	background-color: #f4ecd8;
	color: #3b2a1a;
	border: 1px solid #c8b99c;
}
.uecp-theme-vintage .uecp-paper-title {
	font-family: "Playfair Display", "Peddana", Georgia, serif;
}

/* 4. Dark Executive (Night Mode Newspaper) */
.uecp-theme-dark {
	background-color: #18181b;
	color: #e4e4e7;
	border: 1px solid #27272a;
}
.uecp-theme-dark .uecp-paper-title {
	font-family: "Cinzel", "Playfair Display", Georgia, serif;
	color: #ffffff;
}
.uecp-theme-dark .uecp-header-top-bar {
	border-color: #3f3f46;
	color: #a1a1aa;
}
.uecp-theme-dark .uecp-header-bottom-border {
	border-color: #3f3f46;
}
.uecp-theme-dark .uecp-image-caption {
	background: #27272a;
	color: #d4d4d8;
}

/* 5. Minimalist Journal (Clean Line Art) */
.uecp-theme-minimal {
	background-color: #fafafa;
	color: #27272a;
	border: 2px solid #000000;
}

/* MASTHEAD HEADER */
.uecp-header-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 2px solid currentColor;
	border-bottom: 1px solid currentColor;
	padding: 6px 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.uecp-masthead {
	text-align: center;
	padding: 10px 0 15px 0;
}

.uecp-masthead-logo {
	max-height: 60px;
	margin: 0 auto 10px auto;
	display: block;
}

.uecp-paper-title {
	font-size: 48px;
	font-weight: 900;
	line-height: 1.1;
	margin: 0 0 6px 0;
	text-align: center;
}

.uecp-paper-tagline {
	font-size: 13px;
	font-style: italic;
	letter-spacing: 0.5px;
	opacity: 0.85;
}

.uecp-header-bottom-border {
	border-bottom: 3px double currentColor;
	margin-top: 15px;
	margin-bottom: 25px;
}

/* ARTICLE HEADLINE & BYLINE */
.uecp-article-head {
	text-align: center;
	margin-bottom: 25px;
}

.uecp-category-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 3px 10px;
	border: 1px solid currentColor;
	margin-bottom: 12px;
}

.uecp-article-title {
	font-size: 32px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 15px 0;
	letter-spacing: -0.2px;
}

.uecp-article-byline {
	font-size: 13px;
	font-weight: 600;
	opacity: 0.85;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* FEATURED IMAGE */
.uecp-featured-image-wrapper {
	margin: 0 0 25px 0;
	text-align: center;
}

.uecp-featured-img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
	border: 1px solid currentColor;
	display: block;
}

.uecp-image-caption {
	font-size: 11px;
	font-style: italic;
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.04);
	border-bottom: 1px solid currentColor;
	border-left: 1px solid currentColor;
	border-right: 1px solid currentColor;
	text-align: left;
}

/* MULTI-COLUMN ARTICLE BODY */
.uecp-article-columns {
	font-size: 15px;
	line-height: 1.65;
	text-align: justify;
	margin-bottom: 30px;
}

.uecp-article-columns p {
	margin: 0 0 14px 0;
	text-indent: 18px;
}

.uecp-article-columns p:first-of-type {
	text-indent: 0;
}

/* Drop Cap on first paragraph */
.uecp-article-columns p:first-of-type::first-letter {
	font-size: 52px;
	line-height: 0.8;
	float: left;
	font-weight: 800;
	margin-right: 8px;
	margin-top: 4px;
	font-family: Georgia, "Playfair Display", serif;
}

/* COLUMN LAYOUTS */
.uecp-layout-1col .uecp-article-columns {
	column-count: 1;
}

.uecp-layout-2col .uecp-article-columns {
	column-count: 2;
	column-gap: 32px;
	column-rule: 1px solid rgba(0, 0, 0, 0.15);
}

.uecp-layout-3col .uecp-article-columns {
	column-count: 3;
	column-gap: 24px;
	column-rule: 1px solid rgba(0, 0, 0, 0.15);
}

/* FOOTER */
.uecp-paper-footer {
	border-top: 2px solid currentColor;
	padding-top: 15px;
	margin-top: 25px;
}

.uecp-footer-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.uecp-footer-qr-container {
	display: flex;
	align-items: center;
	gap: 12px;
}

.uecp-qr-label {
	font-size: 11px;
	line-height: 1.3;
}

.uecp-copyright {
	font-size: 11px;
	text-align: center;
	opacity: 0.8;
}

.uecp-press-badge {
	font-size: 10px;
	font-weight: 800;
	padding: 4px 8px;
	border: 1px solid currentColor;
	letter-spacing: 1px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
	#uecp-paper-sheet {
		padding: 25px 20px;
	}

	.uecp-paper-title {
		font-size: 32px;
	}

	.uecp-article-title {
		font-size: 24px;
	}

	.uecp-layout-2col .uecp-article-columns,
	.uecp-layout-3col .uecp-article-columns {
		column-count: 1 !important;
	}

	.uecp-footer-content {
		flex-direction: column;
		text-align: center;
	}

	.uecp-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.uecp-toolbar-group {
		justify-content: center;
	}
}

/* PRINT MEDIA STYLES */
@media print {
	body * {
		visibility: hidden;
	}
	#uecp-paper-sheet, #uecp-paper-sheet * {
		visibility: visible;
	}
	#uecp-paper-sheet {
		position: absolute;
		left: 0;
		top: 0;
		width: 100% !important;
		max-width: 100% !important;
		box-shadow: none !important;
		border: none !important;
		padding: 0 !important;
		background: #ffffff !important;
		color: #000000 !important;
	}
	.uecp-toolbar, #uecp-share-panel, .uecp-modal-backdrop {
		display: none !important;
	}
}
