/**
 * Modern Media Comments - Styles
 * Version: 1.9.0
 */

/* ============================================
   BASE
   ============================================ */
.mmc-comments-wrapper {
	margin: 1.5rem auto;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	max-width: 900px;
	padding: 0 1rem;
	box-sizing: border-box;
	line-height: 1.5;
}

.mmc-comments-wrapper *,
.mmc-comments-wrapper *::before,
.mmc-comments-wrapper *::after {
	box-sizing: border-box;
}

/* ============================================
   TABS
   ============================================ */
.mmc-tabs {
	display: flex;
	overflow-x: auto;
	gap: 0.5rem;
	margin-bottom: 1rem;
	-webkit-overflow-scrolling: touch;
}

.mmc-tab {
	flex: 0 0 auto;
	border: 1px solid #e5e7eb;
	background: #fff;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #374151;
	transition: all 0.15s ease;
	white-space: nowrap;
}

.mmc-tab:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.mmc-tab.is-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

/* ============================================
   TOP GALLERY
   ============================================ */
.mmc-top-gallery {
	margin-bottom: 1rem;
}

.mmc-gallery-strip {
	position: relative;
	overflow-x: auto;
}

.mmc-gallery-scroll-hint {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: linear-gradient(to right, transparent, #fff 50%);
	padding: 0.5rem;
	pointer-events: none;
}

.mmc-scroll-arrow {
	color: #9ca3af;
}

.mmc-gallery-track {
	display: flex;
	gap: 0.375rem;
}

/* ============================================
   GALLERY THUMB - BORDER YOK
   ============================================ */
.mmc-gallery-thumb {
	border: none !important;
	background: none;
	padding: 0;
	border-radius: 8px;
	overflow: hidden;
	width: 52px;
	height: 52px;
	cursor: pointer;
	flex-shrink: 0;
	outline: none;
}

.mmc-gallery-thumb:hover {
	opacity: 0.85;
	transform: scale(1.02);
}

.mmc-gallery-thumb:focus {
	box-shadow: 0 0 0 2px #3b82f6;
}

.mmc-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.mmc-no-photos,
.mmc-no-comments {
	color: #6b7280;
	font-size: 0.8125rem;
	padding: 1.25rem;
	text-align: center;
	background: #f9fafb;
	border-radius: 8px;
}

/* ============================================
   MODAL
   ============================================ */
.mmc-gallery-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 99999;
}

.mmc-gallery-modal.is-open {
	display: block;
}

.mmc-gallery-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.85);
}

.mmc-gallery-modal-inner {
	position: relative;
	margin: 2rem auto;
	max-width: 800px;
	width: calc(100% - 2rem);
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	z-index: 1;
	max-height: calc(100vh - 4rem);
	display: flex;
	flex-direction: column;
}

.mmc-modal-close {
	position: absolute;
	right: 0.5rem;
	top: 0.5rem;
	border: none;
	background: rgba(255,255,255,0.9);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 1.125rem;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mmc-modal-content {
	display: flex;
	flex-direction: column;
}

.mmc-modal-image {
	position: relative;
	background: #000;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mmc-modal-image img {
	max-width: 100%;
	max-height: 55vh;
	object-fit: contain;
}

.mmc-modal-prev,
.mmc-modal-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: rgba(255,255,255,0.9);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mmc-modal-prev { left: 0.5rem; }
.mmc-modal-next { right: 0.5rem; }

.mmc-modal-sidebar {
	padding: 0.875rem;
	font-size: 0.8125rem;
	border-top: 1px solid #e5e7eb;
}

.mmc-modal-author { font-weight: 600; color: #111827; }
.mmc-modal-date { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.375rem; }
.mmc-modal-text { color: #374151; }
.mmc-modal-likes { margin-top: 0.375rem; font-size: 0.75rem; color: #6b7280; }

@media (min-width: 768px) {
	.mmc-modal-content { flex-direction: row; }
	.mmc-modal-image { flex: 2; }
	.mmc-modal-sidebar { flex: 1; border-top: none; border-left: 1px solid #e5e7eb; max-width: 240px; }
}

/* ============================================
   COMMENT CARD - ANA YORUM
   ============================================ */
.mmc-comments-list {
	width: 100%;
}

.mmc-comment-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0.75rem;
	margin: 0.5rem 0;
	background: #fff;
}

/* ============================================
   YANITLAR - DEPTH BAZLI RENKLİ ÇİZGİ
   ============================================ */
.mmc-comment-reply {
	padding: 0.5rem 0.625rem;
	border-radius: 0;
	border: none;
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
}

/* Depth 2 - Mavi (ilk seviye yanıt) */
.mmc-comment-reply.mmc-depth-2 {
	margin-left: 0.75rem;
	width: calc(100% - 0.75rem);
	border-left: 3px solid #3b82f6;
	background: linear-gradient(to right, #eff6ff, transparent 30%);
}

/* Depth 3 - Mor (yanıtın yanıtı) */
.mmc-comment-reply.mmc-depth-3 {
	margin-left: 1.5rem;
	width: calc(100% - 1.5rem);
	border-left: 3px solid #8b5cf6;
	background: linear-gradient(to right, #f5f3ff, transparent 30%);
}

/* Depth 4 - Pembe */
.mmc-comment-reply.mmc-depth-4 {
	margin-left: 2.25rem;
	width: calc(100% - 2.25rem);
	border-left: 3px solid #ec4899;
	background: linear-gradient(to right, #fdf2f8, transparent 30%);
}

/* Depth 5+ - Turuncu */
.mmc-comment-reply.mmc-depth-5 {
	margin-left: 3rem;
	width: calc(100% - 3rem);
	border-left: 3px solid #f59e0b;
	background: linear-gradient(to right, #fffbeb, transparent 30%);
}

/* ============================================
   CARD INNER
   ============================================ */
.mmc-card-inner {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

/* ============================================
   HEADER
   ============================================ */
.mmc-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.mmc-meta {
	flex: 1;
	min-width: 0;
}

.mmc-author-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	line-height: 1.4;
}

.mmc-author {
	font-weight: 600;
	color: #111827;
}

.mmc-sep {
	color: #d1d5db;
	font-size: 0.75rem;
}

.mmc-date {
	color: #9ca3af;
	font-size: 0.8125rem;
}

/* @isim - kısaltılmış yanıt göstergesi */
.mmc-reply-to {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	color: #6b7280;
	font-size: 0.75rem;
	background: #f3f4f6;
	padding: 0.125rem 0.4rem;
	border-radius: 4px;
}

.mmc-reply-to svg {
	color: #9ca3af;
	flex-shrink: 0;
	width: 10px;
	height: 10px;
}

/* ============================================
   SKOR
   ============================================ */
.mmc-score {
	flex-shrink: 0;
	text-align: right;
}

.mmc-score-label {
	display: block;
	font-size: 0.5625rem;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1.2;
	margin-bottom: 0.125rem;
}

.mmc-score-value {
	font-weight: 700;
	font-size: 1rem;
	color: #111827;
	line-height: 1;
}

.mmc-comment-reply .mmc-score-label {
	font-size: 0.5rem;
}

.mmc-comment-reply .mmc-score-value {
	font-size: 0.8125rem;
	color: #6b7280;
}

/* ============================================
   BODY
   ============================================ */
.mmc-card-body .mmc-text {
	font-size: 0.875rem;
	color: #374151;
	line-height: 1.5;
}

.mmc-card-body .mmc-text p {
	margin: 0;
}

.mmc-comment-reply .mmc-text {
	font-size: 0.8125rem;
}

/* ============================================
   IMAGE GRID - BORDER YOK
   ============================================ */
.mmc-image-grid {
	display: flex;
	gap: 0.375rem;
	margin-top: 0.375rem;
}

.mmc-image-grid .mmc-gallery-thumb {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	position: relative;
}

.mmc-image-grid .mmc-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.mmc-image-more {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.6);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 0.8125rem;
	border-radius: 8px;
}

.mmc-image-grid-small .mmc-gallery-thumb {
	width: 48px;
	height: 48px;
}

/* ============================================
   FOOTER
   ============================================ */
.mmc-card-footer {
	margin-top: 0.375rem;
}

.mmc-actions {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

/* ============================================
   BUTONLAR
   ============================================ */
.mmc-comments-wrapper .mmc-actions .mmc-btn,
.mmc-comments-wrapper .mmc-actions .mmc-btn-like,
.mmc-comments-wrapper .mmc-actions .comment-reply-link,
.mmc-comments-wrapper .mmc-actions button.mmc-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.35rem !important;
	padding: 0.35rem 0.85rem !important;
	border-radius: 999px !important;
	border: 1px solid #d1d5db !important;
	background: #fff !important;
	color: #6b7280 !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	font-family: inherit !important;
	cursor: pointer !important;
	transition: all 0.15s ease !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	outline: none !important;
}

.mmc-comments-wrapper .mmc-actions .mmc-btn:hover,
.mmc-comments-wrapper .mmc-actions .mmc-btn-like:hover,
.mmc-comments-wrapper .mmc-actions .comment-reply-link:hover {
	background: #f9fafb !important;
	border-color: #9ca3af !important;
	color: #374151 !important;
}

.mmc-comments-wrapper .mmc-actions .mmc-btn.is-liked,
.mmc-comments-wrapper .mmc-actions .mmc-btn-like.is-liked {
	background: #eff6ff !important;
	border-color: #93c5fd !important;
	color: #2563eb !important;
}

.mmc-comments-wrapper .mmc-actions .mmc-btn.is-liked:hover,
.mmc-comments-wrapper .mmc-actions .mmc-btn-like.is-liked:hover {
	background: #dbeafe !important;
	border-color: #60a5fa !important;
}

.mmc-comments-wrapper .mmc-actions .mmc-btn.is-liked svg,
.mmc-comments-wrapper .mmc-actions .mmc-btn-like.is-liked svg {
	fill: currentColor !important;
}

.mmc-btn-icon {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

.mmc-btn-text {
	white-space: nowrap;
}

.mmc-btn-count {
	font-weight: 600;
}

.mmc-btn.is-loading {
	opacity: 0.5 !important;
	pointer-events: none !important;
}

/* Yanıtlarda küçük buton */
.mmc-comment-reply .mmc-actions .mmc-btn,
.mmc-comment-reply .mmc-actions .comment-reply-link {
	padding: 0.25rem 0.6rem !important;
	font-size: 0.75rem !important;
}

.mmc-comment-reply .mmc-btn-icon {
	width: 12px;
	height: 12px;
}

/* ============================================
   CHILDREN
   ============================================ */
.mmc-comment-card .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ============================================
   FORM
   ============================================ */
.mmc-upload-wrapper {
	margin-top: 0.625rem;
}

.mmc-upload-row {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	flex-wrap: wrap;
}

.mmc-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	border: 1px dashed #d1d5db;
	background: #fff;
	font-size: 0.75rem;
	color: #374151;
	cursor: pointer;
}

.mmc-upload-btn:hover {
	border-color: #3b82f6;
	background: #f9fafb;
}

.mmc-upload-btn input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

.mmc-upload-hint {
	font-size: 0.6875rem;
	color: #9ca3af;
}

.mmc-upload-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-top: 0.375rem;
}

.mmc-preview-item {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	background: #f3f4f6;
}

.mmc-preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mmc-preview-item.uploading::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.7);
}

.mmc-preview-item.uploading::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid #3b82f6;
	border-top-color: transparent;
	border-radius: 50%;
	animation: mmc-spin 0.6s linear infinite;
	z-index: 1;
}

@keyframes mmc-spin {
	to { transform: rotate(360deg); }
}

.mmc-preview-item .mmc-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	border: none;
	background: rgba(0,0,0,0.6);
	color: #fff;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	font-size: 0.625rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mmc-preview-item .mmc-remove:hover {
	background: #ef4444;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.mmc-field-group {
	margin-bottom: 0.5rem;
}

.comment-form-author,
.comment-form-email {
	width: 100%;
}

@media (min-width: 640px) {
	.comment-form-author,
	.comment-form-email {
		display: inline-block;
		width: 49%;
		vertical-align: top;
	}
	.comment-form-author {
		margin-right: 1%;
	}
}

.mmc-field-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.2rem;
}

.mmc-field-label .required {
	color: #ef4444;
}

.mmc-input,
.mmc-textarea {
	width: 100%;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	padding: 0.45rem 0.65rem;
	font-size: 0.8125rem;
	font-family: inherit;
	background: #fff;
}

.mmc-textarea {
	resize: vertical;
	min-height: 70px;
}

.mmc-input:focus,
.mmc-textarea:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59,130,246,0.1);
}

/* ============================================
   SUBMIT
   ============================================ */
.mmc-submit-btn {
	display: inline-flex;
	align-items: center;
	border: none;
	border-radius: 8px;
	padding: 0.45rem 1rem;
	background: #111827;
	color: #fff;
	font-weight: 600;
	font-size: 0.8125rem;
	cursor: pointer;
	margin-top: 0.625rem;
	font-family: inherit;
}

.mmc-submit-btn:hover {
	background: #1f2937;
}

/* ============================================
   COMMENT FORM
   ============================================ */
.mmc-comment-form {
	margin-top: 1.25rem;
	padding-top: 0.875rem;
	border-top: 1px solid #e5e7eb;
}

.mmc-comment-title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #111827;
	margin: 0 0 0.625rem;
}

/* ============================================
   LOADING
   ============================================ */
.mmc-comments-list.mmc-loading {
	opacity: 0.5;
	pointer-events: none;
	min-height: 60px;
	position: relative;
}

.mmc-comments-list.mmc-loading::after {
	content: '';
	position: absolute;
	top: 1rem;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border: 2px solid #e5e7eb;
	border-top-color: #3b82f6;
	border-radius: 50%;
	animation: mmc-spin 0.6s linear infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
	.mmc-comments-wrapper {
		padding: 0 0.625rem;
	}

	.mmc-comment-card {
		padding: 0.625rem;
	}

	/* Mobilde daha az girinti */
	.mmc-comment-reply.mmc-depth-2 {
		margin-left: 0.5rem;
		width: calc(100% - 0.5rem);
	}

	.mmc-comment-reply.mmc-depth-3 {
		margin-left: 1rem;
		width: calc(100% - 1rem);
	}

	.mmc-comment-reply.mmc-depth-4 {
		margin-left: 1.5rem;
		width: calc(100% - 1.5rem);
	}

	.mmc-comment-reply.mmc-depth-5 {
		margin-left: 2rem;
		width: calc(100% - 2rem);
	}

	.mmc-image-grid .mmc-gallery-thumb {
		width: 52px;
		height: 52px;
	}

	.mmc-author-line {
		font-size: 0.75rem;
	}

	.mmc-score-label {
		font-size: 0.5rem;
	}

	.mmc-score-value {
		font-size: 0.875rem;
	}
}

/* ============================================
   PRINT
   ============================================ */
@media print {
	.mmc-tabs,
	.mmc-top-gallery,
	.mmc-upload-wrapper,
	.mmc-actions,
	.mmc-gallery-modal {
		display: none !important;
	}
}