/* Komisyonlar: varsayılan tam genişlik, 25px iç boşluk; renkler CSS değişkenleriyle (--spordek-*) */

.spordek-komisyonlar {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--spordek-wrap-max, 100%);
	margin-left: auto;
	margin-right: auto;
	padding: var(--spordek-wrap-padding, 25px);
}

.spordek-komisyonlar *,
.spordek-komisyonlar *::before,
.spordek-komisyonlar *::after {
	box-sizing: border-box;
}

.spordek-kurul {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 12px;
	overflow: hidden;
	background: #fff;
}

.spordek-kurul__summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: var(--spordek-summary-bg, #fff);
	color: var(--spordek-summary-color, #111);
	font-weight: 700;
	font-size: 1.05rem;
	border-bottom: 1px solid #e8e8e8;
}

.spordek-kurul__summary::-webkit-details-marker {
	display: none;
}

.spordek-kurul__summary::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 12px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
	transform: rotate(-90deg);
	opacity: 0.7;
}

.spordek-kurul[open] .spordek-kurul__summary::before {
	transform: rotate(0deg);
	opacity: 1;
}

.spordek-kurul__summary:hover {
	background: rgba(0, 0, 0, 0.03);
}

.spordek-kurul__title {
	flex: 1;
}

.spordek-kurul__body {
	background: var(--spordek-body-bg, #f3f3f3);
	padding: clamp(16px, 3vw, 28px);
	border-top: 1px solid #e8e8e8;
}

.spordek-kurul__body--flat {
	border-top: 0;
}

/* Accordion kapalı: sabit başlık + doğrudan ızgara (.spordek-kurul ile çerçeve paylaşılır) */
.spordek-kurul__heading {
	padding: 14px 18px;
	background: var(--spordek-summary-bg, #fff);
	color: var(--spordek-summary-color, #111);
	border-bottom: 1px solid #e8e8e8;
}

.spordek-kurul__title-heading {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.spordek-komisyonlar--flat {
	max-width: var(--spordek-wrap-max, 100%);
}

.spordek-kurul-single .spordek-kurul-single__content {
	width: 100%;
	max-width: 100%;
}

.spordek-kurul-single .spordek-komisyonlar--flat {
	max-width: 100%;
}

.spordek-kurul__empty {
	margin: 0;
	text-align: center;
	color: #666;
	font-size: 0.95rem;
}

/* Tüm gruplar: flex — kart genişliği sabit, foto daralmaz */
.spordek-kurul__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: clamp(14px, 2.5vw, 22px);
	width: 100%;
}

.spordek-kurul__grid + .spordek-kurul__grid {
	margin-top: clamp(18px, 2.5vw, 28px);
}

.spordek-kurul__grid .spordek-card {
	flex: 0 1 min(100%, var(--spordek-card-min, 280px));
	max-width: min(100%, var(--spordek-card-min, 280px));
	width: 100%;
}

/* Başkan: biraz daha geniş kart */
.spordek-kurul__grid--leader .spordek-card {
	flex: 0 1 min(100%, 360px);
	max-width: min(100%, 360px);
}

/* Fusion: sabit sütun sayısı (başkan hariç) */
.spordek-komisyonlar.spordek-cols--2 .spordek-kurul__grid:not(.spordek-kurul__grid--leader) .spordek-card {
	flex: 0 1 calc(50% - 14px);
	max-width: calc(50% - 12px);
	min-width: min(100%, 220px);
}

.spordek-komisyonlar.spordek-cols--3 .spordek-kurul__grid:not(.spordek-kurul__grid--leader) .spordek-card {
	flex: 0 1 calc(33.333% - 16px);
	max-width: calc(33.333% - 14px);
	min-width: min(100%, 200px);
}

.spordek-komisyonlar.spordek-cols--4 .spordek-kurul__grid:not(.spordek-kurul__grid--leader) .spordek-card {
	flex: 0 1 calc(25% - 18px);
	max-width: calc(25% - 14px);
	min-width: min(100%, 200px);
}

@media (max-width: 1024px) {
	.spordek-komisyonlar.spordek-cols--4 .spordek-kurul__grid:not(.spordek-kurul__grid--leader) .spordek-card {
		flex: 0 1 calc(50% - 14px);
		max-width: calc(50% - 12px);
	}
}

@media (max-width: 900px) {
	.spordek-komisyonlar.spordek-cols--3 .spordek-kurul__grid:not(.spordek-kurul__grid--leader) .spordek-card {
		flex: 0 1 calc(50% - 14px);
		max-width: calc(50% - 12px);
	}
}

/* Mobil / tablet dar: tüm kartlar tam genişlik, alt alta */
@media (max-width: 768px) {
	.spordek-komisyonlar .spordek-kurul__grid {
		flex-direction: column;
		align-items: stretch;
	}

	.spordek-komisyonlar .spordek-kurul__grid .spordek-card,
	.spordek-komisyonlar .spordek-kurul__grid--leader .spordek-card,
	.spordek-komisyonlar .spordek-kurul__grid--executive .spordek-card,
	.spordek-komisyonlar .spordek-kurul__grid--member .spordek-card,
	.spordek-komisyonlar.spordek-cols--2 .spordek-kurul__grid .spordek-card,
	.spordek-komisyonlar.spordek-cols--3 .spordek-kurul__grid .spordek-card,
	.spordek-komisyonlar.spordek-cols--4 .spordek-kurul__grid .spordek-card,
	.spordek-komisyonlar.spordek-cols--2 .spordek-kurul__grid:not(.spordek-kurul__grid--leader) .spordek-card,
	.spordek-komisyonlar.spordek-cols--3 .spordek-kurul__grid:not(.spordek-kurul__grid--leader) .spordek-card,
	.spordek-komisyonlar.spordek-cols--4 .spordek-kurul__grid:not(.spordek-kurul__grid--leader) .spordek-card {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
}

/* Kart: başkan ile aynı görünüm */
.spordek-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--spordek-card-bg, #fff);
	border-radius: 10px;
	padding: clamp(16px, 2vw, 22px) clamp(12px, 1.5vw, 16px) 18px;
	text-align: center;
	border: 1px solid var(--spordek-card-border, #e5e7eb);
	border-top: 4px solid var(--spordek-card-accent, #0d1b3d);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	width: 100%;
	min-width: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spordek-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	width: 100%;
}

.spordek-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

/* Kare foto — başkan kartı ile aynı kutu */
.spordek-card__photo {
	display: grid;
	grid-template: 1fr / 1fr;
	place-items: center;
	width: 100%;
	max-width: var(--spordek-photo-max, 240px);
	margin: 0 auto 14px;
	aspect-ratio: 1 / 1;
	background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.spordek-card__photo .spordek-card__img,
.spordek-card__photo img {
	grid-area: 1 / 1;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 0;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
	object-position: center top;
	display: block;
}

.spordek-card__placeholder {
	grid-area: 1 / 1;
	place-self: center;
	width: 50%;
	aspect-ratio: 1;
	max-width: 110px;
	max-height: 110px;
	background: #9ca3af;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.55;
}

.spordek-card__role {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 12px;
	background: var(--spordek-role-color, #b71c1c);
	color: #fff;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.spordek-card__name {
	margin: 0 0 8px;
	font-weight: 700;
	color: var(--spordek-name-color, #111);
	font-size: 1.08rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	width: 100%;
}

.spordek-card__desc {
	margin: 0;
	font-size: 0.85rem;
	color: var(--spordek-desc-color, #555);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	width: 100%;
}

.spordek-card__links {
	list-style: none;
	margin: 10px 0 0;
	margin-top: auto;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px 10px;
}

.spordek-card__links-item {
	margin: 0;
	flex: 0 0 auto;
}

.spordek-card__link {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--spordek-role-color, #b71c1c);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	padding: 6px 10px;
	line-height: 1.2;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.spordek-card__link-icon {
	display: inline-flex;
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	color: inherit;
}

.spordek-card__link-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.spordek-card__link-text {
	white-space: nowrap;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.spordek-card__link:hover,
.spordek-card__link:focus {
	background: rgba(0, 0, 0, 0.04);
	border-color: rgba(0, 0, 0, 0.18);
	text-decoration: none;
}

.spordek-card__link--external .spordek-card__link-ext {
	font-weight: 500;
	font-size: 0.72rem;
	color: var(--spordek-desc-color, #777);
}

/* Sosyal marka renkleri (ikon + metin) */
.spordek-card__link--linkedin {
	color: #0a66c2;
	border-color: rgba(10, 102, 194, 0.28);
}
.spordek-card__link--twitter {
	color: #0f1419;
	border-color: rgba(15, 20, 25, 0.2);
}
.spordek-card__link--facebook {
	color: #0866ff;
	border-color: rgba(8, 102, 255, 0.28);
}
.spordek-card__link--instagram {
	color: #d62976;
	border-color: rgba(214, 41, 118, 0.25);
}
.spordek-card__link--youtube {
	color: #f00;
	border-color: rgba(255, 0, 0, 0.22);
}
.spordek-card__link--web {
	color: var(--spordek-role-color, #b71c1c);
}
