/* @override 
	http://shescores.co.uk/media/templates/site/cassiopeia/css/fwf_team_page.css */
	
/* =================================================================
   fwf_team_page.css — SheScores Team / League / Directory styles
   Loaded by mod_team_page via $app->getDocument()->addStyleSheet()
   ================================================================= */

/* CSS variables — mirrors user.css tokens */

:root {
	--fwf-charcoal: #2F3336;
	--fwf-grey-light: #F4F4F4;
	--fwf-white: #FFFFFF;
	--fwf-gold: #D4AF37;
	--fwf-text-disabled: #A1A4A6;
	--fwf-bg-section: #757575;

    /* ── League hero watermark — tweak these to taste ── */
	--hero-watermark-opacity: .1;     /* overall transparency — lower = more subtle */
	--hero-watermark-rotate: -6deg;  /* angle of the grid */
	--hero-watermark-size: 70px;    /* badge size */
	--hero-watermark-gap: 15px;    /* gap between badges */
	--hero-watermark-brightness: 1;      /* 10 = white, 1 = original, 0 = black/silhouette */
	--hero-watermark-blur: 1px;     /* 0 = sharp, 2px = soft edges */
	--hero-watermark-saturate: 0;       /* 0 = greyscale, 1 = full colour */
	--hero-watermark-contrast: 1;       /* 1 = normal, 2 = high contrast, 0.5 = washed out */
	--hero-watermark-hue: 0deg;    /* rotates hues — 180deg = inverted colours */
	--hero-watermark-sepia: 0;       /* 0 = none, 1 = full sepia/brown tone */
	--hero-watermark-invert: 0;       /* 0 = normal, 1 = fully inverted */
}

/* =============================================
   TEAM DIRECTORY
   ============================================= */

#fwf-team-directory {
	font-family: Arial, sans-serif;
	padding: 0 0 40px;
	background: var(--fwf-grey-light);
}

.fwf-dir-header {
	background: linear-gradient(135deg,#1a1a2e 0%,#2d2d4e 100%);
	color: #fff;
	padding: 32px 40px;
	margin-bottom: 0;
	border-radius: 10px 10px 0 0;
	box-sizing: border-box;
}

.fwf-dir-header h1 {
	font-size: 1.8rem;
	font-weight: 800;
	margin: 0 0 4px;
	color: #fff;
}

.fwf-dir-header p {
	font-size: 0.88rem;
	color: rgba(255,255,255,0.6);
	margin: 0;
}

.fwf-dir-filter-bar {
	background: var(--fwf-bg-section);
	border-radius: 0 0 10px 10px;
	padding: 12px 16px;
	margin-bottom: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	box-sizing: border-box;
	width: 100%;
}

.fwf-dir-select-wrap {
	display: flex;
	flex-direction: column;
	margin-right: 12px;
	margin-bottom: 4px;
}

.fwf-dir-select-label {
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.7);
	margin-bottom: 4px;
}

.fwf-dir-select {
	padding: 7px 32px 7px 12px;
	font-size: 0.82rem;
	font-weight: 600;
	border: 1px solid rgba(255,255,255,0.5);
	border-radius: 20px;
	background: rgba(255,255,255,0.15);
	color: #fff;
	cursor: pointer;
	font-family: Arial, sans-serif;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	min-width: 140px;
	max-width: 100%;
}

.fwf-dir-select:focus {
	outline: none;
	border-color: #fff;
}

.fwf-dir-select option {
	background: #1a1a2e;
	color: #fff;
	font-weight: 600;
}

.fwf-dir-search {
	margin-bottom: 16px;
}

.fwf-dir-search input {
	width: 100%;
	padding: 10px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 20px;
	font-size: 0.9rem;
	font-family: Arial, sans-serif;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.fwf-dir-search input:focus {
	outline: none;
	border-color: #1a1a2e;
}

.fwf-dir-letter {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	background: var(--fwf-bg-section);
	padding: 4px 12px;
	border-radius: 4px;
	display: inline-block;
	margin: 16px 0 10px 10px;
}

.fwf-dir-grid-outer {
	margin-bottom: 4px;
}

.fwf-dir-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	grid-gap: 10px;
	width: 100%;
	max-width: 1400px;
	box-sizing: border-box;
}

.fwf-dir-card {
	display: flex;
	align-items: center;
	padding: 10px 14px;
	border: 1px solid #eee;
	border-radius: 6px;
	text-decoration: none !important;
	color: #1a1a2e !important;
	font-size: 0.85rem;
	font-weight: 600;
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
	background: var(--fwf-white);
	box-sizing: border-box;
	width: 100%;
}

.fwf-dir-card:hover {
	background: #f7f7f2;
	border-color: #f0a500;
	transform: translateY(-1px);
}

.fwf-dir-badge {
	width: 32px;
	height: 32px;
	object-fit: contain;
	flex-shrink: 0;
	margin-right: 10px;
	margin-top: 2px;
}

.fwf-dir-team-info {
	min-width: 0;
}

.fwf-dir-team-name {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fwf-dir-team-div {
	display: block;
	font-size: 0.72rem;
	font-weight: 400;
	color: #888;
}

.fwf-dir-empty {
	color: #aaa;
	font-style: italic;
	font-size: 0.88rem;
	padding: 12px 0;
}

.fwf-dir-section {
	padding: 0;
}

/* =============================================
   LEAGUE PAGE
   ============================================= */

#fwf-league-page {
	font-family: Arial, sans-serif;
	width: 100%;
	padding: 0 0 40px;
	color: #333;
	background: var(--fwf-grey-light);
}

.fwf-lp-hero {
	background: var(--fwf-charcoal);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 38px;
	padding: 40px;
	color: #fff;
	position: relative;
}

.fwf-lp-hero-content {
	position: relative;
	z-index: 1;
}

.fwf-lp-hero-watermark {
	position: absolute;
	top: -60px;
	left: -060px;
	right: -200px;
	bottom: -200px;
	transform: rotate(var(--hero-watermark-rotate));
	opacity: var(--hero-watermark-opacity);
	pointer-events: none;
	z-index: 0;
}

.fwf-lp-hero-watermark img {
	filter: brightness(var(--hero-watermark-brightness))
    blur(var(--hero-watermark-blur))
    saturate(var(--hero-watermark-saturate))
    contrast(var(--hero-watermark-contrast))
    hue-rotate(var(--hero-watermark-hue))
    sepia(var(--hero-watermark-sepia))
    invert(var(--hero-watermark-invert));
}

.fwf-lp-hero h1 {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 8px;
	color: #fff;
}

.fwf-lp-hero-sub {
	font-size: 0.9rem;
	color: rgba(255,255,255,0.65);
	margin: 0 0 20px;
}

.fwf-lp-team-mini {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	background: rgba(255,255,255,0.1);
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none !important;
	color: var(--fwf-white) !important;
	transition: background 0.15s;
}



.fwf-lp-team-mini:hover {
	background: rgba(240,165,0,0.3);
	color: #f0a500 !important;
}

.fwf-lp-team-mini img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.fwf-lp-hero-teams {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fwf-lp-tgrid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	padding: 20px 28px 24px;
}

.fwf-lp-tcard {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 12px;
	border: 1.5px solid #eee;
	border-radius: 8px;
	text-decoration: none !important;
	color: #1a1a2e !important;
	background: var(--fwf-white);
	transition: all 0.15s;
	text-align: center;
}

.fwf-lp-tcard:hover {
	border-color: #7c3aed;
	background: #faf8ff;
	transform: translateY(-2px);
}

.fwf-lp-tcard img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.fwf-lp-tcard span {
	font-size: 0.82rem;
	font-weight: 700;
}

div.fwf-news-controls {
	border-radius: 0 0 10px 10px;
	padding: 10px 16px 10px 10px;
	margin-bottom: 10px;
}


.fwf-news-wrap {
	padding: 12px 12px 16px;
	font-family: Arial, sans-serif;
}

.fwf-table-toggle-bar {
	display: flex;
	flex-wrap: wrap;
	padding: 10px 16px;
	background: #757575;
	border-bottom: none;
}

/* =============================================
   TEAM PAGE — HERO
   ============================================= */

#fwf-team-page {
	font-family: Arial, sans-serif;
	width: 100%;
	padding: 0 0 40px;
	color: #333;
	background: #eeeeee;
}

.fwf-hero-wiki-wrap {
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
}

.fwf-team-hero {
	color: var(--fwf-white);
	padding: 32px 40px;
	position: relative;
	overflow: hidden;
}

.fwf-team-hero-watermark {
	position: absolute;
	width: 100%;
	height: auto;
	opacity: 0.08;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 0;
}

.fwf-team-hero-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 40px;
}

.fwf-team-badge {
	width: 200px;
	height: 200px;
	object-fit: contain;
	flex-shrink: 0;
	border-radius: 12px;
	padding: 12px;
	filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.fwf-team-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
}

.fwf-team-info h1 {
	font-size: 1.8rem;
	font-weight: 800;
	margin: 0 0 14px;
	color: var(--fwf-white);
}

.fwf-hero-lozenge-outer {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	background: var(--fwf-charcoal);
	border-radius: 10px;
	padding: 4px 4px 10px;
	margin-bottom: 16px;
}

.fwf-hero-lozenge-inner {
	background: var(--fwf-grey-light);
	color: var(--fwf-charcoal);
	border-radius: 8px;
	padding: 4px 14px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	white-space: nowrap;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.fwf-hero-lozenge-pos {
	color: var(--fwf-text-disabled);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 10px 15px 0;
}

.fwf-team-meta {
	display: none !important;
}

.fwf-team-division {
	display: none;
}

.fwf-team-mobile-league {
	display: none;
}

/* =============================================
   TEAM PAGE — SOCIAL LINKS
   ============================================= */

.fwf-social-links {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
}

.fwf-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: 6px;
	border-radius: 50%;
	background: none;
	text-decoration: none !important;
	color: var(--fwf-white) !important;
	transition: opacity 0.15s, transform 0.15s;
	flex-shrink: 0;
}

.fwf-social-link:hover {
	opacity: 0.75;
	transform: translateY(-2px);
}

.fwf-social-link svg {
	width: 26px;
	height: 26px;
	fill: var(--fwf-white);
	flex-shrink: 0;
}

.fwf-social-link-text {
	display: none;
}

.fwf-social-official, .fwf-social-twitter, .fwf-social-facebook, .fwf-social-instagram, .fwf-social-youtube, .fwf-social-bluesky, .fwf-social-tiktok, .fwf-social-snapchat {
	background: none !important;
}

.fwf-social-snapchat svg {
	fill: transparent !important;
	stroke: #ffffff;
}

/* =============================================
   TEAM PAGE — WIKI STRIP
   ============================================= */

.fwf-wiki-strip {
	background: var(--fwf-white);
	padding: 22px 40px 26px;
}

.fwf-wiki-content {
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--fwf-charcoal);
}

.fwf-wiki-content p {
	margin-bottom: 12px;
}

.fwf-wiki-link {
	display: inline-block;
	margin-top: 8px;
	color: var(--fwf-gold);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.fwf-wiki-link:hover {
	text-decoration: underline;
}

.fwf-wiki-error {
	color: #888;
	font-size: 0.9rem;
	font-style: italic;
}

/* =============================================
   MOBILE BREAKPOINTS
   ============================================= */

@media (max-width: 860px) {
	.fwf-team-hero {
		padding: 32px 24px 28px;
		text-align: center;
	}
	
	.fwf-team-hero-content {
		flex-direction: column;
		align-items: center;
		gap: 0;
	}
	
	.fwf-team-badge {
		width: 176px;
		height: 176px;
		margin-bottom: 10px;
		padding-top: 0;
	}
	
	.fwf-team-info {
		width: 100%;
		text-align: center;
	}
	
	.fwf-team-division {
		display: none;
	}
	
	.fwf-team-mobile-league {
		display: block;
		font-size: 0.85rem;
		color: rgba(255,255,255,0.7);
		margin-bottom: 10px;
	}
	
	.fwf-team-meta {
		display: none !important;
	}
	
	.fwf-social-links {
		justify-content: center;
		flex-wrap: nowrap;
		margin-top: 6px;
	}
	
	.fwf-social-link {
		width: 44px;
		height: 44px;
		margin-right: 4px;
		flex-shrink: 0;
	}
	
	.fwf-social-link svg {
		width: 26px;
		height: 26px;
	}
	
	.fwf-social-link-text {
		display: none;
	}
	
	.fwf-lp-hero {
		padding: 28px 24px;
	}
}

@media (max-width: 600px) {
	.fwf-team-hero {
		padding: 24px 16px 20px;
	}
	
	.fwf-team-badge {
		width: 140px;
		height: 140px;
		margin-bottom: 16px;
	}
	
	.fwf-team-info h1 {
		font-size: 1.4rem;
		margin-bottom: 6px;
	}
	
	.fwf-wiki-strip {
		padding: 14px 16px 18px;
	}
	
	.fwf-lp-hero {
		padding: 24px 20px;
	}
	
	.fwf-lp-tgrid {
		padding: 16px 12px;
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 400px) {
	.fwf-lp-tgrid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.fwf-dir-header {
		padding: 20px 16px;
	}
	
	.fwf-dir-header h1 {
		font-size: 1.4rem;
	}
	
	.fwf-dir-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
	
	.fwf-dir-select {
		min-width: 120px;
	}
	
	.fwf-dir-select-wrap {
		margin-right: 8px;
	}
}
@media (max-width: 700px) {
	.fwf-dir-grid {
		grid-template-columns: 1fr;
		grid-gap: 8px;
	}
}
@media (max-width: 480px) {
	.fwf-dir-header {
		padding: 16px 14px;
	}
	
	.fwf-dir-card {
		font-size: 0.8rem;
		padding: 8px 10px;
	}
	
	.fwf-dir-badge {
		width: 26px;
		height: 26px;
		margin-right: 7px;
	}
	
	.fwf-dir-select-wrap {
		width: 100%;
		margin-right: 0;
		margin-bottom: 8px;
	}
	
	.fwf-dir-select {
		min-width: 100%;
		box-sizing: border-box;
	}
	
	.fwf-dir-filter-bar {
		gap: 0;
	}
}
