/* Set Yazılım çerez onayı (Penta Cookie çalışma mantığı) */

.pc-banner,
.pc-modal {
    --pc-dark: #1d1d1b;
    --pc-dark-2: #3a3a37;
    --pc-light: #fff;
    --pc-muted: rgba(255, 255, 255, .72);
    --pc-border: #e6e6e6;
    --pc-text: #1d1d1b;
    --pc-text-muted: #5c5c58;
    --pc-radius: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

.pc-banner *,
.pc-modal *,
.pc-banner *::before,
.pc-modal *::before,
.pc-banner *::after,
.pc-modal *::after {
    box-sizing: inherit;
}

/* ------------------------------------------------------------ Bant */

.pc-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
    width: 440px;
    max-width: calc(100% - 40px);
    padding: 22px;
    border-radius: var(--pc-radius);
    background: var(--pc-dark);
    color: var(--pc-light);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.pc-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
}

.pc-banner__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.pc-banner__icon {
    display: flex;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--pc-light);
}

.pc-banner__icon svg {
    width: 100%;
    height: 100%;
}

.pc-banner__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pc-light);
}

.pc-banner__body {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--pc-muted);
}

.pc-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pc-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.pc-banner .pc-link {
    color: var(--pc-light);
}

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

.pc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.pc-btn:focus-visible,
.pc-close:focus-visible,
.pc-footer-link:focus-visible,
.pc-switch input:focus-visible + .pc-switch__track,
.pc-cat__details summary:focus-visible,
.pc-link:focus-visible {
    outline: 2px solid #4d90fe;
    outline-offset: 2px;
}

.pc-banner .pc-btn--accept,
.pc-banner .pc-btn--reject {
    background: var(--pc-light);
    border-color: var(--pc-light);
    color: var(--pc-dark);
}

.pc-banner .pc-btn--accept:hover,
.pc-banner .pc-btn--reject:hover {
    background: #e9e9e6;
    border-color: #e9e9e6;
}

.pc-banner .pc-btn--manage {
    grid-column: 1 / -1;
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: var(--pc-light);
}

.pc-banner .pc-btn--manage:hover {
    border-color: var(--pc-light);
}

.pc-modal .pc-btn--accept,
.pc-modal .pc-btn--reject {
    background: var(--pc-dark);
    border-color: var(--pc-dark);
    color: var(--pc-light);
}

.pc-modal .pc-btn--accept:hover,
.pc-modal .pc-btn--reject:hover {
    background: var(--pc-dark-2);
    border-color: var(--pc-dark-2);
}

.pc-modal .pc-btn--save {
    background: var(--pc-light);
    border-color: var(--pc-dark);
    color: var(--pc-dark);
}

.pc-modal .pc-btn--save:hover {
    background: #f2f2ef;
}

/* ------------------------------------------------------------ Tercih paneli */

.pc-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pc-modal[hidden] {
    display: none;
}

.pc-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.pc-modal__box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 640px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    border-radius: var(--pc-radius);
    background: var(--pc-light);
    color: var(--pc-text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.pc-modal__box:focus {
    outline: none;
}

.pc-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--pc-border);
}

.pc-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pc-text);
}

.pc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2ef;
    color: var(--pc-text);
    cursor: pointer;
}

.pc-close:hover {
    background: #e6e6e2;
}

.pc-close svg {
    width: 20px;
    height: 20px;
}

.pc-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 24px;
}

.pc-modal__intro {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--pc-text-muted);
}

.pc-cat {
    padding: 16px 0;
    border-top: 1px solid var(--pc-border);
}

.pc-cat__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pc-cat__name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--pc-text);
}

.pc-cat__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--pc-text-muted);
}

.pc-always {
    flex: 0 0 auto;
    padding-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #2e7d32;
    white-space: nowrap;
}

.pc-switch {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    width: 46px;
    height: 26px;
    cursor: pointer;
}

.pc-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.pc-switch__track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    background: #c7c7c2;
    transition: background-color .2s ease;
    pointer-events: none;
}

.pc-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}

.pc-switch input:checked + .pc-switch__track {
    background: var(--pc-dark);
}

.pc-switch input:checked + .pc-switch__track::after {
    transform: translateX(20px);
}

.pc-cat__details {
    margin-top: 10px;
}

.pc-cat__details summary {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--pc-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    list-style: none;
}

.pc-cat__details summary::-webkit-details-marker {
    display: none;
}

.pc-table-wrap {
    margin-top: 10px;
    overflow-x: auto;
    border-top: 1px solid var(--pc-border);
    border-left: 1px solid var(--pc-border);
    border-radius: 8px;
}

.pc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    line-height: 1.45;
}

.pc-table th,
.pc-table td {
    padding: 8px 10px;
    border: 0;
    border-right: 1px solid var(--pc-border);
    border-bottom: 1px solid var(--pc-border);
    text-align: left;
    vertical-align: top;
    color: var(--pc-text);
}

@media (min-width: 576px) {
    .pc-table code {
        white-space: nowrap;
        word-break: normal;
    }

    .pc-table thead th:last-child {
        border-top-right-radius: 8px;
    }

    .pc-table tbody tr:last-child td:first-child {
        border-bottom-left-radius: 8px;
    }

    .pc-table tbody tr:last-child td:last-child {
        border-bottom-right-radius: 8px;
    }
}

.pc-table th {
    background: #f6f6f3;
    font-weight: 700;
    white-space: nowrap;
}

.pc-table code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
}

.pc-modal__foot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--pc-border);
}

html.pc-lock,
html.pc-lock body {
    overflow: hidden;
}

/* ------------------------------------------------------------ Footer bağlantısı */

/* Renk ve yazı boyutu footer'daki telif satırının sınıflarından gelir. */
.pc-footer-link {
    margin-left: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: color .45s;
}

.pc-footer-link:hover {
    color: #fff;
}

/* ------------------------------------------------------------ Mobil */

/* Sitenin sm kırılımı (768px): footer'da bağlantı telif satırının altına iner. */
@media (max-width: 768px) {
    .copyright-field:has(> .pc-footer-link) {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pc-footer-link {
        margin: 8px 0 0;
    }
}

@media (max-width: 575px) {
    .pc-banner {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
        border-radius: var(--pc-radius) var(--pc-radius) 0 0;
    }

    .pc-modal {
        align-items: flex-end;
        padding: 0;
    }

    .pc-modal__box {
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: var(--pc-radius) var(--pc-radius) 0 0;
    }

    .pc-modal__head,
    .pc-modal__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pc-modal__foot {
        grid-template-columns: 1fr 1fr;
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    }

    .pc-modal__foot .pc-btn--save {
        grid-column: 1 / -1;
        order: -1;
    }

    .pc-table-wrap {
        border: 0;
        border-radius: 0;
    }

    .pc-table thead {
        display: none;
    }

    .pc-table,
    .pc-table tbody {
        display: block;
        width: 100%;
    }

    .pc-table tr,
    .pc-table td {
        display: block;
        width: auto;
    }

    .pc-table tr {
        margin-bottom: 8px;
        border: 1px solid var(--pc-border);
        border-radius: 8px;
    }

    .pc-table td {
        display: grid;
        grid-template-columns: 92px 1fr;
        gap: 8px;
        border: 0;
        border-bottom: 1px solid var(--pc-border);
    }

    .pc-table tr td:last-child {
        border-bottom: 0;
    }

    .pc-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--pc-text-muted);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-banner,
    .pc-banner.is-visible,
    .pc-btn,
    .pc-footer-link,
    .pc-switch__track,
    .pc-switch__track::after {
        transition: none;
    }
}
