/* ==========================================================
   FCF Clubes & Ligas — Frontend v1.2.0
   ========================================================== */

/* Grid */
.fcf-grid {
	display: grid;
	gap: 20px;
	margin: 30px 0;
}
.fcf-grid-4 { grid-template-columns: repeat(4, 1fr); }
.fcf-grid-3 { grid-template-columns: repeat(3, 1fr); }
.fcf-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
	.fcf-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.fcf-grid-4,
	.fcf-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.fcf-grid-4,
	.fcf-grid-3,
	.fcf-grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================================
   Card
   ========================================================== */
.fcf-card {
	--fcf-radius: 3px;
	--fcf-green: #000;
	background: #fff;
	border-radius: var(--fcf-radius);
	border: 1px solid rgba(0,0,0,.06);
	padding: 1rem;
	cursor: pointer;
	box-shadow: 0 8px 8px rgba(0,0,0,.06);
	position: relative;
	transition: box-shadow .25s, transform .25s;
	outline: none;
	display: block;
	text-align: left;
}

.fcf-card:hover {
	box-shadow: 0 16px 32px rgba(0,0,0,.12);
	transform: translateY(-3px);
}

.fcf-card:focus-visible {
	outline: 2px solid var(--fcf-green);
	outline-offset: 2px;
}

.fcf-card-escudo {
	background: #fff;
	border-radius: 3px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	margin-bottom: 1rem;
}

.fcf-card-escudo img {
	max-width: 80px;
	max-height: 80px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Nome */
.fcf-card-nome {
	font-size: 21px;
	font-weight: 600;
	color: #222;
	margin: 0 0 4px;
	line-height: 1.3;
	transition: color .2s;
	text-align: center;
}

.fcf-card:hover .fcf-card-nome {
	color: var(--fcf-green);
}

/* Seta — canto inferior direito */
.fcf-card-arrow {
	position: absolute;
	bottom: 0;
	right: 0;
	background: var(--fcf-green);
	padding: 0.55rem 0.6rem;
	border-top-left-radius: var(--fcf-radius);
	border-bottom-right-radius: var(--fcf-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}

.fcf-card:hover .fcf-card-arrow {
	background: #111;
}

.fcf-card-arrow svg {
	transition: transform .2s;
	display: block;
}

.fcf-card:hover .fcf-card-arrow svg {
	transform: translateX(3px);
}

/* Liga sem imagem — card mais compacto */
.fcf-liga-card .fcf-card-escudo {
	min-height: 60px;
	padding: 12px;
}

/* ==========================================================
   Overlay & Modal
   ========================================================== */
.fcf-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.7);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .25s;
}
.fcf-overlay.fcf-ativo { opacity: 1; }
.fcf-overlay[hidden] { display: none !important; }

.fcf-modal {
	background: #fff;
	border-radius: 12px;
	max-width: 620px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px rgba(0,0,0,.3);
	transform: translateY(20px);
	transition: transform .25s;
}
.fcf-overlay.fcf-ativo .fcf-modal { transform: translateY(0); }

.fcf-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	z-index: 1;
	padding: 0 6px;
	transition: color .2s;
}
.fcf-modal-close:hover { color: #c00; }

.fcf-modal-content { padding: 30px; }

.fcf-modal-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 2px solid #eee;
}
.fcf-modal-escudo {
	width: 80px;
	height: 80px;
	object-fit: contain;
	flex-shrink: 0;
}
.fcf-modal-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: #000;
	margin: 0 0 4px;
	line-height: 1.2;
}
.fcf-modal-nome-completo {
	font-size: 13px;
	color: #888;
	margin: 0 0 5px;
}
.fcf-modal-categoria {
	display: inline-block;
	background: #f0f0f0;
	color: #444;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 20px;
}

.fcf-modal-body { display: flex; flex-direction: column; }

.fcf-modal-row {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
	line-height: 1.4;
}
.fcf-modal-row:last-child { border-bottom: none; }

.fcf-modal-label {
	min-width: 140px;
	font-weight: 700;
	color: #555;
	flex-shrink: 0;
}
.fcf-modal-value { color: #333; }
.fcf-modal-value a {
	color: #333;
	word-break: break-all;
	text-decoration: underline;
}
.fcf-modal-value a:hover { color: #1a6b1a; }

@media (max-width: 480px) {
	.fcf-modal-row { flex-direction: column; gap: 2px; }
	.fcf-modal-label { min-width: unset; }
	.fcf-modal-header { flex-direction: column; text-align: center; }
}

.fcf-sem-resultados { color: #777; font-style: italic; }
