 
/* ================= OKY CHATBOT ANA STİLLERİ ================= */

#oky-bot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#oky-toggle-btn {
    position: relative;
    width: 82px;
    height: 82px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter:
        drop-shadow(0 0 8px rgba(0,170,255,0.55))
        drop-shadow(0 0 18px rgba(0,170,255,0.35))
        drop-shadow(0 10px 22px rgba(7,28,57,0.45));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: okyFloat 2.4s ease-in-out infinite;
}

#oky-toggle-btn:hover {
    transform: scale(1.12);
}

#oky-toggle-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#oky-toggle-btn::after {
    content: "OKY'YE SOR";
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    background: #071c39;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.15);
}

/* Sohbet Penceresi */
#oky-chat-window {
    position: absolute;
    right: 0;
    bottom: 100px;
    width: 405px;
    height: 570px;
    background: rgba(247, 249, 251, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.22);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: okyWindowOpen 0.25s ease;
}

.oky-hidden {
    display: none !important;
}

/* Header */
.oky-chat-header {
    background: linear-gradient(135deg, #071c39, #102f63);
    color: #ffffff;
    padding: 16px 15px;
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oky-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oky-avatar {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 10px rgba(255,255,255,0.22));
}

.oky-header-info h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.oky-header-info p {
    margin: 0;
    font-size: 12px;
    color: #d6e4f5;
}

#oky-close-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

#oky-close-btn:hover {
    background: rgba(255,255,255,0.24);
    transform: rotate(90deg);
}

/* Mesaj Alanı */
#oky-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

#oky-chat-messages::-webkit-scrollbar {
    width: 6px;
}

#oky-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(7, 28, 57, 0.35);
    border-radius: 20px;
}

/* Mesaj Balonları */
.oky-message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 84%;
    font-size: 13.5px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: okyMessageIn 0.22s ease;
}

.oky-bot-msg {
    background: #ffffff;
    color: #253041;
    align-self: flex-start;
    box-shadow: 0 3px 9px rgba(0,0,0,0.06);
    border-bottom-left-radius: 4px;
}

.oky-user-msg {
    background: linear-gradient(135deg, #071c39, #123b7a);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.oky-red-greeting {
    background: linear-gradient(135deg, #ff1e00, #c40000) !important;
    color: #ffffff !important;

    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0;
    line-height: 1.5;

    text-shadow: none;

    border-left: 5px solid #7a0000;

    box-shadow:
        0 3px 9px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.15);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Buton Alanları */
.oky-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
    animation: okyMessageIn 0.25s ease;
}

.oky-option-btn {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    color: #071c39;
    padding: 10px 11px;
    border-radius: 9px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.oky-option-btn:hover {
    background: #071c39;
    color: #ffffff;
    border-color: #071c39;
    transform: translateX(3px);
}

.oky-whatsapp-btn {
    border-color: rgba(18, 140, 126, 0.35);
}

.oky-whatsapp-btn:hover {
    background: #128c7e;
    border-color: #128c7e;
    color: #ffffff;
}

.oky-mail-btn {
    border-color: rgba(192, 57, 43, 0.35);
}

.oky-mail-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #ffffff;
}

/* Ülke Seçim Alanı */
.oky-select-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 88%;
    background: #ffffff;
    padding: 11px;
    border-radius: 10px;
    box-shadow: 0 3px 9px rgba(0,0,0,0.06);
    animation: okyMessageIn 0.25s ease;
}

.oky-country-select {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccd4df;
    border-radius: 7px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
}

.oky-country-select:focus {
    border-color: #071c39;
}

.oky-input-warning {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.oky-select-confirm-btn {
    background: #c0392b;
    color: #ffffff;
    border: none;
    padding: 9px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    transition: background 0.2s, transform 0.2s;
}

.oky-select-confirm-btn:hover {
    background: #071c39;
    transform: translateY(-1px);
}

/* Alt Yazışma Alanı */
.oky-chat-footer {
    padding: 12px;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid #e5e9ef;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

#oky-user-input {
    flex: 1;
    border: 1px solid #ccd4df;
    border-radius: 9px;
    padding: 10px;
    font-size: 13.5px;
    resize: none;
    outline: none;
    font-family: inherit;
    max-height: 120px;
    box-sizing: border-box;
    line-height: 1.4;
    background: #ffffff;
}

#oky-user-input:focus {
    border-color: #071c39;
    box-shadow: 0 0 0 3px rgba(7, 28, 57, 0.08);
}

#oky-send-btn {
    background: #071c39;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

#oky-send-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* OKY Yazıyor */
.oky-typing {
    align-self: flex-start;
    background: #ffffff;
    color: #071c39;
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 3px 9px rgba(0,0,0,0.06);
}

.oky-typing span {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 3px;
    background: #071c39;
    border-radius: 50%;
    animation: okyTypingDots 1s infinite ease-in-out;
}

.oky-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.oky-typing span:nth-child(3) {
    animation-delay: 0.30s;
}

/* Talep Özeti */
.oky-summary-card {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-left: 5px solid #c0392b;
    border-radius: 12px;
    padding: 13px;
    font-size: 13px;
    color: #253041;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    animation: okyMessageIn 0.25s ease;
    white-space: normal;
}

.oky-request-no {
    display: inline-block;
    background: #071c39;
    color: #ffffff;
    padding: 5px 9px;
    border-radius: 7px;
    font-weight: 900;
    margin-bottom: 8px;
}

/* Animasyonlar */
@keyframes okyFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes okyWindowOpen {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes okyMessageIn {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes okyTypingDots {
    0%, 80%, 100% {
        opacity: 0.25;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* Mobil Uyumluluk */
@media (max-width: 480px) {
    #oky-bot-container {
        right: 14px;
        bottom: 16px;
    }

    #oky-toggle-btn {
        width: 72px;
        height: 72px;
    }

    #oky-toggle-btn::after {
        font-size: 10px;
        padding: 4px 10px;
        bottom: -24px;
    }

    #oky-chat-window {
        position: fixed;
        right: 10px;
        bottom: 98px;
        width: calc(100vw - 20px);
        height: 72vh;
        max-height: 570px;
        border-radius: 16px;
    }

    .oky-chat-header {
        min-height: 76px;
        padding: 13px;
    }

    .oky-avatar {
        width: 50px;
        height: 50px;
    }

    .oky-header-info h4 {
        font-size: 18px;
    }

    .oky-header-info p {
        font-size: 11px;
    }

    .oky-message {
        max-width: 88%;
        font-size: 13px;
    }

    .oky-select-container {
        width: 94%;
    }
}
/* ================= GENEL MOBİL YATAY TAŞMA KİLİDİ ================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
}

/* OKY mobil güvenlik */
@media (max-width: 480px) {
    #oky-bot-container {
        max-width: 100vw !important;
        overflow: visible !important;
    }

    #oky-chat-window {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 98px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        box-sizing: border-box !important;
    }

    .oky-chat-footer {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    #oky-user-input {
        min-width: 0 !important;
        width: auto !important;
        flex: 1 1 auto !important;
    }

    #oky-send-btn {
        flex: 0 0 40px !important;
        width: 40px !important;
        min-width: 40px !important;
    }
}

#oky-chat-window {
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 130px);
}

#oky-chat-messages {
    min-height: 0;
}

@media (max-width: 480px) {
    #oky-chat-window {
        height: 70vh !important;
        max-height: calc(100vh - 120px) !important;
        overflow: hidden !important;
    }
}

 
 
 /* ==================================================
   OKY CANLILIK EFEKTLERİ
================================================== */

#oky-toggle-btn {
    animation:
        okyBreath 4s ease-in-out infinite,
        okyFloat 3.5s ease-in-out infinite,
        okyJump 18s ease-in-out infinite;
    transform-origin: center center;
}

#oky-toggle-btn:hover {
    animation-play-state: paused;
    transform: scale(1.12);
}

/* Nefes alma */
@keyframes okyBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Hafif sağ-sol hareket */
@keyframes okyFloat {
    0%, 100% { margin-right: 0; }
    50% { margin-right: 3px; }
}

/* 18 saniyede bir küçük zıplama */
@keyframes okyJump {
    0%, 90%, 100% { margin-bottom: 0; }
    94% { margin-bottom: 9px; }
    97% { margin-bottom: 0; }
}

/* 5 saniyede bir göz kırpma */
#oky-toggle-btn img {
    animation: okyBlink 5s infinite;
    transform-origin: center center;
}

@keyframes okyBlink {
    0%, 92%, 96%, 100% { transform: scaleY(1); }
    94% { transform: scaleY(0.08); }
}

/* JS ile gelen konuşma balonu */
.oky-smart-bubble {
    position: absolute;
    right: 0;
    bottom: 88px;
    max-width: 230px;
    background: #ffffff;
    color: #071c39;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 13px;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.35s ease;
    z-index: 100000;
}

.oky-smart-bubble.show {
    opacity: 1;
    transform: translateY(0);
}
