/* Post Format Styles */

/* Gallery Format */
.post-gallery-slider {
	position: relative;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 30px;
}

.gallery-slider-wrapper {
	display: flex;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
}

.gallery-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	position: relative;
}

.gallery-slide img {
	width: 100%;
	height: auto;
	display: block;
}

.gallery-nav-dots {
	position: absolute;
	bottom: 15px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}

.gallery-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: all 0.3s ease;
}

.gallery-dot.active {
	background: #fff;
	transform: scale(1.2);
}

/* Video Format */
.post-video-wrapper {
	position: relative;
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
}

.responsive-video-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	background: #000;
}

.responsive-video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Audio Format */
.post-audio-player {
	margin-bottom: 30px;
	padding: 20px;
	background: #f5f5f5;
	border-radius: 8px;
}

.audio-player {
	width: 100%;
	height: 40px;
}

/* Quote Format */
.post-quote-block {
	margin: 40px 0;
	padding: 30px;
	background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
	border-left: 5px solid #ff5e2e;
	border-radius: 4px;
	font-style: italic;
	font-size: 18px;
	line-height: 1.6;
	color: #333;
}

.quote-text {
	margin: 0 0 15px 0;
	font-size: 20px;
	font-weight: 500;
}

.quote-footer {
	text-align: right;
	margin-top: 15px;
}

.quote-author {
	font-size: 14px;
	font-weight: 600;
	color: #666;
	font-style: normal;
}

.quote-author::before {
	content: "— ";
}

/* Link Format */
.post-link-card {
	display: flex;
	gap: 20px;
	padding: 25px;
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-bottom: 30px;
	transition: all 0.3s ease;
}

.post-link-card:hover {
	background: #fff;
	border-color: #ff5e2e;
	box-shadow: 0 4px 12px rgba(255, 94, 46, 0.1);
}

.link-favicon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.link-favicon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.link-content {
	flex: 1;
}

.link-title {
	margin: 0 0 10px 0;
	font-size: 16px;
	font-weight: 600;
}

.link-title a {
	color: #1f242e;
	text-decoration: none;
	transition: color 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.link-title a:hover {
	color: #ff5e2e;
}

.link-icon {
	font-size: 12px;
	opacity: 0.6;
	transition: all 0.3s ease;
}

.link-title a:hover .link-icon {
	opacity: 1;
	transform: translateX(2px);
}

.link-description {
	margin: 0;
	color: #666;
	font-size: 14px;
	line-height: 1.5;
}

/* Image Format */
.post-image-featured {
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-image-figure {
	margin: 0;
	padding: 0;
}

.featured-image-figure img {
	width: 100%;
	height: auto;
	display: block;
}

/* Status Format */
.post-status-card {
	background: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 30px;
}

.status-header {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
}

.status-avatar {
	flex-shrink: 0;
}

.status-avatar-image {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: block;
}

.status-info {
	flex: 1;
}

.status-author {
	display: block;
	font-size: 14px;
	color: #333;
	margin-bottom: 4px;
}

.status-author a {
	color: #1f242e;
	text-decoration: none;
	transition: color 0.3s ease;
}

.status-author a:hover {
	color: #ff5e2e;
}

.status-time {
	font-size: 12px;
	color: #999;
}

.status-content {
	margin-bottom: 15px;
	color: #333;
	line-height: 1.6;
}

.status-actions {
	text-align: center;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

.status-permalink {
	font-size: 12px;
	color: #999;
	text-decoration: none;
	transition: color 0.3s ease;
}

.status-permalink:hover {
	color: #ff5e2e;
}

/* Chat Format */
.post-chat-transcript {
	margin-bottom: 30px;
}

.chat-message {
	margin-bottom: 15px;
	padding: 15px;
	border-radius: 8px;
	max-width: 80%;
}

.chat-message-a {
	background: #f0f0f0;
	margin-left: 0;
	margin-right: auto;
}

.chat-message-b {
	background: #ff5e2e;
	color: #fff;
	margin-left: auto;
	margin-right: 0;
}

.chat-speaker {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 5px;
	opacity: 0.8;
}

.chat-text {
	margin: 0;
	line-height: 1.5;
	word-break: break-word;
}

/* Aside Format */
.post-aside {
	background: #f5f5f5;
	border-left: 4px solid #ff5e2e;
	padding: 20px;
	border-radius: 4px;
	margin-bottom: 30px;
}

.aside-content-wrapper {
	display: flex;
	flex-direction: column;
}

.aside-content {
	margin-bottom: 15px;
	color: #333;
	line-height: 1.6;
}

.aside-content p:last-child {
	margin-bottom: 0;
}

.aside-meta {
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.aside-permalink {
	font-size: 12px;
	color: #999;
	text-decoration: none;
	transition: color 0.3s ease;
}

.aside-permalink:hover {
	color: #ff5e2e;
}

/* Post Format Icons in Archives */
.post-format-icon {
	display: inline-block;
	margin-right: 8px;
	font-size: 14px;
	color: #ff5e2e;
}

/* Responsive */
@media (max-width: 768px) {
	.post-quote-block {
		margin: 30px 0;
		padding: 20px;
		font-size: 16px;
	}

	.quote-text {
		font-size: 18px;
	}

	.post-link-card {
		flex-direction: column;
		gap: 15px;
		padding: 15px;
	}

	.link-favicon {
		width: 32px;
		height: 32px;
	}

	.chat-message {
		max-width: 95%;
	}
}
