/*
 Theme Name:   App Directory Child
 Template:     generatepress
 Description:  Child theme for an app/game directory site. If you're using Kadence instead of GeneratePress, change the Template line above to "kadence".
 Version:      1.0.0
*/

/* ---------- Listing cards (archive / taxonomy / shelves) ---------- */

.app-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 16px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	background: #fff;
}

.app-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.app-card__icon {
	width: 72px;
	height: 72px;
	border-radius: 16px;
	object-fit: cover;
	margin-bottom: 12px;
}

.app-icon-placeholder {
	display: inline-block;
	text-align: center;
	color: #fff;
	font-weight: 700;
	font-family: sans-serif;
}

.app-card__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 4px;
	line-height: 1.3;
}

.app-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #666;
}

.app-card__rating {
	color: #f5a623;
	font-weight: 600;
}

.app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
	margin: 24px 0;
}

/* ---------- Shelves (homepage rows) ---------- */

.app-shelf {
	margin-bottom: 40px;
}

.app-shelf__header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 16px;
}

.app-shelf__header h2 {
	margin: 0;
	font-size: 1.3rem;
}

.app-shelf__see-more {
	font-size: 0.9rem;
	text-decoration: none;
}

/* ---------- Single app page ---------- */

.app-single__header {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.app-single__icon {
	width: 128px;
	height: 128px;
	border-radius: 24px;
	object-fit: cover;
	flex-shrink: 0;
}

.app-single__meta-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin: 12px 0;
	font-size: 0.95rem;
	color: #555;
}

.app-single__cta {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 8px;
	background: #1a73e8;
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	margin-right: 8px;
	margin-top: 12px;
}

.app-single__cta--secondary {
	background: #333;
}

.app-single__screenshots {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 12px;
	margin: 24px 0;
}

.app-single__screenshots img {
	height: 320px;
	border-radius: 12px;
	flex-shrink: 0;
}

.app-single__editor-score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #1a73e8;
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
}

@media (max-width: 600px) {
	.app-single__header {
		flex-direction: column;
	}
}
