/* TETProggram Fusion Lite — Public CSS */

:root {
	--tpfl-blue:    #1F3864;
	--tpfl-gold:    #C9A84C;
	--tpfl-white:   #ffffff;
	--tpfl-light:   #f3f4f6;
	--tpfl-border:  #e2e8f0;
	--tpfl-text:    #1a202c;
	--tpfl-muted:   #718096;
	--tpfl-error:   #e53e3e;
	--tpfl-radius:  10px;
	--tpfl-shadow:  0 1px 4px rgba(0,0,0,.08);
}

/* ── App wrapper ─────────────────────────────────────────────────────────── */
.tpfl-app {
	max-width: 680px;
	margin: 0 auto;
	padding: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--tpfl-text);
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */
.tpfl-avatar {
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

/* ── Compose box ─────────────────────────────────────────────────────────── */
.tpfl-compose {
	display: flex;
	gap: 12px;
	background: var(--tpfl-white);
	border: 1px solid var(--tpfl-border);
	border-radius: var(--tpfl-radius);
	padding: 14px;
	margin-bottom: 16px;
	box-shadow: var(--tpfl-shadow);
}
.tpfl-compose-fields { flex: 1; min-width: 0; }
.tpfl-compose-textarea {
	width: 100%;
	border: 1px solid var(--tpfl-border);
	border-radius: 8px;
	padding: 10px;
	resize: vertical;
	font-size: .95rem;
	font-family: inherit;
	outline: none;
	transition: border-color .2s;
	box-sizing: border-box;
}
.tpfl-compose-textarea:focus { border-color: var(--tpfl-blue); }
.tpfl-compose-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.tpfl-btn {
	padding: 7px 16px;
	border: 1px solid var(--tpfl-border);
	border-radius: 6px;
	background: var(--tpfl-white);
	cursor: pointer;
	font-size: .9rem;
	transition: background .2s, border-color .2s;
}
.tpfl-btn:hover { background: var(--tpfl-light); }
.tpfl-btn-primary {
	background: var(--tpfl-blue);
	color: var(--tpfl-white);
	border-color: var(--tpfl-blue);
}
.tpfl-btn-primary:hover { background: #16294e; border-color: #16294e; }
.tpfl-btn-icon {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.2rem;
	padding: 4px;
}
.tpfl-btn-text {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--tpfl-muted);
	font-size: .88rem;
	padding: 4px 8px;
}
.tpfl-btn-text:hover { color: var(--tpfl-blue); }
.tpfl-btn-delete { color: var(--tpfl-error); }

/* ── Color picker / select ───────────────────────────────────────────────── */
.tpfl-color-picker { width: 36px; height: 32px; border: none; padding: 0; cursor: pointer; border-radius: 4px; }
.tpfl-select {
	border: 1px solid var(--tpfl-border);
	border-radius: 6px;
	padding: 5px 8px;
	font-size: .9rem;
	background: var(--tpfl-white);
}

/* ── Upload preview ──────────────────────────────────────────────────────── */
.tpfl-upload-preview { margin-top: 8px; }
.tpfl-upload-preview img,
.tpfl-upload-preview video { max-width: 100%; border-radius: 8px; }

/* ── Error ───────────────────────────────────────────────────────────────── */
.tpfl-error { color: var(--tpfl-error); font-size: .875rem; margin-top: 6px; }

/* ── Feed ────────────────────────────────────────────────────────────────── */
.tpfl-feed { display: flex; flex-direction: column; gap: 14px; }
.tpfl-loading { text-align: center; color: var(--tpfl-muted); padding: 32px; }
.tpfl-no-posts { text-align: center; color: var(--tpfl-muted); padding: 48px 0; }

/* ── Post card ───────────────────────────────────────────────────────────── */
.tpfl-post {
	background: var(--tpfl-white);
	border: 1px solid var(--tpfl-border);
	border-radius: var(--tpfl-radius);
	box-shadow: var(--tpfl-shadow);
	overflow: hidden;
}
.tpfl-post-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
}
.tpfl-post-header > div { flex: 1; }
.tpfl-post-author { font-weight: 600; font-size: .95rem; display: block; }
.tpfl-post-time { font-size: .8rem; color: var(--tpfl-muted); }
.tpfl-post-body { padding: 0 14px 12px; }
.tpfl-post-content {
	margin: 0 0 8px;
	font-size: .95rem;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}
.tpfl-post-content.tpfl-post-bg {
	padding: 24px 16px;
	border-radius: 8px;
	font-size: 1.2rem;
	font-weight: 600;
	text-align: center;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.tpfl-post-media img,
.tpfl-post-media video { max-width: 100%; border-radius: 8px; }
.tpfl-post-footer {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	border-top: 1px solid var(--tpfl-border);
}
.tpfl-reactions { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.tpfl-reaction-btn {
	background: none;
	border: 1px solid transparent;
	border-radius: 20px;
	padding: 3px 8px;
	font-size: .85rem;
	cursor: pointer;
	transition: background .15s;
}
.tpfl-reaction-btn:hover,
.tpfl-reaction-btn.tpfl-active { background: var(--tpfl-light); border-color: var(--tpfl-border); }

/* ── Comments ────────────────────────────────────────────────────────────── */
.tpfl-comments {
	border-top: 1px solid var(--tpfl-border);
	padding: 12px 14px;
}
.tpfl-comment {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}
.tpfl-comment-body {
	background: var(--tpfl-light);
	border-radius: 12px;
	padding: 8px 12px;
	flex: 1;
}
.tpfl-comment-author { font-weight: 600; font-size: .85rem; }
.tpfl-comment-text { font-size: .9rem; margin: 2px 0 0; }
.tpfl-comment-compose {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}
.tpfl-comment-input {
	flex: 1;
	border: 1px solid var(--tpfl-border);
	border-radius: 20px;
	padding: 7px 14px;
	font-size: .9rem;
	outline: none;
}
.tpfl-comment-input:focus { border-color: var(--tpfl-blue); }

/* ── Load more ───────────────────────────────────────────────────────────── */
.tpfl-load-more-wrap { text-align: center; margin-top: 16px; }

/* ── Notice ──────────────────────────────────────────────────────────────── */
.tpfl-notice {
	background: var(--tpfl-light);
	border-left: 4px solid var(--tpfl-gold);
	border-radius: var(--tpfl-radius);
	padding: 16px 20px;
	font-size: .95rem;
}

/* ── WhatsApp share button ───────────────────────────────────────────────── */
.tpfl-btn-whatsapp {
	background: #25D366;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 5px 12px;
	font-size: .85rem;
	cursor: pointer;
}
