/**
 * Ohanashi Feed - 投稿カード / 今日のお題 / 直近のレッスン / フィルタ空状態 / トースト
 *
 * v1.2.0:
 *   - レッスンカードを縦並び（画像 16:9 で大きく表示）
 *   - Zoom CTA を強調（フルワイド・グラデ）
 *   - フィルタ空状態 (.oh-filter-empty) のスタイル
 *   - トースト通知 (.oh-toast) のスタイル
 */

#buddypress .activity-list,
.oh-feed {
	max-width: 720px;
	margin: 0 auto;
	padding: var(--oh-space-3);
	background: transparent !important;
}

#buddypress .activity-list li.activity-item,
.oh-card {
	background: var(--oh-bg-card) !important;
	border-radius: var(--oh-r-lg) !important;
	padding: 16px 18px !important;
	box-shadow: var(--oh-shadow-md);
	margin-bottom: 14px !important;
	border: 1px solid var(--oh-border-soft) !important;
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

#buddypress .activity-list li.activity-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--oh-shadow-lg);
}

#buddypress .activity-list .activity-avatar img {
	width: 46px !important;
	height: 46px !important;
	border-radius: 50% !important;
	border: 2px solid var(--oh-bg-card);
	box-shadow: var(--oh-shadow-sm);
}

#buddypress .activity-list .activity-header { font-size: 14px; }

#buddypress .activity-list .activity-header strong a {
	font-weight: 800;
	color: var(--oh-text-primary);
}

#buddypress .activity-list .activity-header .time-since {
	color: var(--oh-text-tertiary);
	font-size: 12px;
}

.oh-card__user-badges {
	display: inline-flex;
	gap: 4px;
	margin-left: 6px;
	vertical-align: middle;
}

#buddypress .activity-list .activity-content .activity-inner {
	font-size: 15px;
	line-height: 1.65;
	color: var(--oh-text-primary);
	padding: 10px 0;
}

#buddypress .activity-list .activity-content .activity-media-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px;
	border-radius: var(--oh-r-md);
	overflow: hidden;
	margin-top: 10px;
}

#buddypress .activity-list .activity-meta {
	border-top: 1px solid var(--oh-border-soft);
	padding-top: 10px;
	margin-top: 10px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

#buddypress .activity-list .activity-meta a {
	color: var(--oh-text-secondary);
	font-size: 13px;
	padding: 6px 10px;
	border-radius: var(--oh-r-full);
	transition: background 0.15s;
}
#buddypress .activity-list .activity-meta a:hover { background: var(--oh-border-soft); }

.oh-follow-btn {
	background: var(--oh-gradient-violet-blue);
	color: #fff;
	border: 0;
	border-radius: var(--oh-r-full);
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.15s;
	box-shadow: var(--oh-shadow-pop);
}
.oh-follow-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.oh-follow-btn.is-following {
	background: var(--oh-border-soft);
	color: var(--oh-text-secondary);
	box-shadow: none;
}

/* =============================================================
 * 今日のお題カード
 * ============================================================= */
.oh-topic-card {
	background: var(--oh-gradient-warm);
	border-radius: var(--oh-r-xl);
	padding: 22px 24px;
	color: #fff;
	box-shadow: var(--oh-shadow-warm), var(--oh-shadow-md);
	position: relative;
	overflow: hidden;
	margin: 16px auto;
	max-width: 720px;
}
.oh-topic-card::after {
	content: '💬';
	position: absolute;
	right: 14px;
	bottom: 4px;
	font-size: 72px;
	opacity: 0.18;
	pointer-events: none;
}
.oh-topic-card.is-flash {
	animation: oh-topic-flash 1.2s ease-out;
}
@keyframes oh-topic-flash {
	0% { box-shadow: 0 0 0 0 rgba(255, 123, 110, 0.6), var(--oh-shadow-md); }
	100% { box-shadow: 0 0 0 16px rgba(255, 123, 110, 0), var(--oh-shadow-md); }
}
.oh-topic-card__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: 0.92;
	margin-bottom: 8px;
}
.oh-topic-card__question {
	font-size: 19px;
	font-weight: 800;
	margin: 6px 0;
	line-height: 1.45;
}
.oh-topic-card__hint {
	font-size: 13px;
	opacity: 0.88;
	margin: 4px 0 10px;
}
.oh-topic-card__sub {
	font-size: 13px;
	opacity: 0.78;
	font-style: italic;
	margin: 0 0 14px;
	padding-top: 8px;
	border-top: 1px solid rgba(255,255,255,0.25);
}
.oh-topic-card__cta {
	background: #fff;
	color: var(--oh-accent-dark);
	border: 0;
	border-radius: var(--oh-r-full);
	padding: 10px 18px;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	box-shadow: var(--oh-shadow-sm);
	transition: transform 0.15s;
}
.oh-topic-card__cta:hover { transform: translateY(-1px); }

/* =============================================================
 * 直近のレッスンパネル (v1.2: 縦並び・画像大きく)
 * ============================================================= */
.oh-lessons-panel {
	max-width: 720px;
	margin: 16px auto;
	padding: 18px;
	background: var(--oh-bg-card);
	border-radius: var(--oh-r-xl);
	box-shadow: var(--oh-shadow-md);
	border: 1px solid var(--oh-border-soft);
}

.oh-lessons-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	gap: 8px;
}

.oh-lessons-panel__header h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: var(--oh-text-primary);
	display: flex;
	align-items: center;
	gap: 6px;
}

.oh-lessons-panel__more {
	font-size: 13px;
	font-weight: 700;
	color: var(--oh-primary);
}
.oh-lessons-panel__more:hover { color: var(--oh-primary-dark); }

.oh-lessons-panel__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.oh-lessons-panel__empty {
	color: var(--oh-text-tertiary);
	text-align: center;
	padding: 32px;
	font-size: 14px;
	grid-column: 1 / -1;
}

/* レッスンカード — 縦並び (画像が上、テキストが上) */
.oh-lesson-card {
	display: flex;
	flex-direction: column;
	background: var(--oh-bg-card);
	border: 1px solid var(--oh-border-soft);
	border-radius: var(--oh-r-lg);
	overflow: hidden;
	transition: all 0.18s ease-out;
	color: var(--oh-text-primary);
}
.oh-lesson-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--oh-shadow-lg);
	border-color: var(--oh-primary);
}

.oh-lesson-card__media-link {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, #ECEEF5, #DDE2ED);
	position: relative;
}

.oh-lesson-card__media {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.oh-lesson-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease-out;
}
.oh-lesson-card:hover .oh-lesson-card__img {
	transform: scale(1.04);
}

.oh-lesson-card__placeholder {
	font-size: 56px;
	color: var(--oh-text-tertiary);
}

.oh-lesson-card__body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.oh-lesson-card__cat {
	display: inline-block;
	align-self: flex-start;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	background: var(--oh-badge-jlc);
	color: #fff;
	padding: 3px 8px;
	border-radius: var(--oh-r-sm);
	margin-bottom: 6px;
}

.oh-lesson-card__teacher {
	font-weight: 800;
	font-size: 14px;
	line-height: 1.4;
	color: var(--oh-text-primary);
}

.oh-lesson-card__when {
	font-size: 12px;
	color: var(--oh-text-secondary);
	font-weight: 600;
	margin-bottom: 8px;
}

.oh-lesson-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	background: var(--oh-gradient-violet-blue);
	color: #fff !important;
	padding: 10px 12px;
	border-radius: var(--oh-r-md);
	font-weight: 800;
	font-size: 13px;
	transition: filter 0.15s;
	text-decoration: none;
	box-shadow: var(--oh-shadow-pop);
}
.oh-lesson-card__cta:hover { filter: brightness(1.08); color: #fff !important; }

.oh-lesson-card__detail {
	text-align: center;
	margin-top: 8px;
	font-size: 12px;
	color: var(--oh-text-tertiary);
	font-weight: 600;
}
.oh-lesson-card__detail:hover { color: var(--oh-primary); }

/* =============================================================
 * フィルタ空状態 (v1.2-C)
 * ============================================================= */
.oh-filter-empty {
	background: var(--oh-bg-card) !important;
	border: 1px dashed var(--oh-border-strong) !important;
	border-radius: var(--oh-r-lg) !important;
	padding: 32px !important;
	margin: 14px auto !important;
	list-style: none !important;
	box-shadow: none !important;
}
.oh-filter-empty__body { text-align: center; }
.oh-filter-empty__icon { font-size: 48px; margin-bottom: 8px; }
.oh-filter-empty__msg {
	font-size: 15px;
	font-weight: 800;
	color: var(--oh-text-primary);
	margin-bottom: 6px;
}
.oh-filter-empty__hint {
	font-size: 12px;
	color: var(--oh-text-tertiary);
	line-height: 1.5;
	max-width: 380px;
	margin: 0 auto;
}

/* =============================================================
 * トースト通知 (v1.2-D)
 * ============================================================= */
.oh-toast {
	position: fixed;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: rgba(26, 26, 46, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	padding: 14px 22px;
	border-radius: var(--oh-r-full);
	font-size: 13px;
	font-weight: 700;
	z-index: 1000;
	box-shadow: var(--oh-shadow-lg);
	opacity: 0;
	transition: opacity 0.32s ease-out, transform 0.32s ease-out;
	max-width: 88vw;
	text-align: center;
	pointer-events: none;
}
.oh-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
.oh-toast--error {
	background: rgba(255, 94, 94, 0.95);
}
@media (max-width: 767px) {
	.oh-toast { bottom: 110px; font-size: 12px; padding: 12px 18px; }
}

/* =============================================================
 * リアクションバー
 * ============================================================= */
.oh-reactions {
	display: flex;
	gap: 4px;
	border-top: 1px solid var(--oh-border-soft);
	padding-top: 10px;
	margin-top: 10px;
}

.oh-reaction {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 6px;
	border: 0;
	background: transparent;
	color: var(--oh-text-secondary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-radius: var(--oh-r-sm);
	transition: all 0.15s;
}

.oh-reaction:hover { background: var(--oh-border-soft); color: var(--oh-text-primary); }
.oh-reaction.is-active {
	color: var(--oh-accent);
	background: rgba(255, 123, 110, 0.08);
	font-weight: 800;
}
