/* KC Renginiai Public Styles */

/* General */
.kcr-checkin-container,
.kcr-profile,
.kcr-leaderboard-container,
.kcr-timeline,
.kcr-badges-container,
.kcr-challenges,
.kcr-testimonials {
	max-width: 800px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Check-in Form */
.kcr-checkin-form {
	margin-top: 20px;
}

.kcr-checkin-form p {
	margin-bottom: 15px;
}

.kcr-checkin-form label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
	color: #333;
}

.kcr-checkin-form input[type="email"],
.kcr-checkin-form input[type="text"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}

.kcr-checkin-form small {
	display: block;
	margin-top: 5px;
	color: #666;
	font-size: 13px;
}

.kcr-checkin-form button {
	background: #2271b1;
	color: white;
	border: none;
	padding: 12px 24px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
}

.kcr-checkin-form button:hover {
	background: #135e96;
}

.kcr-checkin-form button:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* Results */
.kcr-success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
	padding: 15px;
	border-radius: 4px;
	margin-top: 15px;
}

.kcr-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 15px;
	border-radius: 4px;
	margin-top: 15px;
}

.kcr-reward {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	padding: 12px;
	margin-top: 10px;
	border-radius: 4px;
	font-weight: bold;
}

.kcr-badge-earned {
	color: #856404;
	font-weight: bold;
	font-size: 16px;
}

/* Stats Widget */
.kcr-stats-widget {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin: 20px 0;
}

.kcr-stats-widget .stat {
	text-align: center;
	padding: 20px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 8px;
	color: white;
}

.kcr-stats-widget .stat-value {
	display: block;
	font-size: 36px;
	font-weight: bold;
	margin-bottom: 5px;
}

.kcr-stats-widget .stat-label {
	display: block;
	font-size: 14px;
	opacity: 0.9;
}

/* Badges Grid */
.kcr-badges-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.kcr-badge {
	text-align: center;
	padding: 15px;
	border: 2px solid #ddd;
	border-radius: 8px;
	transition: all 0.3s;
}

.kcr-badge.earned {
	border-color: #667eea;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.kcr-badge.locked {
	opacity: 0.4;
}

.kcr-badge img {
	width: 80px;
	height: 80px;
	margin-bottom: 10px;
}

.kcr-badge h3, .kcr-badge h4 {
	margin: 10px 0 5px;
	font-size: 16px;
}

.kcr-badge p {
	font-size: 13px;
	color: #666;
	margin: 0;
}

/* Leaderboard */
.kcr-leaderboard {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.kcr-leaderboard li {
	padding: 15px;
	margin: 10px 0;
	background: #f9f9f9;
	border-radius: 6px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-left: 4px solid #667eea;
}

.kcr-leaderboard li:nth-child(1) { border-left-color: #FFD700; }
.kcr-leaderboard li:nth-child(2) { border-left-color: #C0C0C0; }
.kcr-leaderboard li:nth-child(3) { border-left-color: #CD7F32; }

.kcr-leaderboard .rank {
	font-weight: bold;
	color: #667eea;
	font-size: 18px;
	min-width: 40px;
}

.kcr-leaderboard .name {
	flex: 1;
	font-weight: 500;
}

.kcr-leaderboard .points {
	font-weight: bold;
	color: #764ba2;
}

/* Timeline */
.kcr-timeline {
	position: relative;
	padding: 20px;
}

.kcr-timeline-item {
	padding: 15px;
	margin: 15px 0;
	border-left: 4px solid #667eea;
	background: #f9f9f9;
	border-radius: 4px;
	position: relative;
}

.kcr-timeline-item h4 {
	margin: 0 0 8px;
	color: #667eea;
}

.kcr-timeline-item p {
	margin: 5px 0;
	font-size: 14px;
	color: #666;
}

/* Challenges */
.kcr-challenges {
	margin: 20px 0;
}

.kcr-challenge {
	padding: 20px;
	margin: 15px 0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 8px;
	color: white;
}

.kcr-challenge h3 {
	margin: 0 0 10px;
}

.kcr-challenge p {
	margin: 5px 0;
	opacity: 0.95;
}

/* Testimonials */
.kcr-testimonials {
	margin: 20px 0;
}

.kcr-testimonial {
	padding: 20px;
	margin: 15px 0;
	background: #f9f9f9;
	border-left: 4px solid #667eea;
	border-radius: 4px;
}

.kcr-testimonial .testimonial-text {
	font-style: italic;
	margin-bottom: 10px;
	color: #333;
}

.kcr-testimonial .testimonial-author {
	text-align: right;
	font-weight: bold;
	color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
	.kcr-stats-widget {
		grid-template-columns: repeat(2, 1fr);
	}

	.kcr-badges-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.kcr-leaderboard li {
		flex-direction: column;
		align-items: flex-start;
	}

	.kcr-leaderboard .rank,
	.kcr-leaderboard .name,
	.kcr-leaderboard .points {
		margin: 5px 0;
	}
}
