/* Logo Collection Styles */
#logo-collection-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.collection-header {
	text-align: center;
	margin-bottom: 40px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 40px 30px;
	border-radius: 20px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.collection-header::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: 20px 20px;
	animation: float 20s linear infinite;
}

@keyframes float {
	0% {
		transform: translate(0, 0) rotate(0deg);
	}

	100% {
		transform: translate(-20px, -20px) rotate(360deg);
	}
}

.collection-header h2 {
	margin: 0 0 25px 0;
	font-size: 2.8em;
	font-weight: 300;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	position: relative;
}

.collection-stats {
	display: flex;
	justify-content: center;
	gap: 25px;
	flex-wrap: wrap;
	position: relative;
}

.stat {
	background: rgba(255, 255, 255, 0.15);
	padding: 12px 20px;
	border-radius: 20px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.collection-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	padding: 20px 0;
}

.collection-card {
	border-radius: 20px;
	padding: 0;
	overflow: hidden;
	position: relative;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	cursor: pointer;
	min-height: 320px;
	display: flex;
	flex-direction: column;
	perspective: 1000px;
}

.collection-card.collected {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.collection-card.missing {
	background: transparent;
	border: 2px dashed #dee2e6;
	animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
	0% {
		opacity: 0.8;
	}

	100% {
		opacity: 1;
	}
}

/* Rarity Styles */
.collection-card.common.collected {
	background: linear-gradient(135deg, #e4e4e4 0%, #dfdfdf 100%);
	border: 2px solid #d0d0d0;
	box-shadow: 0 15px 35px rgba(118, 118, 118, 0.2);
}

.collection-card.rare.collected {
	background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
	border: 2px solid #d0d0d0;
	box-shadow: 0 15px 35px rgba(33, 150, 243, 0.2);
}

.collection-card.legendary.collected {
	background: linear-gradient(135deg, #fff3e0 0%, #ffccbc 100%);
	border: 2px solid #d0d0d0;
	box-shadow: 0 15px 30px rgba(160, 0, 0, 0.3)
	/*animation: legendary-glow 3s ease-in-out infinite alternate;*/
}
/*
@keyframes legendary-glow {
	0% {
		box-shadow: 0 20px 40px rgba(255, 87, 34, 0.3);
	}

	100% {
		box-shadow: 0 20px 50px rgba(255, 87, 34, 0.5), 0 0 30px rgba(255, 193, 7, 0.4);
	}
}
*/
.collection-card:hover {
	transform: translateY(-12px) scale(1.03);
}

.collection-card.missing:hover {
	transform: unset;
	border-color: #bdc0c4;
	background: transparent;
}

.card-inner {
	position: relative;
	/*width: 100%;*/
	height: 100%;
	text-align: center;
	transition: transform 0.6s;
	transform-style: preserve-3d;
	border-radius: 20px;
	border: 10px solid white;
}

.collection-card.revealed .card-inner {
	transform: rotateY(180deg);
}

.collection-card.reveal-animation .card-inner {
	transform: rotateY(180deg);
}

.card-front,
.card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	/*border-radius: 20px;*/
	overflow: hidden;
}

.card-front {
	/*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
	color: white;
	border-radius: 12px;
}

.common .card-front {
	background: url(/files/miniset/images_collection/card_back_grey_2.jpg) center center no-repeat;
	background-size: cover;
}

.rare .card-front {
	background: url(/files/miniset/images_collection/card_back_blue_5.jpg) center center no-repeat;
	background-size: cover;
}

.legendary .card-front {
	background: url(/files/miniset/images_collection/card_back_red_2.jpg) center center no-repeat;
	background-size: cover;
}

.card-back {
	background: white;
	transform: rotateY(180deg);
}

.card-content {
	padding: 0;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	position: relative;
}

.card-image {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	/*padding: 35px 25px;*/
	min-height: 321px;
	background: rgba(255, 255, 255, 0.2);
}

.card-image img {
	max-width: 100%;
	max-height: 100%;
	transition: all 0.4s ease;
	/*filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));*/
}

.collection-card:hover .card-image img {
	transform: scale(1.15) rotate(2deg);
	/*filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));*/
}

.missing-logo {
	font-size: 12em;
	color: #ffffff;
	opacity: 0.5;
	transition: all 0.3s ease;
	text-shadow: 0 3px 4px rgb(191, 191, 191);
}

.collection-card.missing:hover .missing-logo {
	opacity: 0.8;
	transform: scale(1.1);
}

.card-info {
	/*background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);*/
	color: white;
	padding: 25px;
	transform: translateY(100%);
	transition: transform 0.4s ease;
	position: absolute;
	bottom: 20px;
	left: 0;
	right: 0;
	/*backdrop-filter: blur(10px);*/
}

.collection-card:hover .card-info {
	transform: translateY(20px);
}

.collection-card.missing:hover .card-info {
	transform: translateY(50px);
}

.card-title {
	margin: 0;
	font-size: 1.3em;
	font-weight: normal;
	line-height: 1.3;
	color: #999999;
	letter-spacing: 0px;
	/*text-shadow: 0 3px 4px rgb(0, 0, 0);
	font-stretch: normal;*/
}

.card-description {
	margin-top: 10px;
	font-size: 0.95em;
	line-height: 1.5;
	opacity: 0.9;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease 0.1s;
	color: #999;
	letter-spacing: 0px;
	/*text-shadow: 0 3px 4px rgb(0, 0, 0);*/
}

.collection-card:hover .card-description {
	max-height: 100px;
}

.card-rarity {
	position: absolute;
	top: 2px;
	right: 2px;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.75em;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rarity-common {
	background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
	color: white;
}

.rarity-rare {
	background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
	color: white;
}

.rarity-legendary {
	background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
	color: white;
	/*animation: rarity-pulse 2s ease-in-out infinite;*/
}

@keyframes rarity-pulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

.collection-date {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 6px 12px;
	border-radius: 15px;
	font-size: 0.75em;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden-logo {
	font-size: 4em;
	color: rgba(255, 255, 255, 0.8);
	margin: 40px 0 20px 0;
}

.card-front .card-title {
	color: white;
	font-size: 1.4em;
	margin: 0 0 15px 0;
	text-shadow: 0 3px 4px rgb(0, 0, 0);
}

.card-front .card-description {
	color: rgba(255, 255, 255, 1);
	font-size: 1em;
	text-shadow: 0 1px 4px rgb(0, 0, 0);
}

/* Reveal celebration */
.reveal-celebration {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10001;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.reveal-celebration.show {
	opacity: 1;
}

.celebration-content {
	background: white;
	padding: 40px;
	border-radius: 20px;
	text-align: center;
	max-width: 400px;
	transform: scale(0.8);
	transition: transform 0.3s ease;
}

.reveal-celebration.show .celebration-content {
	transform: scale(1);
}

.celebration-content h3 {
	color: #2c3e50;
	margin-bottom: 20px;
	font-size: 1.8em;
}

.celebration-content p {
	font-size: 1.2em;
	margin-bottom: 15px;
	color: #5a6c7d;
}

/* Detailed Stats Styles */
.collection-stats-detailed {
	background: white;
	border-radius: 15px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stats-main,
.stats-rarity,
.stats-revealed {
	display: flex;
	justify-content: space-around;
	margin-bottom: 25px;
	flex-wrap: wrap;
	gap: 15px;
}

.stat-item {
	text-align: center;
	padding: 15px;
	border-radius: 10px;
	min-width: 120px;
	background: #f8f9fa;
	transition: transform 0.3s ease;
}

.stat-item:hover {
	transform: translateY(-3px);
}

.stat-number {
	display: block;
	font-size: 2em;
	font-weight: bold;
	margin-bottom: 5px;
}

.stat-label {
	font-size: 0.9em;
	color: #6c757d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Progress Bar */
.progress-bar {
	width: 100%;
	height: 8px;
	background: #e9ecef;
	border-radius: 4px;
	margin: 10px 0;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 4px;
	transition: width 0.5s ease;
}

.stat-percentage {
	font-size: 0.8em;
	color: #6c757d;
}

/* Rarity Colors */
.rarity-common .stat-number {
	color: #95a5a6;
}

.rarity-rare .stat-number {
	color: #3498db;
}

.rarity-legendary .stat-number {
	color: #e74c3c;
}

.revealed .stat-number {
	color: #27ae60;
}

.hidden .stat-number {
	color: #f39c12;
}

/* Categories Stats */
.stats-categories {
	border-top: 1px solid #e9ecef;
	padding-top: 20px;
}

.stats-categories h4 {
	margin: 0 0 15px 0;
	color: #2c3e50;
	text-align: center;
}

.category-stat {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f8f9fa;
}

.category-name {
	color: #5a6c7d;
}

.category-count {
	font-weight: bold;
	color: #2c3e50;
}

/* Empty state styles */
.empty-database-message,
.empty-collection-message,
.no-collection-message {
	text-align: center;
	padding: 60px 20px;
	background: white;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	margin: 20px 0;
}

.empty-state h3 {
	font-size: 2.5em;
	margin-bottom: 20px;
	color: #2c3e50;
}

.empty-state p {
	font-size: 1.2em;
	color: #5a6c7d;
	margin-bottom: 30px;
	line-height: 1.6;
}

.empty-actions {
	margin-top: 30px;
}

button {
	border: none;
	background: unset;
}

.empty-actions .ic_button {
	display: inline-block;
	padding: 12px 30px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	text-decoration: none;
	border-radius: 25px;
	font-weight: bold;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.empty-actions .ic_button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.collection-tips {
	background: #f8f9fa;
	padding: 25px;
	border-radius: 15px;
	margin-top: 30px;
	text-align: left;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.collection-tips h4 {
	color: #2c3e50;
	margin-bottom: 15px;
	font-size: 1.3em;
}

.collection-tips ul {
	color: #5a6c7d;
	line-height: 1.6;
}

.collection-tips li {
	margin-bottom: 8px;
	position: relative;
	padding-left: 20px;
}

.collection-tips li:before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #27ae60;
	font-weight: bold;
}

/* Loading Animation */
.collection-card.collected .card-image {
	position: relative;
}

.collection-card.collected .card-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% {
		left: -100%;
	}

	100% {
		left: 100%;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.collection-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 20px;
	}

	.collection-stats {
		gap: 15px;
	}

	.stat {
		padding: 10px 16px;
		font-size: 0.9em;
	}

	.collection-header {
		padding: 30px 20px;
	}

	.collection-header h2 {
		font-size: 2.2em;
	}

	.card-info {
		padding: 20px;
	}

	.stats-main,
	.stats-rarity,
	.stats-revealed {
		flex-direction: column;
		align-items: center;
	}

	.stat-item {
		width: 200px;
	}
}

@media (max-width: 480px) {
	.collection-grid {
		grid-template-columns: 1fr;
	}

	.collection-header {
		padding: 25px 15px;
	}

	.collection-header h2 {
		font-size: 1.8em;
	}

	.collection-stats {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}

	.stat {
		width: 200px;
		text-align: center;
	}

	#logo-collection-page {
		padding: 15px;
	}
}

/* Стили для подсказок на карточках */
.card-hint {
    font-size: 0.85em;
	margin-top: 20px;
    font-style: italic;
    color: rgba(175, 175, 175, 0.8);
    line-height: 1.4;
    margin: 0;
    padding: 5px;
    /*background: rgba(0, 0, 0, 0.3);*/
    /*border-radius: 8px;*/
    /*border-left: 3px solid #ffd700;*/
}

.card-front .card-hint {
    color: rgba(255, 255, 255, 0.9);
}

/* Адаптивность для подсказок */
@media (max-width: 768px) {
    .card-hint {
        font-size: 0.8em;
        padding: 3px;
    }
}