/* Tournaments Page Styles */

/* Page Header */
.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}

.page-header-content h1.page-title {
	font-family: 'Orbitron', sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.5rem 0;
}

.page-subtitle {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

.create-tournament-btn {
	background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
	color: #fff;
	border: none;
	padding: 0.9rem 1.75rem;
	border-radius: 0.75rem;
	font-family: 'Orbitron', sans-serif;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.create-tournament-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

/* Tournament Controls */
.tournament-controls {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 2rem;
	align-items: center;
}

.tournament-search {
	flex: 1;
	max-width: 600px;
	position: relative;
	display: flex;
	align-items: center;
	background: rgba(30, 35, 50, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	padding: 0 1.25rem;
	gap: 0.75rem;
}

.tournament-search svg {
	color: rgba(255, 255, 255, 0.4);
	flex-shrink: 0;
}

.tournament-search-input {
	flex: 1;
	background: transparent;
	border: none;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	padding: 1rem 0;
	outline: none;
}

.tournament-search-input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.tournament-filters {
	display: flex;
	gap: 0.75rem;
}

.filter-btn {
	background: rgba(30, 35, 50, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.6);
	padding: 0.75rem 1.5rem;
	border-radius: 0.75rem;
	font-family: 'Orbitron', sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s;
}

.filter-btn:hover {
	background: rgba(40, 45, 60, 0.8);
	border-color: rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.8);
}

.filter-btn.active {
	background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* Tournaments Grid */
.tournaments-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
	gap: 1.25rem;
}

.tournament-card {
	background: rgba(30, 35, 50, 0.6);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.875rem;
	overflow: hidden;
	padding: 1.75rem;
	transition: all 0.3s;
}

.tournament-card:hover {
	transform: translateY(-4px);
	border-color: rgba(168, 85, 247, 0.4);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tournament-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.25rem;
}

.tournament-icon {
	width: 60px;
	height: 60px;
	background: rgba(168, 85, 247, 0.2);
	border: 2px solid rgba(168, 85, 247, 0.4);
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tournament-status {
	padding: 0.4rem 1rem;
	border-radius: 2rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
}

.status-live {
	background: rgba(16, 185, 129, 0.2);
	color: #10B981;
	border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-upcoming {
	background: rgba(6, 182, 212, 0.2);
	color: #06B6D4;
	border: 1px solid rgba(6, 182, 212, 0.4);
}

.status-past {
	background: rgba(107, 114, 128, 0.2);
	color: #9CA3AF;
	border: 1px solid rgba(107, 114, 128, 0.4);
}

.tournament-title {
	font-family: 'Orbitron', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.5rem 0;
}

.tournament-game {
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 1.5rem 0;
}

.tournament-details {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.detail-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.detail-item svg {
	flex-shrink: 0;
}

.tournament-actions {
	display: flex;
	gap: 1rem;
}

.btn-primary {
	flex: 1;
	background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
	color: #fff;
	border: none;
	padding: 0.9rem 1.5rem;
	border-radius: 0.75rem;
	font-family: 'Orbitron', sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

.btn-secondary {
	flex: 1;
	background: rgba(30, 35, 50, 0.8);
	color: #A855F7;
	border: 2px solid #A855F7;
	padding: 0.9rem 1.5rem;
	border-radius: 0.75rem;
	font-family: 'Orbitron', sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s;
}

.btn-secondary:hover {
	background: rgba(40, 45, 60, 0.9);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
	.tournaments-grid {
		grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
	}

	.tournament-card {
		padding: 1.5rem;
	}
}

@media (max-width: 1024px) {
	.page-header {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.create-tournament-btn {
		padding: 0.8rem 1.5rem;
	}

	.tournament-controls {
		gap: 1rem;
	}

	.tournaments-grid {
		grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	}

	.tournament-title {
		font-size: 1.3rem;
	}
}

@media (max-width: 900px) {
	.page-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.create-tournament-btn {
		width: 100%;
	}

	.tournament-controls {
		flex-direction: column;
	}

	.tournament-search {
		max-width: 100%;
		width: 100%;
	}

	.tournament-filters {
		width: 100%;
		justify-content: space-between;
	}

	.filter-btn {
		flex: 1;
		padding: 0.75rem 1rem;
		font-size: 0.875rem;
	}

	.tournaments-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.page-header-content h1.page-title {
		font-size: 2rem;
	}

	.page-subtitle {
		font-size: 0.9rem;
	}

	.tournament-card {
		padding: 1.25rem;
	}

	.tournament-icon {
		width: 52px;
		height: 52px;
	}

	.tournament-title {
		font-size: 1.2rem;
	}

	.tournament-details {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.tournament-actions {
		flex-direction: column;
		gap: 0.75rem;
	}

	.btn-primary,
	.btn-secondary {
		padding: 0.8rem 1.25rem;
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.page-header-content h1.page-title {
		font-size: 1.6rem;
	}

	.tournament-search-input {
		font-size: 0.9rem;
		padding: 0.9rem 0;
	}

	.filter-btn {
		font-size: 0.8rem;
		padding: 0.65rem 0.75rem;
	}

	.tournament-card {
		padding: 1rem;
	}

	.tournament-card-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.tournament-icon {
		width: 48px;
		height: 48px;
	}

	.tournament-title {
		font-size: 1.1rem;
	}

	.tournament-game {
		font-size: 0.85rem;
	}

	.detail-item {
		font-size: 0.8rem;
	}
}
