/* ═══════════════════════════════════════════════════════
   OTOGALERIO CORE — ARTICLES (SEO Marquee) WIDGET
   Düşük dikkat çeken, kompakt yazı listeleyici.
   4 layout: marquee · ticker · compact list · mini grid
   ═══════════════════════════════════════════════════════ */

.ogc-art {
	--art-primary:    #1a3f92;
	--art-accent:     #e10c14;
	--art-accent-2:   #ff5252;
	--art-text:       #1e293b;
	--art-muted:      #64748b;
	--art-bg:         #f8fafc;
	--art-card-bg:    #ffffff;
	--art-border:     #e2e8f0;
	--art-radius:     14px;
	--art-radius-pill: 999px;

	--art-speed:      90s;
	--art-cols:       5;

	position: relative;
	padding: 44px 24px;
	background: var(--art-bg);
	color: var(--art-text);
	font-family: inherit;
	overflow: hidden;
}

.ogc-art__container {
	max-width: 1320px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

/* ─── HEADER (kompakt, az dikkat çeken) ─── */
.ogc-art__header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 28px;
}
.ogc-art__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	color: var(--art-accent);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}
.ogc-art__eyebrow::before,
.ogc-art__eyebrow::after {
	content: '';
	display: inline-block;
	width: 18px;
	height: 2px;
	background: var(--art-accent);
	border-radius: 1px;
	opacity: 0.7;
}
.ogc-art__title {
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--art-primary);
	margin: 0 0 6px;
}
.ogc-art__title em {
	font-style: normal;
	background: linear-gradient(135deg, var(--art-accent) 0%, var(--art-accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.ogc-art__subtitle {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--art-muted);
	margin: 0;
}

/* ═══════════════════════════════════════════
   LAYOUT 1 — MARQUEE (default, kayan chip'ler)
   ═══════════════════════════════════════════ */
.ogc-art__marquee,
.ogc-art__ticker {
	position: relative;
	width: 100%;
	overflow: hidden;
	mask-image: none;
	-webkit-mask-image: none;
}
.ogc-art--fade .ogc-art__marquee,
.ogc-art--fade .ogc-art__ticker {
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
	        mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.ogc-art__track {
	display: flex;
	width: max-content;
	animation: ogc-art-scroll var(--art-speed) linear infinite;
	will-change: transform;
}
.ogc-art--reverse .ogc-art__track {
	animation-direction: reverse;
}
.ogc-art--pause-hover .ogc-art__marquee:hover .ogc-art__track,
.ogc-art--pause-hover .ogc-art__ticker:hover .ogc-art__track,
.ogc-art--pause-hover .ogc-art__track:focus-within {
	animation-play-state: paused;
}

.ogc-art__set {
	display: flex;
	gap: 12px;
	padding-right: 12px;
	flex-shrink: 0;
}

@keyframes ogc-art-scroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* CHIP — pill shape with thumb + title */
.ogc-art__chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 6px;
	background: var(--art-card-bg);
	border: 1px solid var(--art-border);
	border-radius: var(--art-radius-pill);
	color: var(--art-text);
	text-decoration: none;
	max-width: 280px;
	transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.ogc-art__chip:hover {
	border-color: var(--art-accent);
	background: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px -8px rgba(15, 23, 41, 0.15);
}
.ogc-art__chip:focus-visible {
	outline: 2px solid var(--art-accent);
	outline-offset: 2px;
}

.ogc-art__chip-thumb {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--art-bg);
}
.ogc-art__chip-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ogc-art__chip-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.ogc-art__chip-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--art-primary);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}
.ogc-art__chip:hover .ogc-art__chip-title {
	color: var(--art-accent);
}
.ogc-art__chip-date {
	font-size: 10.5px;
	color: var(--art-muted);
	font-weight: 500;
	margin-top: 1px;
}

/* ═══════════════════════════════════════════
   LAYOUT 2 — TICKER (text-only haber şeridi)
   ═══════════════════════════════════════════ */
.ogc-art--ticker {
	padding: 18px 24px;
}
.ogc-art--ticker .ogc-art__header {
	margin-bottom: 14px;
}
.ogc-art__ticker .ogc-art__set {
	gap: 32px;
	padding-right: 32px;
	align-items: center;
}
.ogc-art__tick-item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--art-text);
	text-decoration: none;
	font-size: 13.5px;
	line-height: 1.4;
	white-space: nowrap;
	transition: color .25s;
}
.ogc-art__tick-item:hover {
	color: var(--art-accent);
}
.ogc-art__tick-item:focus-visible {
	outline: 2px solid var(--art-accent);
	outline-offset: 3px;
	border-radius: 4px;
}
.ogc-art__tick-title {
	font-weight: 500;
}
.ogc-art__tick-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--art-accent);
	opacity: 0.7;
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   LAYOUT 3 — COMPACT LIST (2 kolon)
   ═══════════════════════════════════════════ */
.ogc-art__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--art-cols, 2), 1fr);
	gap: 8px;
}
.ogc-art__list-item { margin: 0; }

.ogc-art__list-link {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 10px 14px 10px 10px;
	background: var(--art-card-bg);
	border: 1px solid var(--art-border);
	border-radius: var(--art-radius);
	color: var(--art-text);
	text-decoration: none;
	transition: border-color .25s, transform .25s, box-shadow .25s;
}
.ogc-art__list-link:hover {
	border-color: var(--art-accent);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px -8px rgba(15, 23, 41, 0.18);
}
.ogc-art__list-link:focus-visible {
	outline: 2px solid var(--art-accent);
	outline-offset: 2px;
}

.ogc-art__list-thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--art-bg);
	flex-shrink: 0;
}
.ogc-art__list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ogc-art__list-content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.ogc-art__list-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--art-primary);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s;
}
.ogc-art__list-link:hover .ogc-art__list-title {
	color: var(--art-accent);
}
.ogc-art__list-meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 11px;
	color: var(--art-muted);
	font-weight: 500;
}
.ogc-art__list-cat {
	background: rgba(225,12,20, 0.10);
	color: var(--art-accent);
	padding: 1px 8px;
	border-radius: 999px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.ogc-art__list-arrow {
	display: inline-flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
	color: var(--art-muted);
	border-radius: 50%;
	background: transparent;
	transition: background .2s, color .2s, transform .2s;
	flex-shrink: 0;
}
.ogc-art__list-arrow svg {
	width: 14px; height: 14px;
}
.ogc-art__list-link:hover .ogc-art__list-arrow {
	background: var(--art-accent);
	color: #fff;
	transform: translateX(2px);
}

/* ═══════════════════════════════════════════
   LAYOUT 4 — MINI GRID (kart)
   ═══════════════════════════════════════════ */
.ogc-art__grid {
	display: grid;
	grid-template-columns: repeat(var(--art-cols, 5), 1fr);
	gap: 14px;
}
.ogc-art__mini {
	display: flex;
	flex-direction: column;
	background: var(--art-card-bg);
	border: 1px solid var(--art-border);
	border-radius: var(--art-radius);
	overflow: hidden;
	color: var(--art-text);
	text-decoration: none;
	transition: border-color .25s, transform .25s, box-shadow .25s;
}
.ogc-art__mini:hover {
	border-color: var(--art-accent);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -10px rgba(15, 23, 41, 0.2);
}
.ogc-art__mini:focus-visible {
	outline: 2px solid var(--art-accent);
	outline-offset: 2px;
}

.ogc-art__mini-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: var(--art-bg);
	overflow: hidden;
}
.ogc-art__mini-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .45s ease;
}
.ogc-art__mini:hover .ogc-art__mini-thumb img {
	transform: scale(1.05);
}
.ogc-art__mini-cat {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--art-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ogc-art__mini-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px 12px 12px;
	flex: 1;
}
.ogc-art__mini-title {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--art-primary);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s;
}
.ogc-art__mini:hover .ogc-art__mini-title {
	color: var(--art-accent);
}
.ogc-art__mini-date {
	font-size: 10.5px;
	color: var(--art-muted);
	font-weight: 500;
	margin-top: auto;
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY — reduced motion
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	.ogc-art__track {
		animation: none !important;
	}
	.ogc-art__set:nth-child(2) {
		display: none;
	}
	.ogc-art__marquee,
	.ogc-art__ticker {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.ogc-art__chip,
	.ogc-art__mini,
	.ogc-art__list-link {
		transition: none;
	}
	.ogc-art__chip:hover,
	.ogc-art__mini:hover,
	.ogc-art__list-link:hover {
		transform: none;
	}
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
	.ogc-art {
		padding: 32px 20px;
	}
	.ogc-art__header {
		margin-bottom: 22px;
	}
	.ogc-art__chip {
		max-width: 240px;
	}
	.ogc-art__chip-title {
		max-width: 170px;
	}
}

@media (max-width: 720px) {
	.ogc-art {
		padding: 24px 16px;
	}
	.ogc-art__header {
		margin-bottom: 18px;
	}
	.ogc-art__title {
		font-size: 19px;
	}
	.ogc-art__subtitle {
		font-size: 13px;
	}

	/* Marquee mobil */
	.ogc-art__set { gap: 8px; padding-right: 8px; }
	.ogc-art__chip {
		gap: 8px;
		padding: 5px 14px 5px 5px;
		max-width: 220px;
	}
	.ogc-art__chip-thumb {
		width: 28px;
		height: 28px;
	}
	.ogc-art__chip-title {
		font-size: 12.5px;
		max-width: 160px;
	}
	.ogc-art__chip-date {
		font-size: 10px;
	}

	/* Ticker mobil */
	.ogc-art--ticker { padding: 14px 16px; }
	.ogc-art__ticker .ogc-art__set { gap: 24px; padding-right: 24px; }
	.ogc-art__tick-item { font-size: 12.5px; }

	/* List mobil — tek kolon */
	.ogc-art__list {
		grid-template-columns: 1fr !important;
		gap: 6px;
	}
	.ogc-art__list-link {
		padding: 9px 12px 9px 9px;
		gap: 11px;
	}
	.ogc-art__list-thumb {
		width: 48px;
		height: 48px;
	}
	.ogc-art__list-title {
		font-size: 13.5px;
	}

	/* Mini grid mobil — 2 kolon */
	.ogc-art__grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px;
	}
	.ogc-art__mini-body {
		padding: 8px 10px 10px;
	}
	.ogc-art__mini-title {
		font-size: 12px;
	}
}

@media (max-width: 420px) {
	.ogc-art {
		padding: 20px 12px;
	}
	.ogc-art__title {
		font-size: 17px;
	}

	.ogc-art__chip {
		max-width: 200px;
	}
	.ogc-art__chip-title {
		max-width: 140px;
	}

	.ogc-art__list-thumb {
		width: 44px;
		height: 44px;
	}
	.ogc-art__list-title {
		font-size: 13px;
		-webkit-line-clamp: 2;
	}
	.ogc-art__list-arrow {
		display: none;
	}

	.ogc-art__mini-cat {
		font-size: 9px;
		padding: 2px 6px;
	}
}
