/**
 * Shared Styles for Fluxtility Frontend
 */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
	color: #e0e0e0;
	min-height: 100vh;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px;
}

/* Navigation */
.navbar {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border-radius: 16px;
	padding: 20px 30px;
	margin-bottom: 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.nav-brand h1 {
	font-size: 1.8rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.nav-links {
	display: flex;
	gap: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.nav-links a {
	color: #a0a0a0;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
	color: #e0e0e0;
	background: rgba(102, 126, 234, 0.2);
}

.user-menu {
	display: flex;
	align-items: center;
	gap: 15px;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

/* Cards */
.card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border-radius: 16px;
	padding: 25px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(102, 126, 234, 0.3);
	transform: translateY(-2px);
}

.controls-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border-radius: 16px;
	padding: 25px;
	margin-bottom: 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Forms */
.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	color: #b0b0b0;
	font-size: 0.9rem;
	font-weight: 500;
}

.form-control {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	padding: 12px 16px;
	color: #e0e0e0;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form-control:focus {
	outline: none;
	border-color: #667eea;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn {
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.1);
	color: #e0e0e0;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
}

.btn-success {
	background: linear-gradient(135deg, #14F195 0%, #00D4AA 100%);
	color: white;
}

.btn-danger {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Grids */
.raffles-grid,
.giveaways-grid,
.raids-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

/* Raffle/Giveaway/Raid Card */
.raffle-card,
.giveaway-card,
.raid-card {
	cursor: pointer;
}

.raffle-card h3,
.giveaway-card h3 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: #e0e0e0;
}

.raffle-card p,
.giveaway-card p {
	color: #a0a0a0;
	margin-bottom: 15px;
	line-height: 1.6;
}

.raffle-stats,
.giveaway-stats,
.raid-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin-top: 20px;
}

.stat-item {
	text-align: center;
	padding: 15px;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 8px;
}

.stat-label {
	font-size: 0.8rem;
	color: #a0a0a0;
	margin-bottom: 5px;
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #e0e0e0;
}

/* Loading */
.loading {
	text-align: center;
	padding: 60px 20px;
}

.spinner {
	border: 4px solid rgba(255, 255, 255, 0.1);
	border-top: 4px solid #667eea;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Error */
.error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
	color: #fca5a5;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #a0a0a0;
}

.empty-state h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: #e0e0e0;
}

/* Modal */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
}

.modal-content {
	background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
	margin: 5% auto;
	padding: 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	width: 90%;
	max-width: 600px;
	max-height: 80vh;
	overflow-y: auto;
	position: relative;
}

.close {
	color: #a0a0a0;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	right: 20px;
	top: 20px;
}

.close:hover {
	color: #e0e0e0;
}

.modal-image {
	width: 100%;
	max-height: 300px;
	object-fit: contain;
	border-radius: 12px;
	margin-bottom: 20px;
}

.modal-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
	.navbar {
		flex-direction: column;
		text-align: center;
	}

	.raffles-grid,
	.giveaways-grid,
	.raids-grid {
		grid-template-columns: 1fr;
	}

	.modal-content {
		width: 95%;
		margin: 10% auto;
		padding: 20px;
	}
}

