/**
 * SMS Reklam - Admin & mobil uyumlu gönderim merkezi stilleri.
 *
 * Saf esnek CSS (Bootstrap'a bağımlılık yok). Büyük dokunmatik butonlar
 * ve mobil-öncelikli (mobile-first) yerleşim.
 *
 * @package SmsReklam
 */

.smsreklam-wrap {
	max-width: 980px;
}

/* ----------------------------------------------------------------------
 * Uygulama kabuğu (Kampanya Oluştur ekranı)
 * ------------------------------------------------------------------- */
.smsreklam-app {
	--sr-blue: #2271b1;
	--sr-green: #00a32a;
	--sr-border: #e2e4e7;
	--sr-radius: 14px;
}

.smsreklam-app * {
	box-sizing: border-box;
}

/* Üst başlık şeridi */
.smsreklam-hero {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 16px 0 20px;
	padding: 22px 24px;
	background: linear-gradient( 120deg, #2271b1, #135e96 );
	border-radius: var( --sr-radius );
	color: #fff;
	box-shadow: 0 6px 18px rgba( 19, 94, 150, 0.25 );
}

/* Gönderim merkezi için yeşil hero varyantı */
.smsreklam-hero-send {
	background: linear-gradient( 120deg, #00a32a, #007a1f );
	box-shadow: 0 6px 18px rgba( 0, 122, 31, 0.25 );
}

/* Mobil bağlantı için mor hero varyantı */
.smsreklam-hero-connect {
	background: linear-gradient( 120deg, #6f42c1, #4b277f );
	box-shadow: 0 6px 18px rgba( 75, 39, 127, 0.25 );
}

.smsreklam-app input[readonly] {
	background: #f6f7f7;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	cursor: pointer;
}

.smsreklam-steps {
	margin: 0;
	padding-left: 20px;
	line-height: 1.9;
	color: #1d2327;
}

/* iPhone Kısayolu kartı */
.smsreklam-shortcut {
	margin-top: 18px;
	border: 2px solid #00a32a;
}

.smsreklam-details {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var( --sr-border );
}

.smsreklam-details summary {
	cursor: pointer;
	font-weight: 600;
	color: #2271b1;
	padding: 6px 0;
}

/* ----------------------------------------------------------------------
 * Ön yüz (kısa kod) kabuğu
 * ------------------------------------------------------------------- */
.smsreklam-front {
	max-width: 980px;
	margin: 0 auto;
	padding: 10px;
}

.smsreklam-front .smsreklam-hero-text h1 {
	font-size: 22px;
}

/* Giriş kartı dar ve ortalanmış */
.smsreklam-login-card {
	max-width: 420px;
	margin: 40px auto;
	padding: 28px 26px;
	box-shadow: 0 10px 30px rgba( 0, 0, 0, 0.08 );
}

.smsreklam-login-card .smsreklam-card-head {
	justify-content: center;
	text-align: center;
}

.smsreklam-login-card .smsreklam-card-head .dashicons {
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.smsreklam-login-card .smsreklam-card-head h2 {
	flex: 0 1 auto;
	font-size: 19px;
}

.smsreklam-login-card .smsreklam-btn-primary {
	width: 100%;
	min-width: 0;
	margin-top: 4px;
}

/* "Beni hatırla" satırı */
.smsreklam-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 16px;
	font-size: 14px;
	color: #50575e;
	cursor: pointer;
	user-select: none;
}

.smsreklam-remember input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
}

/* Mobil: tam ekranda rahat dursun */
@media screen and ( max-width: 600px ) {
	.smsreklam-front {
		padding: 8px;
	}

	.smsreklam-login-card {
		max-width: 100%;
		margin: 16px auto;
		padding: 22px 18px;
	}
}


.smsreklam-hero-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	background: rgba( 255, 255, 255, 0.18 );
	border-radius: 14px;
}

.smsreklam-hero-icon .dashicons {
	font-size: 30px;
	width: 30px;
	height: 30px;
}

.smsreklam-hero-text {
	flex: 1;
	min-width: 0;
}

.smsreklam-hero-text h1 {
	margin: 0;
	padding: 0;
	font-size: 22px;
	color: #fff;
}

.smsreklam-hero-text p {
	margin: 4px 0 0;
	font-size: 14px;
	color: rgba( 255, 255, 255, 0.85 );
}

.smsreklam-hero-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 10px 16px;
	background: rgba( 255, 255, 255, 0.15 );
	border: 1px solid rgba( 255, 255, 255, 0.4 );
	border-radius: 10px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.smsreklam-hero-link:hover {
	background: rgba( 255, 255, 255, 0.28 );
	color: #fff;
}

/* Kendi bildirimlerimiz */
.smsreklam-notice {
	margin: 0 0 18px;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	border-left: 4px solid #c3c4c7;
	background: #fff;
}

.smsreklam-notice-success {
	border-left-color: var( --sr-green );
	background: #edfaef;
	color: #0a6b22;
}

.smsreklam-notice-error {
	border-left-color: #d63638;
	background: #fcf0f1;
	color: #a00d11;
}

.smsreklam-notice-warning {
	border-left-color: #dba617;
	background: #fcf9e8;
	color: #8a6d1a;
}

/* İki sütunlu yerleşim */
.smsreklam-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.smsreklam-grid .smsreklam-actions {
	grid-column: 1 / -1;
}

/* Form kartları */
.smsreklam-card {
	background: #fff;
	border: 1px solid var( --sr-border );
	border-radius: var( --sr-radius );
	padding: 20px 22px;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.03 );
}

.smsreklam-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var( --sr-border );
}

.smsreklam-card-head .dashicons {
	color: var( --sr-blue );
	font-size: 22px;
	width: 22px;
	height: 22px;
}

.smsreklam-card-head h2 {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	flex: 1;
}

/* Form alanları */
.smsreklam-field {
	margin-bottom: 18px;
}

.smsreklam-field:last-child {
	margin-bottom: 0;
}

.smsreklam-field label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.smsreklam-field input[type="text"],
.smsreklam-field input[type="password"],
.smsreklam-field input[type="email"],
.smsreklam-field input[type="tel"],
.smsreklam-field input[type="number"],
.smsreklam-field textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #c3c4c7;
	border-radius: 10px;
	font-size: 16px; /* 16px: iOS'ta odaklanınca zoom yapmasın */
	line-height: 1.5;
	color: #1d2327;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.smsreklam-field input[type="text"]:focus,
.smsreklam-field input[type="password"]:focus,
.smsreklam-field input[type="email"]:focus,
.smsreklam-field input[type="tel"]:focus,
.smsreklam-field input[type="number"]:focus,
.smsreklam-field textarea:focus {
	outline: none;
	border-color: var( --sr-blue );
	box-shadow: 0 0 0 3px rgba( 34, 113, 177, 0.15 );
}

.smsreklam-field textarea {
	resize: vertical;
	min-height: 110px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.smsreklam-help {
	margin: 7px 0 0;
	font-size: 12.5px;
	color: #787c82;
	line-height: 1.5;
}

/* Sayaç rozetleri */
.smsreklam-counter {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
	background: #f0f0f1;
	border-radius: 999px;
	padding: 3px 10px;
}

.smsreklam-counter.is-warning {
	color: #8a6d1a;
	background: #fcf3d6;
}

.smsreklam-pill {
	min-width: 28px;
	text-align: center;
	background: var( --sr-blue );
	color: #fff;
	border-radius: 999px;
	padding: 3px 11px;
	font-size: 13px;
	font-weight: 700;
}

/* Alt aksiyon çubuğu */
.smsreklam-actions {
	display: flex;
	justify-content: flex-end;
}

.smsreklam-btn-primary {
	width: auto;
	min-width: 240px;
	min-height: 52px;
	gap: 8px;
	background: var( --sr-green );
	color: #fff;
	box-shadow: 0 4px 12px rgba( 0, 163, 42, 0.25 );
}

.smsreklam-btn-primary:hover {
	background: #008a20;
	color: #fff;
}

.smsreklam-btn-primary .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

/* Kampanya özeti tablosu */
.smsreklam-app h2.smsreklam-section-title {
	margin: 28px 0 12px;
	font-size: 16px;
}

.smsreklam-app .widefat {
	border-radius: var( --sr-radius );
	overflow: hidden;
	border: 1px solid var( --sr-border );
}

/* Mobilde tek sütuna düş */
@media screen and ( max-width: 880px ) {
	.smsreklam-grid {
		grid-template-columns: 1fr;
	}

	.smsreklam-hero {
		flex-wrap: wrap;
	}

	.smsreklam-actions {
		justify-content: stretch;
	}

	.smsreklam-btn-primary {
		width: 100%;
	}
}

.smsreklam-hint,
.smsreklam-wrap .description {
	color: #50575e;
	font-size: 14px;
	line-height: 1.5;
}

/* ----------------------------------------------------------------------
 * Genel buton tabanı (büyük, dokunmatik dostu)
 * ------------------------------------------------------------------- */
.smsreklam-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	padding: 14px 20px;
	margin: 6px 0;
	border: none;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 0.05s ease, opacity 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.smsreklam-btn:active {
	transform: scale( 0.98 );
}

.smsreklam-btn-start {
	background: #2271b1;
	color: #fff;
}

.smsreklam-btn-sms {
	background: #00a32a;
	color: #fff;
}

.smsreklam-btn-next {
	background: #d63638;
	color: #fff;
	font-size: 20px;
	min-height: 64px;
	letter-spacing: 0.5px;
}

.smsreklam-btn-stop {
	background: #646970;
	color: #fff;
	width: auto;
	min-height: 40px;
	padding: 8px 16px;
	font-size: 14px;
	margin: 0;
}

/* ----------------------------------------------------------------------
 * Kampanya kartları (gönderim merkezi)
 * ------------------------------------------------------------------- */
.smsreklam-campaign-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}

.smsreklam-campaign-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 1px 2px rgba( 0, 0, 0, 0.04 );
}

.smsreklam-campaign-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	gap: 10px;
}

.smsreklam-campaign-name {
	font-size: 17px;
	font-weight: 600;
	color: #1d2327;
	word-break: break-word;
}

.smsreklam-campaign-count {
	flex-shrink: 0;
	background: #f0f6fc;
	color: #2271b1;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 600;
}

.smsreklam-empty {
	margin-top: 16px;
	padding: 24px;
	text-align: center;
	background: #fff;
	border: 1px dashed #c3c4c7;
	border-radius: 12px;
	color: #646970;
}

/* ----------------------------------------------------------------------
 * Çalışma alanı (runner)
 * ------------------------------------------------------------------- */
.smsreklam-runner {
	margin-top: 24px;
	padding: 18px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
}

.smsreklam-runner-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	gap: 10px;
}

#smsreklam-runner-title {
	font-size: 18px;
	font-weight: 700;
	color: #1d2327;
}

.smsreklam-progress {
	width: 100%;
	height: 12px;
	background: #f0f0f1;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px;
}

.smsreklam-progress-bar {
	height: 100%;
	width: 0;
	background: linear-gradient( 90deg, #2271b1, #00a32a );
	transition: width 0.3s ease;
}

.smsreklam-status {
	font-size: 14px;
	color: #50575e;
	min-height: 20px;
	margin-bottom: 12px;
}

.smsreklam-current {
	text-align: center;
	padding: 16px;
	background: #f6f7f7;
	border-radius: 10px;
	margin-bottom: 14px;
}

.smsreklam-current-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #787c82;
}

.smsreklam-current-phone {
	font-size: 26px;
	font-weight: 700;
	color: #1d2327;
	margin-top: 4px;
	word-break: break-all;
}

.smsreklam-done {
	margin-top: 12px;
	padding: 16px;
	text-align: center;
	background: #edfaef;
	border: 1px solid #00a32a;
	border-radius: 10px;
	color: #007a1f;
	font-weight: 600;
}

/* ----------------------------------------------------------------------
 * Mobil ince ayar
 * ------------------------------------------------------------------- */
@media screen and ( max-width: 782px ) {
	.smsreklam-wrap {
		max-width: 100%;
	}

	.smsreklam-current-phone {
		font-size: 30px;
	}

	.smsreklam-btn {
		font-size: 19px;
	}
}
