/* Affiliet Dashboard */
.affiliet-dashboard {
	max-width: 960px;
	margin: 0 auto 2em;
}

.affiliet-title {
	margin-bottom: 1.25em;
	font-size: 1.5em;
}

.affiliet-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 1em;
	margin-bottom: 2em;
}

.affiliet-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1em;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}

.affiliet-card-label {
	font-size: 0.85em;
	color: #666;
}

.affiliet-card-value {
	font-size: 1.35em;
	font-weight: 600;
	color: #1e1e1e;
}

.affiliet-card small {
	font-size: 0.75em;
	color: #888;
}

.affiliet-card-highlight .affiliet-card-value {
	color: #0a6e39;
}

.affiliet-redeem-box {
	margin-bottom: 2em;
}

.affiliet-redeem-box h3 {
	margin-top: 0;
	margin-bottom: 0.5em;
}

.affiliet-redeem-desc {
	margin: 0.5em 0;
	color: #555;
	font-size: 0.95em;
}

.affiliet-redeem-min {
	margin: 0.5em 0;
	color: #666;
}

.affiliet-redeem-result {
	margin-top: 0.75em;
	min-height: 1.5em;
}

.affiliet-chart-wrap {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.25em;
	margin-bottom: 2em;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.affiliet-chart-wrap h3,
.affiliet-links-section h3 {
	margin-top: 0;
	margin-bottom: 1em;
	font-size: 1.15em;
}

.affiliet-chart-tabs {
	margin-bottom: 1em;
}

.affiliet-chart-tab {
	padding: 0.4em 0.9em;
	margin-right: 0.5em;
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9em;
}

.affiliet-chart-tab.active {
	background: #1e1e1e;
	color: #fff;
	border-color: #1e1e1e;
}

.affiliet-chart {
	height: 200px;
	display: flex;
	align-items: flex-end;
	gap: 4px;
	padding: 10px 0;
}

.affiliet-chart-bar {
	flex: 1;
	min-width: 4px;
	background: #2c3e50;
	border-radius: 3px 3px 0 0;
	transition: height 0.2s ease;
}

.affiliet-chart-bar.earnings {
	background: #0a6e39;
}

.affiliet-links-section {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.25em;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.affiliet-link-box {
	margin-bottom: 1.5em;
}

.affiliet-link-box:last-child {
	margin-bottom: 0;
}

.affiliet-link-box label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 500;
	font-size: 0.95em;
}

/* Ürün arama kutusu ve sonuç dropdown */
.affiliet-product-link-box .affiliet-product-link-row {
	margin-top: 0.75em;
}

.affiliet-product-search-wrap {
	position: relative;
	max-width: 100%;
}

.affiliet-product-search {
	width: 100%;
	max-width: 400px;
}

.affiliet-product-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-width: 400px;
	max-height: 280px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,.1);
	z-index: 100;
	display: none;
}

.affiliet-product-results.is-open {
	display: block;
}

.affiliet-product-results .affiliet-product-result-item {
	display: block;
	width: 100%;
	padding: 0.6em 0.75em;
	text-align: left;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 0.9em;
	color: #1e1e1e;
	border-bottom: 1px solid #eee;
	transition: background 0.15s;
}

.affiliet-product-results .affiliet-product-result-item:last-child {
	border-bottom: none;
}

.affiliet-product-results .affiliet-product-result-item:hover,
.affiliet-product-results .affiliet-product-result-item:focus {
	background: #f0f0f0;
	outline: none;
}

.affiliet-product-results .affiliet-product-result-item small {
	display: block;
	color: #666;
	font-size: 0.85em;
	margin-top: 0.15em;
}

.affiliet-product-results .affiliet-product-result-empty {
	padding: 0.75em;
	color: #666;
	font-size: 0.9em;
}

.affiliet-input-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: center;
}

.affiliet-input-group .affiliet-input,
.affiliet-input-group .affiliet-select {
	flex: 1;
	min-width: 200px;
	padding: 0.5em 0.75em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95em;
}

.affiliet-input-group-sm .affiliet-input {
	min-width: 150px;
	font-size: 0.85em;
}

.affiliet-btn {
	padding: 0.5em 1em;
	background: #1e1e1e;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9em;
	white-space: nowrap;
}

.affiliet-btn:hover {
	background: #333;
}

.affiliet-btn-copy.copied {
	background: #0a6e39;
}

.affiliet-banners {
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px solid #eee;
}

.affiliet-banners h4 {
	margin-bottom: 1em;
	font-size: 1em;
}

.affiliet-banner-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1em;
}

.affiliet-banner-item {
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 0.75em;
	text-align: center;
}

.affiliet-banner-item img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 0.5em;
	border-radius: 4px;
}

.affiliet-banner-title {
	display: block;
	font-size: 0.85em;
	margin-bottom: 0.5em;
}

.affiliet-banner-item .affiliet-input-group {
	justify-content: center;
}

/* Başvuru / onay bekliyor / pasif ekranları */
.affiliet-apply-desc,
.affiliet-pending-msg,
.affiliet-inactive-msg {
	margin: 0 0 1.5em;
	color: #555;
	line-height: 1.5;
}

.affiliet-apply-box,
.affiliet-pending-box,
.affiliet-inactive-box {
	max-width: 500px;
	padding: 2em;
	text-align: center;
}

.affiliet-pending-icon {
	font-size: 2.5em;
	margin: 0 0 0.5em;
}

.affiliet-apply-result {
	margin-top: 0.75em;
	min-height: 1.5em;
}

.affiliet-apply-result.affiliet-success {
	color: #0a6e39;
}

.affiliet-apply-result.affiliet-error {
	color: #c00;
}

@media (max-width: 640px) {
	.affiliet-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.affiliet-input-group .affiliet-input,
	.affiliet-input-group .affiliet-select {
		min-width: 100%;
	}
}
