/* Explain: Styles for the AI assistant widget, chat panel, and message bubbles. */
.site-header {
    background: linear-gradient(180deg, color-mix(in srgb, var(--background-color) 94%, transparent), color-mix(in srgb, var(--background-color) 68%, transparent));
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.nav-link {
    color: var(--text-color);
    transition: color 300ms ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.footer-link {
    color: var(--text-muted);
    transition: color 300ms ease;
}

.footer-link:hover {
    color: var(--text-color);
}

.btn-primary-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.8rem 1.7rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--background-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    box-shadow: var(--shadow-button);
    transition: background-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.btn-primary-solid:hover {
    background: var(--primary-hover);
    box-shadow: 0 20px 44px color-mix(in srgb, var(--primary-color) 38%, transparent);
    transform: translateY(-2px);
}

.btn-primary-solid:disabled {
    cursor: progress;
    opacity: 0.7;
    transform: none;
}

.btn-soft-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.8rem 1.7rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: border-color 300ms ease, background-color 300ms ease, transform 300ms ease;
}

.btn-soft-outline:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
    transform: translateY(-2px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.2rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, color-mix(in srgb, var(--background-color) 92%, transparent), color-mix(in srgb, var(--surface-color) 72%, transparent));
    box-shadow: var(--shadow-soft);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.lift-card {
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.lift-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 26px 70px color-mix(in srgb, var(--text-color) 14%, transparent);
    transform: translateY(-6px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1rem;
    border: 1px solid color-mix(in srgb, var(--background-color) 55%, transparent);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(64vh, 580px);
    min-height: 360px;
    border-radius: 999px 999px 2.2rem 2.2rem;
}

.arch-frame-medium {
    height: clamp(340px, 58vh, 500px);
    border-radius: 999px 999px 2rem 2rem;
}

.service-icon,
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--secondary-color);
    color: var(--sage-dark);
    font-size: 1rem;
}

.info-icon {
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    background: var(--sage-soft);
    font-size: 0.9rem;
}

.info-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: color-mix(in srgb, var(--background-color) 80%, transparent);
    padding: 1.15rem 1.25rem;
}

.step-num {
    flex: 0 0 auto;
    padding-top: 0.1rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    background: color-mix(in srgb, var(--background-color) 82%, transparent);
    transition: border-color 300ms ease;
}

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    background: transparent;
    padding: 1.1rem 1.3rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.faq-panel {
    padding: 0 1.3rem 1.15rem;
}

.faq-panel p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.form-status.success {
    color: var(--primary-color);
}

.form-status.error {
    color: #F0A9A9;
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large {
        height: 420px;
        min-height: 0;
        border-radius: 999px 999px 1.8rem 1.8rem;
    }

    .arch-frame-medium {
        height: 360px;
    }

    .arch-frame::after {
        inset: 0.7rem;
    }
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    transition: opacity 300ms ease;
}

.brand:hover {
    opacity: 0.85;
}

.brand-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent-color);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    color: var(--accent-color);
    font-family: var(--font-logo);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.brand-sub {
    margin-top: 0.32rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .brand-mark {
        width: 2.1rem;
        height: 2.1rem;
    }

    .brand-name {
        font-size: 0.9rem;
        letter-spacing: 0.12em;
    }

    .brand-sub {
        display: none;
    }
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--glass-border);
    background: color-mix(in srgb, var(--footer-bg) 96%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
    max-width: 80rem;
}

.cookie-banner__title {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.cookie-banner__desc {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.cookie-banner__link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (min-width: 768px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-banner__text {
        max-width: 62rem;
    }

    .cookie-banner__actions {
        flex: 0 0 auto;
    }
}

.wa-widget {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.7rem;
}

body.cookie-open .wa-widget {
    bottom: 8.5rem;
}

.wa-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 0;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    font-size: 1.7rem;
    box-shadow: 0 16px 34px rgba(37, 211, 102, 0.45);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.wa-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 20px 42px rgba(37, 211, 102, 0.55);
}

.wa-panel {
    width: min(23rem, calc(100vw - 2.2rem));
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: var(--surface-white);
    box-shadow: var(--shadow-soft);
}

.wa-panel[hidden] {
    display: none;
}

.wa-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: #25D366;
    color: #ffffff;
}

.wa-panel__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.wa-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.9rem;
    transition: background-color 300ms ease;
}

.wa-panel__close:hover {
    background: rgba(255, 255, 255, 0.38);
}

.wa-form {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
}

.wa-field {
    display: grid;
    gap: 0.3rem;
}

.wa-label {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wa-input {
    width: 100%;
    min-height: 2.7rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.9rem;
    background: var(--field-bg);
    padding: 0.5rem 0.85rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.wa-input::placeholder {
    color: var(--text-muted);
}

.wa-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

@media (max-width: 480px) {
    .wa-fab {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
}

/* Yapay zeka asistanı */
.ai-widget {
    position: fixed;
    right: 5.2rem;
    bottom: 1.1rem;
    z-index: 96;
}

body.cookie-open .ai-widget {
    bottom: 8.5rem;
}

.ai-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: var(--background-color);
    font-size: 1.45rem;
    box-shadow: 0 16px 34px rgba(201, 162, 39, 0.42);
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.ai-fab:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 20px 42px rgba(201, 162, 39, 0.55);
}

.ai-fab__dot {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    width: 0.65rem;
    height: 0.65rem;
    border: 2px solid var(--background-color);
    border-radius: 999px;
    background: #25D366;
}

.ai-panel {
    position: fixed;
    right: 1.1rem;
    bottom: 5.5rem;
    z-index: 96;
    display: flex;
    flex-direction: column;
    width: min(24rem, calc(100vw - 2.2rem));
    max-height: min(34rem, calc(100vh - 8rem));
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: var(--surface-white);
    box-shadow: var(--shadow-soft);
}

.ai-panel[hidden] {
    display: none;
}

body.cookie-open .ai-panel {
    bottom: 12.8rem;
    max-height: min(30rem, calc(100vh - 15rem));
}

.ai-panel__head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--secondary-color);
    color: var(--on-dark);
}

.ai-panel__head-main {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
}

.ai-panel__avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--background-color);
    font-size: 0.9rem;
}

.ai-panel__head-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ai-panel__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
}

.ai-panel__subtitle {
    margin-top: 0.15rem;
    color: var(--on-dark-muted);
    font-size: 0.68rem;
    line-height: 1.4;
}

.ai-panel__close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--on-dark);
    font-size: 0.9rem;
    transition: background-color 300ms ease;
}

.ai-panel__close:hover {
    background: rgba(255, 255, 255, 0.32);
}

.ai-log {
    display: flex;
    flex: 1 1 auto;
    min-height: 8rem;
    flex-direction: column;
    gap: 0.55rem;
    overflow-y: auto;
    padding: 0.95rem 1rem;
    background: color-mix(in srgb, var(--background-color) 72%, transparent);
}

.ai-msg {
    max-width: 90%;
    border-radius: 1rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.84rem;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.ai-msg--bot {
    align-self: flex-start;
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 0.3rem;
    background: var(--surface-color);
    color: var(--text-color);
}

.ai-msg--user {
    align-self: flex-end;
    border-bottom-right-radius: 0.3rem;
    background: var(--primary-color);
    color: var(--background-color);
}

.ai-msg--typing {
    color: var(--text-muted);
    font-style: italic;
}

.ai-suggest {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.7rem 1rem 0;
    background: var(--surface-white);
}

.ai-suggest[hidden] {
    display: none;
}

.ai-chip {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--background-color);
    padding: 0.35rem 0.7rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.5;
    transition: border-color 300ms ease, color 300ms ease;
}

.ai-chip:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.ai-actions {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.7rem 1rem 0;
    background: var(--surface-white);
}

.ai-action-btn {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--background-color);
    padding: 0.4rem 0.6rem;
    color: var(--text-color);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    transition: border-color 300ms ease, background-color 300ms ease, transform 300ms ease;
}

.ai-action-btn:hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
    transform: translateY(-1px);
}

.ai-action-btn[hidden] {
    display: none;
}

.ai-lead {
    display: grid;
    flex: 0 0 auto;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--glass-border);
    background: var(--surface-color);
}

.ai-lead[hidden] {
    display: none;
}

.ai-lead__title {
    color: var(--accent-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ai-lead__row {
    display: grid;
    gap: 0.25rem;
}

.ai-lead__label {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ai-lead__status {
    min-height: 1.1rem;
    font-size: 0.78rem;
    line-height: 1.5;
}

.ai-lead__status.success {
    color: var(--primary-color);
}

.ai-lead__status.error {
    color: #F0A9A9;
}

.ai-form {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem 1rem;
    border-top: 1px solid var(--glass-border);
    background: var(--surface-white);
}

.ai-input {
    flex: 1 1 auto;
    min-height: 2.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-size: 0.85rem;
}

.ai-input::placeholder {
    color: var(--text-muted);
}

.ai-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.ai-send {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--background-color);
    font-size: 0.9rem;
    transition: background-color 300ms ease, transform 300ms ease;
}

.ai-send:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.ai-send:disabled {
    cursor: progress;
    opacity: 0.6;
    transform: none;
}

@media (max-width: 480px) {
    .ai-widget {
        right: 4.8rem;
    }

    .ai-fab {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .ai-panel {
        bottom: 5rem;
        max-height: min(30rem, calc(100vh - 7rem));
    }

    body.cookie-open .ai-panel {
        bottom: 12.2rem;
        max-height: min(26rem, calc(100vh - 14rem));
    }
}