/* Parmagito Credit — توقيع بارماجيتو (official kit v1.0) */
/* Parmagito Credit — self-contained, theme-proof. Doubled class selectors beat theme link/button rules without !important. */
@property --pgc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.pgc-strip { box-sizing: border-box; width: 100%; padding: 18px 16px; display: flex; justify-content: center; clear: both; position: relative; z-index: 1; }
.pgc-strip--dark { background: #0b1220; }
.pgc-strip--light { background: #f7f8fb; }
@media (max-width: 1023px) { .pgc-strip { padding-bottom: calc(18px + var(--pgc-mobile-offset, 0px) + env(safe-area-inset-bottom, 0px)); } }

.pgc-credit.pgc-credit {
	--pgc-gold: #f5b82e; --pgc-blue: #3b82f6; --pgc-wa: #25d366;
	--pgc-fg: #f8fafc; --pgc-sub: rgba(248, 250, 252, .78); --pgc-surface: rgba(255, 255, 255, .05); --pgc-pill: rgba(255, 255, 255, .09);
	box-sizing: border-box; position: relative; isolation: isolate;
	display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px;
	max-width: 100%; margin: 0; padding: 5px; border-radius: 22px; background: var(--pgc-surface);
	font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "IBM Plex Sans Arabic", sans-serif;
	font-size: 16px; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--pgc-fg);
}
.pgc-credit.pgc-credit *, .pgc-credit.pgc-credit *::before, .pgc-credit.pgc-credit *::after { box-sizing: border-box; }
.pgc-credit.pgc-credit::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
	background: conic-gradient(from var(--pgc-a), var(--pgc-gold), rgba(255, 255, 255, .08) 28%, rgba(255, 255, 255, .08) 72%, var(--pgc-gold));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	animation: pgc-spin 6s linear infinite;
}
.pgc-credit--light.pgc-credit--light { --pgc-fg: #0f172a; --pgc-sub: #475569; --pgc-surface: #fff; --pgc-pill: #f1f5f9; box-shadow: 0 6px 22px rgba(15, 23, 42, .07); }
.pgc-credit--light.pgc-credit--light::before { background: conic-gradient(from var(--pgc-a), var(--pgc-blue), rgba(15, 23, 42, .08) 30%, rgba(15, 23, 42, .08) 70%, var(--pgc-gold)); }

/* Main link: logo + names */
.pgc-credit.pgc-credit a { text-decoration: none; border: 0; box-shadow: none; background-image: none; outline-offset: 2px; }
.pgc-credit.pgc-credit a.pgc-main { display: inline-flex; align-items: center; gap: 10px; padding: 3px 12px 3px 6px; border-radius: 18px; color: var(--pgc-fg); }
.pgc-credit.pgc-credit[dir="rtl"] a.pgc-main { padding: 3px 6px 3px 12px; }
.pgc-credit.pgc-credit .pgc-logo { display: block; width: 36px; height: 36px; flex: 0 0 36px; max-width: none; min-width: 0; margin: 0; padding: 0; border: 0; background: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(245, 184, 46, .55); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.pgc-credit.pgc-credit .pgc-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; }
.pgc-credit.pgc-credit .pgc-by { font-size: 12px; font-weight: 500; color: var(--pgc-sub); white-space: nowrap; }
.pgc-credit.pgc-credit .pgc-name {
	font-size: 15px; font-weight: 800; white-space: nowrap; letter-spacing: .2px;
	background: linear-gradient(90deg, var(--pgc-gold), #fff3c4 45%, var(--pgc-gold) 60%, var(--pgc-gold)); background-size: 220% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent; animation: pgc-shine 4.5s ease-in-out infinite;
}
.pgc-credit--light.pgc-credit--light .pgc-name { background-image: linear-gradient(90deg, #1d4ed8, #b45309 45%, #1d4ed8 60%, #1d4ed8); }

/* Pills: website + WhatsApp, always written out */
.pgc-credit.pgc-credit .pgc-pills { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pgc-credit.pgc-credit a.pgc-pill {
	display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
	background: var(--pgc-pill); color: var(--pgc-fg); font-size: 13px; font-weight: 650; white-space: nowrap;
	transition: background-color .18s, color .18s, transform .26s cubic-bezier(.34, 1.56, .64, 1);
}
.pgc-credit.pgc-credit .pgc-ico { display: block; width: 16px; height: 16px; flex: 0 0 16px; }
.pgc-credit.pgc-credit a.pgc-pill--wa .pgc-ico { color: var(--pgc-wa); }
.pgc-credit--light.pgc-credit--light a.pgc-pill--web .pgc-ico { color: #1d4ed8; }
.pgc-credit--light.pgc-credit--light a.pgc-pill--wa .pgc-ico { color: #128c4a; }
@media (hover: hover) {
	.pgc-credit.pgc-credit a.pgc-main:hover .pgc-logo { transform: rotate(-10deg) scale(1.06); }
	.pgc-credit.pgc-credit a.pgc-pill--web:hover { background: var(--pgc-gold); color: #111827; transform: translateY(-2px); }
	.pgc-credit.pgc-credit a.pgc-pill--wa:hover { background: var(--pgc-wa); color: #052e16; transform: translateY(-2px); }
	.pgc-credit.pgc-credit a.pgc-pill--wa:hover .pgc-ico, .pgc-credit.pgc-credit a.pgc-pill--web:hover .pgc-ico { color: currentColor; }
}
.pgc-credit.pgc-credit a:focus-visible { outline: 2px solid var(--pgc-gold); }

/* Alignment for the shortcode */
.pgc-credit.pgc-align-start { margin-inline-end: auto; }
.pgc-credit.pgc-align-end { margin-inline-start: auto; }

/* Phones: a centred card, pills on their own row — fits 320px */
@media (max-width: 560px) {
	.pgc-credit.pgc-credit { width: min(100%, 360px); }
	.pgc-credit.pgc-credit a.pgc-main { width: 100%; justify-content: center; }
	.pgc-credit.pgc-credit .pgc-name { font-size: 14px; }
}
@media (max-width: 340px) { .pgc-credit.pgc-credit a.pgc-pill { padding: 0 10px; font-size: 12px; } .pgc-credit.pgc-credit .pgc-by { font-size: 11px; } }

@keyframes pgc-spin { to { --pgc-a: 360deg; } }
@keyframes pgc-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .pgc-credit.pgc-credit::before, .pgc-credit.pgc-credit .pgc-name { animation: none; } .pgc-credit.pgc-credit * { transition: none; } }
@media print { .pgc-strip { display: none; } }
