/* =============================================================
 * HANI SUDDI — Inshorts-style feed
 * Full-screen vertical card experience
 * ============================================================= */

/* Page shell — no header offset now */
.vg-hs-page {
	position: fixed;
	inset: 0;
	top: 0;
	background: #0D0D0D;
	overflow: hidden;
	z-index: 100;
}

.vg-hs-feed {
	height: 100%;
	overflow-y: scroll;
	scroll-snap-type: y mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.vg-hs-feed::-webkit-scrollbar { display: none; }

.vg-hs-slot {
	height: 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	position: relative;
	display: flex;
	align-items: stretch;
}

.vg-hs-card {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;        /* NO internal scroll */
	height: 100%;
}

/* Featured image — 32% */
.vg-hs-card-image {
	width: 100%;
	flex: 0 0 32%;
	max-height: 32%;
	overflow: hidden;
	position: relative;
	background: #1A1A1A;
}
.vg-hs-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}
.vg-hs-card-no-image {
	width: 100%;
	flex: 0 0 100px;
	background: linear-gradient(135deg, #C0392B 0%, #8E1A0F 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}
.vg-hs-card-no-image-text {
	font-family: var(--vg-font-head);
	font-size: 24px;
	font-weight: 700;
	color: rgba(255,255,255,0.25);
}

/* Logo bar — moved UP into the image */
.vg-hs-logo-bar {
	position: absolute;
	top: calc(32% - 30px);
	left: 0;
	right: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 0 14px;
	z-index: 4;
	pointer-events: none;
}
.vg-hs-logo-left img {
	height: 44px;
	width: auto;
	max-width: 130px;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.vg-hs-logo-left-fallback {
	display: inline-flex;
	background: #C0392B;
	color: #FFFFFF;
	font-family: var(--vg-font-head);
	font-size: 17px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 4px;
}
.vg-hs-logo-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}
.vg-hs-logo-right img {
	height: 40px;
	width: auto;
	max-width: 120px;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.vg-hs-logo-right-fallback {
	font-family: var(--vg-font-head);
	font-size: 16px;
	font-weight: 700;
	color: #C0392B;
}
.vg-hs-logo-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	background: rgba(255,255,255,0.92);
	padding: 2px 8px;
	border-radius: 4px;
}
.vg-hs-logo-date {
	font-family: 'Inter', sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.6px;
	color: #6B6B6B;
	text-transform: uppercase;
}
.vg-hs-logo-domain {
	font-family: 'Inter', sans-serif;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: #C0392B;
	text-transform: uppercase;
}

/* Content — fills remaining, no scroll */
.vg-hs-card-content {
	flex: 1;
	overflow: hidden;
	padding: 18px 16px 8px;
	display: flex;
	flex-direction: column;
}
.vg-hs-card-title {
	font-family: 'Anek Kannada', var(--vg-font-head), sans-serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	color: #1A1A1A;
	margin: 0 0 8px;
}
.vg-hs-card-body {
	font-family: 'Anek Kannada', var(--vg-font-body), sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.55;
	color: #3A3A3A;
	margin: 0 0 8px;
	flex: 1;
	overflow: hidden;
}
.vg-hs-read-full-link {
	display: inline-block;
	font-family: var(--vg-font-body);
	font-size: 13px;
	font-weight: 700;
	color: #C0392B;
	text-decoration: none;
	border-bottom: 1px dashed #C0392B;
	padding-bottom: 1px;
	align-self: flex-start;
	flex-shrink: 0;
}

/* SINGLE ACTION BAR — reactions + home/share/copy */
.vg-hs-action-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 12px;
	border-top: 1px solid #F0EBE1;
	background: #FFFFFF;
	flex-shrink: 0;
	gap: 8px;
}
.vg-hs-reactions-inline {
	display: flex;
	align-items: center;
	gap: 2px;
}
.vg-hs-react-btn {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	border-radius: 50%;
	transition: transform 0.12s, background 0.12s;
	position: relative;
}
.vg-hs-react-btn:hover { background: #F5F0E6; transform: scale(1.15); }
.vg-hs-react-btn:active { transform: scale(0.85); }
.vg-hs-react-btn.is-reacted { background: #FFF0EE; transform: scale(1.1); }
.vg-hs-react-pct {
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Inter', sans-serif;
	font-size: 8px;
	font-weight: 700;
	color: #888;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s;
}
.vg-hs-reactions-inline.revealed .vg-hs-react-pct { opacity: 1; }

.vg-hs-action-icons {
	display: flex;
	align-items: center;
	gap: 4px;
}
.vg-hs-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #E5E5E5;
	background: #FAFAFA;
	color: #3A3A3A;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}
.vg-hs-icon-btn:hover { background: #F0EBE1; border-color: #C0392B; color: #C0392B; }
.vg-hs-icon-btn.is-copied { background: #F0FFF4; border-color: #27AE60; color: #27AE60; }

/* Banner ad */
.vg-hs-ad-banner {
	padding: 6px 12px;
	background: #F9F9F9;
	border-top: 1px solid #EFEFEF;
	text-align: center;
	flex-shrink: 0;
}

/* Scroll-up hint */
.vg-hs-scroll-hint {
	position: absolute;
	bottom: 70px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: rgba(0,0,0,0.4);
	pointer-events: none;
	z-index: 5;
	animation: vgHsBounce 1.8s ease-in-out infinite;
}
.vg-hs-scroll-hint-chevron {
	font-size: 20px;
	line-height: 1;
}
.vg-hs-scroll-hint-text {
	font-family: var(--vg-font-body);
	font-size: 11px;
	font-weight: 600;
}
@keyframes vgHsBounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(-8px); }
}
.vg-hs-scroll-hint.is-hidden { opacity: 0; transition: opacity 0.4s; }

/* Dark mode */
html[data-mode="dark"] .vg-hs-card { background: #1A1A1A; }
html[data-mode="dark"] .vg-hs-card-title { color: #F0EAD6; }
html[data-mode="dark"] .vg-hs-card-body { color: #C9B895; }
html[data-mode="dark"] .vg-hs-action-bar { background: #1A1A1A; border-top-color: #2A2A2A; }
html[data-mode="dark"] .vg-hs-icon-btn { background: #222; border-color: #333; color: #E8D9B8; }
html[data-mode="dark"] .vg-hs-scroll-hint { color: rgba(255,255,255,0.5); }
/* Dot position indicators — right side */
.vg-hs-dots {
	position: fixed;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 5px;
	z-index: 20;
}
.vg-hs-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255,255,255,0.35);
	transition: background 0.2s, transform 0.2s;
}
.vg-hs-dot.is-active {
	background: #C0392B;
	transform: scale(1.5);
}

/* Loading indicator */
.vg-hs-loader {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	scroll-snap-align: start;
}
.vg-hs-loader-inner {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(255,255,255,0.15);
	border-top-color: #C0392B;
	border-radius: 50%;
	animation: vgHsSpin 0.8s linear infinite;
}
@keyframes vgHsSpin { to { transform: rotate(360deg); } }

/* End of feed message */
.vg-hs-end {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	scroll-snap-align: start;
	gap: 12px;
}
.vg-hs-end-icon {
	font-size: 32px;
	opacity: 0.4;
	color: rgba(255,255,255,0.4);
}
.vg-hs-end-text {
	font-family: var(--vg-font-body);
	font-size: 14px;
	color: rgba(255,255,255,0.4);
}

/* Desktop adjustments */
@media (min-width: 700px) {
	.vg-hs-card-title { font-size: 22px; }
	.vg-hs-card-body  { font-size: 16px; }
	.vg-hs-dots { right: 20px; }
}
/* ── Card Footer House Ad ──────────────────────────────────── */
.vg-hs-footer-ad {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	background: var(--vg-header-bg);
	border-radius: 0 0 12px 12px;
	flex-shrink: 0;
}

.vg-hs-footer-ad-pipe {
	display: block;
	width: 3px;
	min-width: 3px;
	height: 26px;
	background: rgba(255, 255, 255, 0.4);
	border-radius: 2px;
	flex-shrink: 0;
}

.vg-hs-footer-ad-text {
	font-family: 'Noto Sans Kannada', sans-serif;
	font-size: 12px;
	line-height: 1.45;
	color: #fff;
	flex: 1;
	transition: opacity 0.35s ease;
}

/* Fade state triggered by JS */
.vg-hs-footer-ad-text.vg-hs-ad-fade {
	opacity: 0;
}

.vg-hs-ad-email {
	color: #fde68a;
	text-decoration: none;
	font-weight: 600;
	word-break: break-all;
}
.vg-hs-ad-email:active {
	text-decoration: underline;
}

/* ── Fix 1: Varadigara logo left — match right logo height ── */
.vg-hs-logo-left img {
	height: 52px;          /* was 44px — bring more into image */
	max-width: 140px;
}
.vg-hs-logo-left-fallback {
	font-size: 15px;
	padding: 6px 10px;
}

/* ── Fix 2: Title clears the logo bar ───────────────────────── */
.vg-hs-card-content {
	padding: 44px 16px 8px;   /* was 18px top — 44px clears logo overhang */
}

/* ── Fix 3: Reactions — flex column, no absolute pct cutoff ── */
.vg-hs-react-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4px 3px 6px;
	min-width: 34px;
	font-size: 19px;
	border-radius: 8px;
}
.vg-hs-react-pct {
	position: static;           /* was absolute — caused clipping */
	transform: none;
	font-size: 9px;
	font-weight: 700;
	color: #999;
	margin-top: 2px;
	opacity: 0;
	transition: opacity 0.2s;
	white-space: nowrap;
	bottom: auto;
	left: auto;
}
.vg-hs-react-btn.is-reacted .vg-hs-react-pct {
	color: #C0392B;
}
.vg-hs-action-bar {
	padding: 8px 10px;
	gap: 4px;
}

/* ── Fix 4: Action icons — brand home btn, richer feel ──────── */
.vg-hs-icon-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid #E0E0E0;
	background: #F5F5F5;
	transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.vg-hs-icon-btn:active {
	transform: scale(0.88);
}
.vg-hs-home-btn {
	background: var(--vg-header-bg, #C0392B) !important;
	border-color: var(--vg-header-bg, #C0392B) !important;
	color: #fff !important;
}
.vg-hs-home-btn:hover {
	opacity: 0.88;
	color: #fff !important;
}

/* ── Fix 5: End screen lives inside .vg-hs-slot now ─────────── */
.vg-hs-slot--end {
	align-items: center;
	justify-content: center;
}
.vg-hs-end {
	height: auto;            /* slot handles full height */
	scroll-snap-align: unset;
}
.vg-hs-end-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--vg-header-bg, #C0392B);
	color: #fff;
	font-size: 24px;
	opacity: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vg-hs-end-text {
	font-size: 18px;
	font-weight: 700;
	color: rgba(255,255,255,0.85);
}
.vg-hs-end-sub {
	font-size: 13px;
	color: rgba(255,255,255,0.45);
	margin: -4px 0 0;
}
.vg-hs-end-home {
	margin-top: 12px;
	display: inline-block;
	padding: 10px 26px;
	background: var(--vg-header-bg, #C0392B);
	color: #fff;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

/* ── Fix 6: Scroll hint — visible on dark bg ────────────────── */
.vg-hs-scroll-hint {
	color: rgba(255,255,255,0.9);   /* was 0,0,0,0.4 — invisible on #0D0D0D */
	bottom: 80px;
}
.vg-hs-scroll-hint-chevron {
	font-size: 22px;
	text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.vg-hs-scroll-hint-text {
	background: rgba(0,0,0,0.45);
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 11px;
	color: #fff;
}
/* ── LOGO BAR: both logos parallel, same baseline ─────────── */
.vg-hs-logo-bar {
	align-items: flex-end;
	top: calc(32% - 36px);
}
.vg-hs-logo-left img,
.vg-hs-logo-left-fallback {
	height: 40px;
}
.vg-hs-logo-right img,
.vg-hs-logo-right-fallback {
	height: 40px;
}

/* ── TITLE: breathing room below logo bar ─────────────────── */
.vg-hs-card-content {
	padding-top: 52px;
}

/* ── SCROLL HINT: upward pointing arrow ───────────────────── */
.vg-hs-scroll-hint-chevron {
	font-size: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.vg-hs-scroll-hint-chevron::before {
	content: '';
	display: block;
	width: 11px;
	height: 11px;
	border-left: 2.5px solid #fff;
	border-top: 2.5px solid #fff;
	transform: rotate(45deg);
	margin-top: 5px;
}

/* ── FOOTER AD: bold, stylish, no pipe, no radius ─────────── */
.vg-hs-footer-ad {
	display: block;
	padding: 10px 16px 11px;
	background: #8B1A1A;
	border-radius: 0;
	gap: 0;
}
.vg-hs-footer-ad-pipe {
	display: none;
}
.vg-hs-footer-ad-label {
	display: block;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.5);
	margin-bottom: 4px;
}
.vg-hs-footer-ad-text {
	display: block;
	font-family: 'Anek Kannada', 'Noto Sans Kannada', sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	text-align: justify;
	flex: unset;
	/* Cross-fade instead of opacity-only — prevents overlap flash */
	transition: none;
}
.vg-hs-footer-ad-text.vg-hs-ad-fade {
	opacity: 0;
}
.vg-hs-ad-email {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	font-weight: 700;
	color: #FFD97D;
	text-decoration: none;
	letter-spacing: 0.2px;
}
.vg-hs-react-emoji {
	font-size: 20px;
	line-height: 1;
	display: block;
}
/* ── Action icons — colored circles ───────────────────────── */
.vg-hs-action-icons {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.vg-hs-icon-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	transition: transform 0.15s, opacity 0.15s;
	text-decoration: none;
	flex-shrink: 0;
}

.vg-hs-icon-btn:active {
	transform: scale(0.88);
	opacity: 0.85;
}

.vg-hs-home-btn {
	background: var(--vg-header-bg, #C0392B);
	color: #fff !important;
}

.vg-hs-img-share-btn {
	background: #E91E8C;
	color: #fff;
}

.vg-hs-native-share-btn {
	background: #E53935;
	color: #fff;
}

.vg-hs-copy-btn {
	background: #424242;
	color: #fff;
}

.vg-hs-copy-btn.is-copied {
	background: #27AE60;
	color: #fff;
}