/* Employee Business Cards — public styles */

:root {
	--ebc-text: #0f172a;
	--ebc-muted: #6b7280;
	--ebc-card-bg: #ffffff;
	--ebc-orange: #F05C28;
	--ebc-navy: #1A2B4C;
}

/* Clean page wrapper */
body.ebc-clean-page {
	margin: 0; padding: 0;
	background-color: #f3f4f6;
	color: var(--ebc-text);
	font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}
body.ebc-clean-page .ebc-clean-main {
	display: flex; justify-content: center; align-items: flex-start;
	padding: 40px 16px; min-height: 100vh; box-sizing: border-box;
}

/* Card wrapper */
.ebc-card-wrap {
	max-width: 420px;
	width: 100%; margin: 32px auto; padding: 0 16px;
	box-sizing: border-box;
	font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.ebc-clean-page .ebc-card-wrap { margin: 0 auto; }

.ebc-card {
	background: var(--ebc-card-bg);
	border-radius: 24px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	position: relative;
	overflow: hidden;
    direction: rtl;
}

/* Inline SVG icons inherit current text color and scale with parent font-size */
.ebc-card .ebc-icon {
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	display: inline-block;
	fill: currentcolor;
	flex-shrink: 0;
}
/* Brand icons (linkedin / twitter / instagram) ship as <img>; size them
   to match the surrounding font and keep their bundled brand colors. */
.ebc-card .ebc-social-icon .ebc-icon {
	width: 1.25em;
	height: 1.25em;
}
.ebc-card .ebc-btn-row .icon .ebc-icon,
.ebc-card .ebc-btn-grid .icon .ebc-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* Version 1 Styles */
.ebc-card.v1 .ebc-header {
	background-color: var(--ebc-orange);
	height: 128px;
	position: relative;
}
.ebc-card.v1 .ebc-avatar-wrap {
	position: absolute;
	bottom: -56px; left: 0; right: 0;
	width: 120px; height: 120px;
	margin: 0 auto; border-radius: 50%;
	border: 4px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow: hidden;
}
.ebc-card.v1 .ebc-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ebc-card.v1 .ebc-content { padding: 72px 24px 32px; text-align: center; }
.ebc-card.v1 .ebc-name { font-size: 1.5rem; font-weight: 700; color: var(--ebc-navy); margin: 0 0 4px; }
.ebc-card.v1 .ebc-job { font-weight: 500; color: var(--ebc-muted); margin: 0 0 8px; font-size: 1rem; }
.ebc-card.v1 .ebc-meta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--ebc-orange); margin-bottom: 24px; }
.ebc-card.v1 .ebc-meta .dot { width: 6px; height: 6px; border-radius: 50%; background-color: var(--ebc-orange); }
.ebc-card.v1 .ebc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.ebc-card.v1 .ebc-btn-outline {
	border: 2px solid var(--ebc-orange); color: var(--ebc-orange); border-radius: 12px; padding: 10px;
	display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; text-decoration: none; transition: all 0.3s;
}
.ebc-card.v1 .ebc-btn-outline:hover { background-color: var(--ebc-orange); color: #fff; }
.ebc-card.v1 .ebc-location-bio { margin-bottom: 24px; }
.ebc-card.v1 .ebc-location { color: var(--ebc-navy); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.ebc-card.v1 .ebc-bio { color: #6b7280; font-size: 0.875rem; line-height: 1.6; }
.ebc-card.v1 .ebc-primary-btn { background-color: var(--ebc-orange); color: #fff; border-radius: 12px; padding: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; width: 100%; border: none; cursor: pointer; transition: opacity 0.3s; margin-bottom: 12px; box-sizing: border-box; }
.ebc-card.v1 .ebc-primary-btn:hover { opacity: 0.9; }
.ebc-card.v1 .ebc-secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.ebc-card.v1 .ebc-btn-secondary { background-color: var(--ebc-navy); color: #fff; border-radius: 12px; padding: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.875rem; border: none; cursor: pointer; transition: opacity 0.3s; }
.ebc-card.v1 .ebc-btn-secondary:hover { opacity: 0.9; }
.ebc-card.v1 .ebc-btn-tertiary { background-color: #f3f4f6; color: #374151; border-radius: 12px; padding: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.875rem; border: none; cursor: pointer; transition: background 0.3s; }
.ebc-card.v1 .ebc-btn-tertiary:hover { background-color: #e5e7eb; }
.ebc-card.v1 .ebc-socials { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ebc-card.v1 .ebc-social-icon { width: 40px; height: 40px; border-radius: 50%; background-color: #f3f4f6; color: #4b5563; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; text-decoration: none; transition: all 0.3s; }
.ebc-card.v1 .ebc-social-icon:hover { background-color: #fff7ed; color: var(--ebc-orange); }

/* Version 2 Styles */
.ebc-card.v2 .ebc-header { padding: 40px 24px 24px; text-align: center; border-bottom: 1px solid #f3f4f6; }
.ebc-card.v2 .ebc-avatar-wrap { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow: hidden; }
.ebc-card.v2 .ebc-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ebc-card.v2 .ebc-name { font-size: 1.5rem; font-weight: 700; color: var(--ebc-navy); margin: 0 0 4px; }
.ebc-card.v2 .ebc-job { font-size: 0.875rem; color: var(--ebc-muted); margin: 0 0 12px; }
.ebc-card.v2 .ebc-meta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 16px; border-radius: 99px; background-color: #eff6ff; font-size: 0.875rem; font-weight: 700; color: var(--ebc-navy); }
.ebc-card.v2 .ebc-meta .dot { width: 4px; height: 4px; border-radius: 50%; background-color: #9ca3af; }
.ebc-card.v2 .ebc-content { padding: 24px; text-align: center; }
.ebc-card.v2 .ebc-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.ebc-card.v2 .ebc-btn-row { background-color: #f9fafb; border-radius: 12px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: #374151; text-decoration: none; transition: background 0.3s; }
.ebc-card.v2 .ebc-btn-row:hover { background-color: #f3f4f6; }
.ebc-card.v2 .ebc-btn-row .left { display: flex; align-items: center; gap: 12px; }
.ebc-card.v2 .ebc-btn-row .icon { font-size: 1.25rem; color: var(--ebc-navy); }
.ebc-card.v2 .ebc-btn-row .icon.whatsapp { color: #22c55e; }
.ebc-card.v2 .ebc-btn-row .arrow { color: #9ca3af; font-size: 0.875rem; }
.ebc-card.v2 .ebc-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ebc-card.v2 .ebc-btn-grid { background-color: #f9fafb; border-radius: 12px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 0.875rem; color: #374151; text-decoration: none; transition: background 0.3s; }
.ebc-card.v2 .ebc-btn-grid:hover { background-color: #f3f4f6; }
.ebc-card.v2 .ebc-btn-grid .icon { color: var(--ebc-navy); }
.ebc-card.v2 .ebc-location-bio { background-color: #f9fafb; border-radius: 12px; padding: 16px; text-align: right; margin-bottom: 24px; }
.ebc-card.v2 .ebc-location { color: var(--ebc-navy); font-weight: 700; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.ebc-card.v2 .ebc-bio { color: var(--ebc-muted); font-size: 0.875rem; line-height: 1.6; border-top: 1px solid #e5e7eb; padding-top: 8px; margin: 8px 0 0; }
.ebc-card.v2 .ebc-primary-btn { background-color: var(--ebc-orange); color: #fff; border-radius: 12px; padding: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; width: 100%; border: none; cursor: pointer; transition: opacity 0.3s; margin-bottom: 8px; box-sizing: border-box; }
.ebc-card.v2 .ebc-primary-btn:hover { opacity: 0.9; }
.ebc-card.v2 .ebc-secondary-actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 24px; }
.ebc-card.v2 .ebc-btn-text { color: var(--ebc-muted); font-weight: 600; display: flex; align-items: center; gap: 6px; font-size: 0.875rem; border: none; background: none; cursor: pointer; transition: color 0.3s; padding: 0; }
.ebc-card.v2 .ebc-btn-text:hover { color: var(--ebc-navy); }
.ebc-card.v2 .separator { color: #d1d5db; }
.ebc-card.v2 .ebc-socials { display: flex; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid #f3f4f6; padding-top: 24px; }
.ebc-card.v2 .ebc-social-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e5e7eb; color: #4b5563; display: flex; align-items: center; justify-content: center; font-size: 1.125rem; text-decoration: none; transition: all 0.3s; }
.ebc-card.v2 .ebc-social-icon:hover { border-color: var(--ebc-navy); color: var(--ebc-navy); }

/* QR section shared */
.ebc-qr-container { margin-bottom: 24px; padding: 16px; background: #f9fafb; border-radius: 12px; border: 1px solid #e5e7eb; }
.ebc-qr-container[hidden] { display: none; }
.ebc-qr-container p { margin: 0 0 12px; font-size: 0.875rem; color: var(--ebc-muted); }
.ebc-qr-container img { max-width: 180px; height: auto; display: block; margin: 0 auto; border-radius: 8px; }

/* Grid (directory) */
.ebc-card-grid{display:grid;gap:16px;margin:24px 0;}
.ebc-card-grid.columns-1{grid-template-columns:1fr;}
.ebc-card-grid.columns-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.ebc-card-grid.columns-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.ebc-card-grid.columns-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.ebc-grid-item{
	border:1px solid var(--ebc-card-border); border-radius:18px; padding:18px;
	background:#fff; text-align:center; box-shadow:0 4px 14px rgba(15,23,42,.05);
}
.ebc-grid-photo img{
	width:84px;height:84px; object-fit:cover; border-radius:50%; margin-bottom:10px;
}
.ebc-grid-item h3{margin:6px 0 4px;font-size:1.05rem;}
.ebc-grid-job,.ebc-grid-company{margin:3px 0;color:var(--ebc-muted);font-size:.88rem;}
@media (max-width:900px){ .ebc-card-grid.columns-3,.ebc-card-grid.columns-4{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:640px){ .ebc-card-grid.columns-2,.ebc-card-grid.columns-3,.ebc-card-grid.columns-4{grid-template-columns:1fr;} }
