/* ==========================================================================
   03 — BİLEŞENLER
   Butonlar, etiketler, kartlar, filtreler, form elemanları
   ========================================================================== */

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */

.btn {
    min-height: 54px;
    padding: 0 24px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: #fff;
    box-shadow: 0 14px 32px rgba(24, 185, 176, .3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(24, 185, 176, .38);
}

.btn-glass {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    backdrop-filter: blur(9px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--navy);
    color: #fff;
}

.btn-dark:hover {
    background: var(--teal);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fff;
    color: var(--navy);
    border-color: var(--line);
    box-shadow: 0 8px 24px rgba(16, 47, 73, .06);
    white-space: nowrap;
}

.btn-secondary:hover {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(24, 185, 176, .2);
}

/* --------------------------------------------------------------------------
   Küçük tipografik parçalar
   -------------------------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 800;
    color: var(--teal-deep);
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--teal), var(--coral));
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .17);
    font-size: 13px;
    font-weight: 700;
}

.pill i,
.pill .pill-icon {
    display: inline-grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 12px;
    font-style: normal;
}

/* --------------------------------------------------------------------------
   Hizmet kartı
   -------------------------------------------------------------------------- */

.service-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--teal);
}

.service-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    overflow: hidden;
    background: #eaf1f4;
    flex: 0 0 auto;
}

.service-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transition: transform .45s ease;
    backface-visibility: hidden;
}

.service-card:hover .service-image img {
    transform: scale(1.055);
}

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 31, 50, 0) 42%, rgba(8, 31, 50, .52) 100%);
}

.service-tag {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
    color: var(--navy);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
}

.service-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px;
}

.service-content h3 {
    margin-bottom: 10px;
}

.service-content h3 a {
    transition: color .2s ease;
}

.service-card:hover .service-content h3 a {
    color: var(--teal-deep);
}

.service-content p {
    color: var(--muted);
    font-size: 14px;
    min-height: 46px;
    margin-bottom: 0;
}

.service-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--teal-deep);
    font-size: 14px;
    font-weight: 900;
}

.service-link .arrow {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eefaf9;
    transition: transform .25s ease, background .25s ease;
}

.service-card:hover .service-link .arrow {
    transform: translateX(3px);
    background: #ddf7f4;
}

/* --------------------------------------------------------------------------
   Genel kart (renk döngülü)
   -------------------------------------------------------------------------- */

.card {
    --a: #18b9b0;
    --a2: #48d8cf;
    --s: #e7f9f7;
    position: relative;
    overflow: hidden;
    padding: 25px;
    min-height: 290px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 47, 73, .06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:nth-child(2n) {
    --a: #6875e7;
    --a2: #9da5ff;
    --s: #eef0ff;
}

.card:nth-child(3n) {
    --a: #ff7869;
    --a2: #ffa99f;
    --s: #fff0ee;
}

.card:nth-child(4n) {
    --a: #e99a28;
    --a2: #ffc85b;
    --s: #fff7e7;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.tag {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--s);
    color: var(--a);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    margin: 23px 0 19px;
    background: linear-gradient(145deg, var(--a), var(--a2));
    color: #fff;
    font-size: 25px;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--a) 25%, transparent);
}

.card p {
    margin: 12px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.card a {
    font-size: 14px;
    font-weight: 900;
    color: var(--a);
}

/* --------------------------------------------------------------------------
   Hizmet filtreleri
   -------------------------------------------------------------------------- */

.filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 34px;
    padding: 8px;
    width: max-content;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f7fbfc;
    box-shadow: 0 8px 24px rgba(16, 47, 73, .04);
}

/* Hem <button> hem <a> olarak kullanılır — ana sayfada tarayıcıda filtreler,
   /hizmetler sayfasında paylaşılabilir adrese gider */
.filter-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    outline: 0;
    background: transparent;
    color: #597181;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background .22s ease, color .22s ease, box-shadow .22s ease;
}

.filter-btn:hover {
    color: var(--navy);
    background: #eaf6f6;
}

.filter-btn[aria-pressed="true"] {
    color: #fff;
    background: linear-gradient(135deg, var(--teal), #39d1c8);
    box-shadow: 0 8px 20px rgba(24, 185, 176, .23);
}

.filter-btn:focus-visible {
    box-shadow: var(--ring);
}

.service-card.is-hidden {
    display: none;
}

/* Filtre sonucunda hiç kart kalmazsa */
.filter-empty {
    display: none;
    padding: 40px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
    color: var(--muted);
    background: #fff;
}

.filter-empty.show {
    display: block;
}

/* --------------------------------------------------------------------------
   Form elemanları
   -------------------------------------------------------------------------- */

label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdfe;
    font: inherit;
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #bcd6de;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    background: #fff;
    box-shadow: var(--ring);
}

input::placeholder,
textarea::placeholder {
    color: #9db1bd;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Onay kutusu satırı (KVKK vb.) */
.check-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

.check-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 2px;
    accent-color: var(--teal);
    cursor: pointer;
}

.check-row a {
    color: var(--teal-deep);
    font-weight: 800;
    text-decoration: underline;
}

/* Doğrulama hata mesajı */
.field-error {
    display: block;
    margin-top: 6px;
    color: #d64535;
    font-size: 12.5px;
    font-weight: 700;
}

.field-error:empty {
    display: none;
}

/* Hatalı alanın kendisi de işaretlensin */
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border-color: #e88b80;
    background: #fff8f7;
}
