/**
 * Stiluri frontend Tennis Platform.
 */

.tnp-wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 16px;
	color: #1f2733;
}

.tnp-wrap h1,
.tnp-wrap h2,
.tnp-wrap h3 {
	color: #12263a;
}

/* Butoane */
.tnp-btn {
	display: inline-block;
	background: #1f6feb;
	color: #fff;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	font-size: 14px;
}

.tnp-btn:hover {
	background: #1a5fd0;
	color: #fff;
}

.tnp-btn-primary {
	background: #1f8b4c;
}

.tnp-btn-primary:hover {
	background: #17703c;
}

.tnp-btn-secondary {
	background: #e8eef6;
	color: #12263a;
	border: 1px solid #c9d7e8;
}

.tnp-btn-secondary:hover {
	background: #dae6f3;
	color: #12263a;
}

.tnp-btn-small {
	padding: 4px 10px;
	font-size: 12px;
	background: #6b7280;
}

.tnp-match-result-form {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	min-width: 260px;
}

.tnp-match-result-form select,
.tnp-match-result-form input {
	max-width: 140px;
	padding: 5px 7px;
	border: 1px solid #c9d7e8;
	border-radius: 4px;
}

/* Filtre */
.tnp-filters {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 16px 0;
}

.tnp-filters input,
.tnp-filters select {
	padding: 8px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
}

/* Grile de carduri */
.tnp-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.tnp-type-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tnp-event-links {
	margin: 0;
	padding-left: 18px;
}

.tnp-event-links li {
	margin-bottom: 8px;
}

.tnp-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border: 1px solid #e5e9ef;
	border-radius: 10px;
	padding: 16px;
	text-decoration: none;
	color: #1f2733;
	transition: box-shadow .15s ease, transform .15s ease;
}

.tnp-card:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}

.tnp-avatar,
.tnp-club-logo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 8px;
	background: #f0f2f5;
}

.tnp-player-name,
.tnp-club-name,
.tnp-event-name {
	font-weight: 600;
	margin-bottom: 4px;
}

.tnp-player-city,
.tnp-club-city,
.tnp-event-meta {
	font-size: 13px;
	color: #6b7280;
}

.tnp-player-rating {
	margin-top: 6px;
	font-size: 13px;
}

/* Profil */
.tnp-profile-header {
	display: flex;
	gap: 20px;
	align-items: center;
	background: linear-gradient(135deg, #12263a, #1f6feb);
	color: #fff;
	padding: 24px;
	border-radius: 12px;
	margin-bottom: 20px;
}

.tnp-profile-header h1 {
	color: #fff;
	margin: 0 0 6px;
}

.tnp-profile-photo,
.tnp-club-logo-big {
	width: 110px;
	height: 110px;
	border-radius: 12px;
	object-fit: cover;
	border: 3px solid rgba(255, 255, 255, .5);
	background: #fff;
}

.tnp-profile-meta {
	opacity: .9;
	margin: 0 0 10px;
}

.tnp-badge {
	display: inline-block;
	background: rgba(255, 255, 255, .2);
	color: #fff;
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 13px;
	margin-right: 6px;
}

.tnp-badge-rating {
	background: #f0b429;
	color: #3a2c00;
	font-weight: 700;
}

/* Statistici */
.tnp-stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 12px;
	margin: 20px 0;
}

.tnp-stat-box {
	background: #fff;
	border: 1px solid #e5e9ef;
	border-radius: 10px;
	padding: 16px;
	text-align: center;
}

.tnp-stat-value {
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: #1f6feb;
}

.tnp-stat-label {
	display: block;
	font-size: 12px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* Secțiuni */
.tnp-section {
	background: #fff;
	border: 1px solid #e5e9ef;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 16px;
}

.tnp-section h3 {
	margin-top: 0;
}

.tnp-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
}

.tnp-section-head h3 {
	margin: 0;
}

.tnp-section-head p {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
}

/* Tabele */
.tnp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tnp-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid #eef1f5;
	border-radius: 10px;
	background: #fff;
}

.tnp-table th,
.tnp-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eef1f5;
	text-align: left;
}

.tnp-table thead th {
	background: #f6f8fa;
	font-weight: 600;
}

.tnp-table a {
	color: #1f6feb;
	text-decoration: none;
}

.tnp-rank-pos {
	font-weight: 700;
	color: #12263a;
}

/* Rezultate */
.tnp-result,
.tnp-diff {
	font-weight: 600;
}

.tnp-win {
	color: #1f8b4c;
}

.tnp-loss {
	color: #d1242f;
}

/* Statusuri eveniment */
.tnp-status-public {
	background: #1f8b4c;
	color: #fff;
}

.tnp-status-in_progress {
	background: #f0b429;
	color: #3a2c00;
}

.tnp-status-finished {
	background: #6b7280;
	color: #fff;
}

/* Notificări */
.tnp-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.tnp-notice-success {
	background: #e6f4ea;
	color: #1f8b4c;
	border: 1px solid #a3d9b1;
}

.tnp-notice-warning {
	background: #fff4e5;
	color: #b26a00;
	border: 1px solid #f0c485;
}

/* Formulare */
.tnp-form input[type="text"],
.tnp-form input[type="email"],
.tnp-form input[type="date"],
.tnp-form input[type="url"],
.tnp-form input[type="number"],
.tnp-form select {
	width: 100%;
	max-width: none;
	padding: 8px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
}

.tnp-form textarea {
	width: 100%;
	min-height: 110px;
	padding: 10px 12px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	resize: vertical;
}

.tnp-form input[type="file"] {
	width: 100%;
	max-width: 360px;
}

.tnp-form label {
	display: block;
	font-weight: 600;
	color: #12263a;
}

.tnp-form label input,
.tnp-form label select {
	margin-top: 6px;
	font-weight: 400;
}

.tnp-form-card {
	box-shadow: 0 16px 36px rgba(18, 38, 58, .06);
	border-color: #dde5ef;
}

.tnp-profile-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.tnp-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.tnp-field {
	margin: 0;
}

.tnp-field-full {
	grid-column: 1 / -1;
}

.tnp-field-label {
	display: block;
	font-weight: 600;
	color: #12263a;
	margin-bottom: 8px;
}

.tnp-required {
	color: #d1242f;
	margin-left: 4px;
}

.tnp-profile-photo-field {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 16px;
	background: linear-gradient(180deg, #f7fafd, #eef4fb);
	border: 1px solid #dbe6f3;
	border-radius: 12px;
}

.tnp-profile-photo-preview {
	width: 104px;
	height: 104px;
	object-fit: cover;
	border-radius: 18px;
	background: #fff;
	border: 1px solid #d0d7de;
	padding: 4px;
}

.tnp-custom-fields-block {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.tnp-checkbox-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-weight: 500;
}

.tnp-visibility {
	margin: 0;
	padding: 18px;
	border: 1px solid #dbe2ea;
	border-radius: 12px;
	background: #fbfcfe;
}

.tnp-visibility legend {
	padding: 0 8px;
	font-weight: 700;
	color: #12263a;
}

.tnp-visibility-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin-top: 10px;
}

.tnp-visibility-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: #1f2733;
	padding: 6px 0;
}

.tnp-visibility-option input {
	margin: 0;
	width: 16px;
	height: 16px;
}

.tnp-form-actions {
	margin: 0;
	display: flex;
	justify-content: flex-start;
	gap: 12px;
}

.tnp-account-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.tnp-form-inline {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.tnp-register-box {
	background: #f6f8fa;
}

/* Stiluri Organizatori & WhatsApp */
.tnp-organizer-contact .tnp-lead {
	font-size: 15px;
	color: #4b5563;
	margin-bottom: 20px;
	line-height: 1.5;
}

.tnp-whatsapp-card {
	background: #e6f7ef;
	border: 1px solid #a3e6cd;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 24px;
}

.tnp-whatsapp-card h3 {
	margin-top: 0;
	margin-bottom: 8px;
	color: #0d5c3a;
}

.tnp-whatsapp-card p {
	margin-top: 0;
	margin-bottom: 12px;
	color: #1c4a30;
}

.tnp-btn-whatsapp {
	background: #25d366;
	color: #ffffff;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none;
}

.tnp-btn-whatsapp:hover {
	background: #1eb857;
	color: #ffffff;
}

.tnp-organizer-form .tnp-form-section {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
}

.tnp-organizer-form .tnp-form-section h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 16px;
	border-bottom: 1px solid #cbd5e1;
	padding-bottom: 8px;
	color: #1e293b;
}

.tnp-organizer-notice {
	background: #f0f6ff;
	border: 1px solid #cce0ff;
	border-radius: 6px;
	padding: 10px 14px;
	margin-top: 15px;
	color: #1a4a75;
}

/* Paginare */
.tnp-pagination {
	margin: 20px 0;
}

.tnp-page {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	text-decoration: none;
	color: #1f2733;
	margin-right: 4px;
}

.tnp-page-current {
	background: #1f6feb;
	color: #fff;
	border-color: #1f6feb;
}

.tnp-event-header {
	margin-bottom: 20px;
}

@media (max-width: 600px) {
	.tnp-profile-header {
		flex-direction: column;
		text-align: center;
	}

	.tnp-section {
		padding: 16px;
	}

	.tnp-section-head {
		flex-direction: column;
	}

	.tnp-form-grid,
	.tnp-visibility-grid {
		grid-template-columns: 1fr;
	}

	.tnp-field-full {
		grid-column: auto;
	}

	.tnp-account-tabs .tnp-btn,
	.tnp-form-actions .tnp-btn,
	.tnp-profile-photo-field .tnp-btn {
		width: 100%;
		text-align: center;
	}

	.tnp-profile-photo-field {
		align-items: center;
		text-align: center;
	}

	.tnp-table-wrap {
		margin: 0 -4px;
	}
}
