/* =========================================================
   DMAY — Components CSS
   Header, nav, footer, buttons, cards, form elements
   ========================================================= */

/* =========================================================
   BUTTONS — Faz J variant sistemi
   ========================================================= */

.dmay-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	font-family: var(--dmay-font-body);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
}

/* Variant: primary / solid (sarı dolgu, siyah text) */
.dmay-btn--primary,
.dmay-btn--solid {
	background: var(--dmay-accent);
	border-color: var(--dmay-accent);
	color: #0a0a0a;
}

.dmay-btn--primary:hover,
.dmay-btn--solid:hover {
	background: #c8e000;
	border-color: #c8e000;
	color: #0a0a0a;
}

/* Variant: outline (içi boş, sarı border) */
.dmay-btn--outline {
	background: transparent;
	border-color: var(--dmay-accent);
	color: #ffffff;
}

.dmay-btn--outline:hover {
	background: var(--dmay-accent);
	color: #0a0a0a;
}

/* Variant: ghost (beyaz border, mevcut nav/menü tarzı) */
.dmay-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.3);
	color: #ffffff;
}

.dmay-btn--ghost:hover {
	border-color: #ffffff;
	color: #ffffff;
}

/* Variant: muted */
.dmay-btn--muted {
	background: var(--dmay-surface);
	color: var(--dmay-muted);
	border: 1px solid var(--dmay-border);
}

.dmay-btn--muted:hover {
	border-color: var(--dmay-fg);
	color: var(--dmay-fg);
}

/* =========================================================
   SKIP LINK (accessibility)
   ========================================================= */

.dmay-skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 9999;
	background: var(--dmay-accent);
	color: #0a0a0a;
	font-family: var(--dmay-font-display);
	font-size: 0.875rem;
	font-weight: 700;
	padding: 0.625rem 1.25rem;
	border-radius: 0 0 0.5rem 0.5rem;
	text-decoration: none;
	transition: top 0.15s;
}

.dmay-skip-link:focus {
	top: 0;
	outline: none;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.nav-links {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.625rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: var(--dmay-muted);
	text-decoration: none;
	border: 1px solid transparent;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.page-numbers:hover {
	color: var(--dmay-fg);
	border-color: var(--dmay-border);
}

.page-numbers.current {
	color: #0a0a0a;
	background: var(--dmay-accent);
	border-color: var(--dmay-accent);
	font-weight: 700;
}

.page-numbers.dots {
	border: none;
	cursor: default;
}

.page-numbers.next,
.page-numbers.prev {
	color: var(--dmay-fg);
	border-color: var(--dmay-border);
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0 1rem;
}

.page-numbers.next:hover,
.page-numbers.prev:hover {
	border-color: var(--dmay-accent);
	color: var(--dmay-accent);
}

/* =========================================================
   HEADER
   ========================================================= */

.dmay-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--dmay-z-header);
	transition: background var(--dmay-transition), backdrop-filter var(--dmay-transition), border-color var(--dmay-transition);
	border-bottom: 1px solid transparent;
}

.dmay-header.is-scrolled {
	background: rgba(10, 10, 10, 0.88);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom-color: var(--dmay-border);
}

.dmay-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	height: 68px;
}

/* Logo */
.dmay-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.dmay-header__logo img,
.dmay-header__logo-img {
	height: 32px;
	width: auto;
	display: block;
}

.dmay-header__logo-text {
	font-family: var(--dmay-font-display);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--dmay-fg);
	text-transform: uppercase;
}

.dmay-footer__logo-text {
	font-family: var(--dmay-font-display);
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--dmay-fg);
	text-transform: uppercase;
}

/* =========================================================
   PRIMARY NAV (pill container)
   ========================================================= */

.dmay-nav--pill {
	flex: 1;
	display: flex;
	justify-content: center;
}

.dmay-nav__list {
	display: flex;
	align-items: center;
	gap: 0;
	background: var(--dmay-surface);
	border: 1px solid var(--dmay-border);
	border-radius: var(--dmay-radius-pill);
	padding: 5px;
	list-style: none;
}

.dmay-nav__list .menu-item {
	display: flex;
}

.dmay-nav__list .menu-item a {
	display: flex;
	align-items: center;
	padding: 0.4rem 1rem;
	border-radius: var(--dmay-radius-pill);
	font-family: var(--dmay-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--dmay-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--dmay-transition), background var(--dmay-transition);
}

.dmay-nav__list .menu-item a:hover {
	color: var(--dmay-fg);
}

/* WP adds: current-menu-item, current_page_item, current-menu-ancestor,
   current-menu-parent, current_page_ancestor — cover all variants */
.dmay-nav__list .menu-item.current-menu-item > a,
.dmay-nav__list .menu-item.current_page_item > a,
.dmay-nav__list .menu-item.current-menu-ancestor > a,
.dmay-nav__list .menu-item.current-menu-parent > a,
.dmay-nav__list .menu-item.current_page_ancestor > a {
	color: var(--dmay-accent);
	background: var(--dmay-accent-soft);
}

/* =========================================================
   MENU BUTTON (right pill)
   ========================================================= */

.dmay-menu-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem 0.4rem 1.25rem;
	background: var(--dmay-surface);
	border: 1px solid var(--dmay-border);
	border-radius: var(--dmay-radius-pill);
	cursor: pointer;
	transition: border-color var(--dmay-transition), background var(--dmay-transition);
	flex-shrink: 0;
}

.dmay-menu-btn:hover {
	border-color: var(--dmay-muted);
}

.dmay-menu-btn[aria-expanded="true"] {
	background: var(--dmay-surface-2);
	border-color: var(--dmay-muted);
}

.dmay-menu-btn__label {
	font-family: var(--dmay-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--dmay-muted);
	transition: color var(--dmay-transition);
}

.dmay-menu-btn:hover .dmay-menu-btn__label,
.dmay-menu-btn[aria-expanded="true"] .dmay-menu-btn__label {
	color: var(--dmay-fg);
}

/* Hamburger icon */
.dmay-menu-btn__icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 18px;
}

.dmay-menu-btn__icon span {
	display: block;
	height: 1.5px;
	background: var(--dmay-muted);
	border-radius: 2px;
	transition: transform var(--dmay-transition), opacity var(--dmay-transition), background var(--dmay-transition);
	transform-origin: center;
}

.dmay-menu-btn:hover .dmay-menu-btn__icon span,
.dmay-menu-btn[aria-expanded="true"] .dmay-menu-btn__icon span {
	background: var(--dmay-fg);
}

.dmay-menu-btn[aria-expanded="true"] .dmay-menu-btn__icon span:first-child {
	transform: translateY(6.5px) rotate(45deg);
}

.dmay-menu-btn[aria-expanded="true"] .dmay-menu-btn__icon span:last-child {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* =========================================================
   FULLSCREEN NAV OVERLAY (mobile)
   ========================================================= */

.dmay-nav-overlay {
	position: fixed;
	inset: 0;
	z-index: calc(var(--dmay-z-header) - 1);
	background: var(--dmay-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dmay-nav-overlay.is-open {
	opacity: 1;
	pointer-events: all;
}

.dmay-nav-overlay__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: transparent;
	border: 1px solid var(--dmay-border);
	border-radius: 999px;
	padding: 0.45rem 1rem 0.45rem 0.75rem;
	color: var(--dmay-muted);
	font-family: var(--dmay-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color var(--dmay-transition), color var(--dmay-transition);
}

.dmay-nav-overlay__close:hover {
	border-color: var(--dmay-fg);
	color: var(--dmay-fg);
}

.dmay-nav-overlay__inner {
	text-align: center;
	padding: 2rem;
}

.dmay-nav-overlay__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	list-style: none;
}

.dmay-nav-overlay__list .menu-item a {
	display: inline-block;
	font-family: var(--dmay-font-display);
	font-size: clamp(2rem, 6vw, 3.5rem);
	font-weight: 700;
	color: var(--dmay-muted);
	text-decoration: none;
	line-height: 1.2;
	transition: color var(--dmay-transition);
}

.dmay-nav-overlay__list .menu-item a:hover,
.dmay-nav-overlay__list .menu-item.current-menu-item a {
	color: var(--dmay-accent);
}

/* =========================================================
   FOOTER
   ========================================================= */

.dmay-footer {
	background: var(--dmay-bg);
	padding-top: 3rem;
	margin-top: 0;
}

/* Rounded box wrapper */
.dmay-footer__box {
	background: var(--dmay-surface);
	border-radius: 24px;
	padding: 48px;
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 64px;
}

/* Brand column (LEFT) */
.dmay-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: flex-start;
}

.dmay-footer__logo {
	display: inline-flex;
	text-decoration: none;
}

.dmay-footer__logo img,
.dmay-footer__logo-img {
	height: 32px;
	width: auto;
	display: block;
}

.dmay-footer__tagline {
	font-family: var(--dmay-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--dmay-fg);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.dmay-footer__desc {
	font-size: 0.875rem;
	color: var(--dmay-muted);
	line-height: 1.6;
	max-width: none;
}

/* Email signup */
.dmay-footer__signup {
	margin-top: 0.25rem;
	width: 100%;
}

.dmay-footer__signup-field {
	display: flex;
	gap: 0.5rem;
}

.dmay-footer__signup-field input {
	flex: 1;
	background: #fff;
	color: #0a0a0a;
	border: none;
	outline: none;
	font-size: 0.875rem;
	border-radius: 999px;
	padding: 12px 20px;
	min-width: 0;
}

.dmay-footer__signup-field input::placeholder {
	color: #666;
}

.dmay-footer__signup-field .dmay-btn {
	background: var(--dmay-accent);
	color: #0a0a0a;
	border: none;
	border-radius: 999px;
	padding: 12px 24px;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	flex-shrink: 0;
}

.dmay-footer__signup-field .dmay-btn:hover {
	background: #d4ee00;
}

/* Nav column (RIGHT) */
.dmay-footer__nav {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-top: 0;
}

.dmay-footer__nav-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 1rem;
	padding: 0;
}

.dmay-footer__nav-heading {
	font-family: var(--dmay-font-display);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 0.25rem;
}

/* Yellow divider between TANI and KEŞFET */
.dmay-footer__nav-divider {
	height: 1px;
	background: var(--dmay-accent);
	width: 100%;
	margin: 1.25rem 0;
}

.dmay-footer__nav-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.625rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.dmay-footer__nav-list li a {
	display: inline-block;
	padding: 8px 20px;
	border: 1px solid var(--dmay-accent);
	border-radius: 999px;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.dmay-footer__nav-list li a:hover {
	background: var(--dmay-accent);
	color: #0a0a0a;
}

/* Bottom bar — outside the box */
.dmay-footer__bottom {
	margin-top: 0;
	padding: 0;
}

.dmay-footer__bottom .dmay-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
}

.dmay-footer__copy {
	font-size: 0.8125rem;
	color: var(--dmay-muted);
	max-width: none;
}

.dmay-footer__copy-brand {
	color: var(--dmay-accent);
	font-weight: 600;
}

.dmay-footer__legal {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.dmay-footer__legal a {
	font-size: 0.8125rem;
	color: var(--dmay-muted);
	text-decoration: none;
	transition: color var(--dmay-transition);
}

.dmay-footer__legal a:hover {
	color: var(--dmay-fg);
}

/* =========================================================
   PAGE OFFSET (for fixed header)
   ========================================================= */

.dmay-main {
	padding-top: 68px;
}

/* =========================================================
   CARDS — Generic
   ========================================================= */

.dmay-card {
	background: var(--dmay-surface);
	border: 1px solid var(--dmay-border);
	border-radius: var(--dmay-radius-lg);
	padding: 1.5rem;
	transition: border-color var(--dmay-transition), background var(--dmay-transition);
}

.dmay-card:hover {
	border-color: var(--dmay-muted);
	background: var(--dmay-surface-2);
}

/* =========================================================
   ARCHIVE HEADER
   ========================================================= */

.dmay-archive-header {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-bottom: 3rem;
}

/* =========================================================
   404 PAGE
   ========================================================= */

.dmay-404 {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	min-height: 60vh;
	justify-content: center;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1024px) {
	.dmay-footer__box {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

@media (max-width: 768px) {
	/* Hide pill nav on mobile */
	.dmay-nav--pill {
		display: none;
	}

	.dmay-header__inner {
		height: 60px;
	}

	.dmay-main {
		padding-top: 60px;
	}

	.dmay-footer__box {
		padding: 32px 24px;
		border-radius: 16px;
	}

	.dmay-footer__bottom .dmay-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}

@media (max-width: 480px) {
	.dmay-footer__signup-field {
		flex-direction: column;
		gap: 0.75rem;
	}

	.dmay-footer__signup-field input {
		width: 100%;
	}

	.dmay-footer__signup-field .dmay-btn {
		width: 100%;
		text-align: center;
	}
}

/* =========================================================
   FAZ J — Sarı zemin üzeri otomatik siyah metin (0.2)
   ========================================================= */

.has-dmay-accent-background-color,
[style*="background-color: #e4ff03"],
[style*="background:#e4ff03"],
.dmay-bg-accent {
  color: #0a0a0a !important;
}

.has-dmay-accent-background-color *,
[style*="background-color: #e4ff03"] *,
[style*="background:#e4ff03"] *,
.dmay-bg-accent * {
  color: #0a0a0a !important;
}

.has-dmay-accent-background-color a:hover,
.dmay-bg-accent a:hover {
  color: #0a0a0a !important;
  text-decoration: underline;
}

.dmay-card:hover,
.dmay-card-hover-fill:hover {
  background-color: #e4ff03 !important;
  color: #0a0a0a !important;
}

.dmay-card:hover *,
.dmay-card-hover-fill:hover * {
  color: #0a0a0a !important;
}

/* =========================================================
   FAZ J — Inline sarı vurgu format (0.5)
   ========================================================= */

.dmay-text-accent,
.has-dmay-accent-color {
  color: #e4ff03;
}

.dmay-text-white {
  color: #ffffff;
}

/* =========================================================
   FAZ J — Footer link stilleri (güncellendi Faz K-1)
   ========================================================= */

.dmay-footer-link {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--dmay-accent);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.dmay-footer-link:hover {
  background: var(--dmay-accent);
  color: #0a0a0a;
}
