/*
Theme Name: Ashe Child
Template: ashe
Version: 1.0
*/

/* =====================
1. БАЗА
===================== */

a {
	color: #e67e5f;
	text-decoration: none;
	transition: 0.3s;
}

a:hover {
	color: #d96545;
	text-decoration: underline;
}

/* =====================
2. ОТСТУПЫ
===================== */

.container,
.site-content {
	padding-top: 30px;
}

h2, h3 {
	margin-bottom: 15px;
}

/* =====================
3. КАРТОЧКИ
===================== */

.blog-grid .post,
.list-layout .post,
.widget,
.wp-block-group,
.ashe-widget {
	background: #fff;
	border-radius: 0;
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	margin-bottom: 25px;
}

.post {
	transition: 0.3s;
}

.post:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 35px rgba(0,0,0,0.08);
}

/* =====================
4. КАРТИНКИ (ИСПРАВЛЕНО)
===================== */

.post img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.post-media img {
	width: 100% !important;
	height: auto !important;
	object-fit: contain !important;
}

/* =====================
5. КНОПКИ
===================== */

a.more-link,
button,
.wp-block-button__link {
	background: #e67e5f;
	color: #fff;
	border-radius: 0;
	padding: 10px 18px;
	font-size: 14px;
	transition: 0.3s;
}

a.more-link:hover,
.wp-block-button__link:hover {
	background: #d96545;
}

/* =====================
6. INTRO
===================== */

.homepage-intro {
	width: 100%;
	max-width: 1200px;
	margin: 30px auto;
	padding: 40px 30px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	box-sizing: border-box;
}

.homepage-intro h2 {
	text-align: left;
	margin-bottom: 25px;
	font-size: 30px;
	font-weight: 500;
}

.intro-content {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.intro-text {
	flex: 2;
}

.intro-text p {
	margin-bottom: 14px;
	line-height: 1.8;
	color: #444;
}

.intro-side {
	flex: 1;
	background: #fff;
	padding: 20px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.side-card {
	background: #f7f7f7;
	padding: 12px 15px;
	margin-bottom: 10px;
	font-size: 14px;
	transition: 0.3s;
}

.side-card:hover {
	background: #eef6ed;
	transform: translateY(-2px);
}

/* =====================
7. КАЛОРИИ
===================== */

.calorie-menu-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
	margin: 25px 0;
}

.calorie-title {
	font-weight: 600;
	font-size: 16px;
	color: #333;
}

.calorie-menu {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.calorie-btn {
	background: #fff;
	padding: 10px 18px;
	border-radius: 0;
	border: 1px solid #eee;
	font-size: 14px;
	color: #333;
	transition: 0.3s;
}

.calorie-btn:hover {
	background: #ff6b6b;
	color: #fff;
}

/* цвета */
.calorie-btn:nth-child(1) { background: #e0f7e9; }
.calorie-btn:nth-child(2) { background: #e8f5e9; }
.calorie-btn:nth-child(3) { background: #fff9c4; }
.calorie-btn:nth-child(4) { background: #ffe0b2; }
.calorie-btn:nth-child(5) { background: #ffccbc; }
.calorie-btn:nth-child(6) { background: #ffcdd2; }

/* =====================
8. БЕЙДЖ
===================== */

.post-media {
	position: relative;
}

.calorie-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0,0,0,0.75);
	color: #fff;
	padding: 6px 10px;
	font-size: 13px;
	border-radius: 0;
}

/* =====================
9. ШАПКА
===================== */

#masthead,
.site-header {
	background: #fff;
	padding: 20px 0;
	border-bottom: 1px solid #eee;
}

.site-title {
	font-size: 28px;
	font-weight: 600;
	color: #222;
}

.site-description {
	font-size: 14px;
	color: #888;
}

.main-navigation {
	border-top: 1px solid #eee;
	padding: 10px 0;
}

.main-navigation a {
	color: #444;
	font-size: 14px;
}

.main-navigation a:hover {
	color: #e67e5f;
}

/* =====================
10. БЛОК "ЧТО ГОТОВИМ" (КАК КАЛОРИИ)
===================== */

.food-menu-widget {
	background: #fff;
	padding: 20px;
	border: 1px solid #eee;
}

.food-title {
	text-align: center;
	font-size: 16px;
	margin-bottom: 15px;
	color: #444;
}

.food-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.food-card {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 0;
	border: 1px solid #eee;
	background: #fff;
	font-size: 14px;
	color: #333;
	text-decoration: none;
	transition: 0.3s;
}

.food-card:hover {
	background: #ff6b6b;
	color: #fff;
}

/* цвета */
.food-card:nth-child(1) { background: #e0f7e9; }
.food-card:nth-child(2) { background: #e8f5e9; }
.food-card:nth-child(3) { background: #fff9c4; }
.food-card:nth-child(4) { background: #ffe0b2; }
.food-card:nth-child(5) { background: #ffccbc; }
.food-card:nth-child(6) { background: #ffcdd2; }

/* =====================
11. АДАПТИВ
===================== */

@media (max-width: 768px) {
	.intro-content {
		flex-direction: column;
	}
}