/**
 * iMRAK.COM.TR
 * Creative Web Design Agency
 * Korhan Mustafa İMRAK
 */
.korhan-mustafa-imrak-cd-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.korhan-mustafa-imrak-cd-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.korhan-mustafa-imrak-cd-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(34, 197, 94, 0.5);
}
.korhan-mustafa-imrak-cd-toggle.korhan-mustafa-imrak-cd-open {
    transform: rotate(90deg);
}

.korhan-mustafa-imrak-cd-widget {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: korhan-mustafa-imrak-cd-slideUp 0.3s ease;
}
.korhan-mustafa-imrak-cd-widget.korhan-mustafa-imrak-cd-visible {
    display: flex;
}
@keyframes korhan-mustafa-imrak-cd-slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.korhan-mustafa-imrak-cd-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.3) 0%, rgba(34, 211, 238, 0.2) 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}
.korhan-mustafa-imrak-cd-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(34, 211, 238, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
    font-size: 1.2rem;
}
.korhan-mustafa-imrak-cd-header-text h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
}
.korhan-mustafa-imrak-cd-header-text p {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}
.korhan-mustafa-imrak-cd-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}
.korhan-mustafa-imrak-cd-close:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.2);
}

.korhan-mustafa-imrak-cd-giris {
    padding: 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.korhan-mustafa-imrak-cd-giris p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}
.korhan-mustafa-imrak-cd-giris .korhan-mustafa-imrak-cd-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 0.9rem;
}
.korhan-mustafa-imrak-cd-giris .korhan-mustafa-imrak-cd-input::placeholder {
    color: #64748b;
}
.korhan-mustafa-imrak-cd-giris .korhan-mustafa-imrak-cd-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.korhan-mustafa-imrak-cd-giris .korhan-mustafa-imrak-cd-btn:hover {
    opacity: 0.9;
}

.korhan-mustafa-imrak-cd-sohbet {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.korhan-mustafa-imrak-cd-mesajlar {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.korhan-mustafa-imrak-cd-mesaj {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.korhan-mustafa-imrak-cd-mesaj.korhan-mustafa-imrak-cd-ziyaretci {
    align-self: flex-end;
    background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    color: #fff;
}
.korhan-mustafa-imrak-cd-mesaj.korhan-mustafa-imrak-cd-operator {
    align-self: flex-start;
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #f8fafc;
}
.korhan-mustafa-imrak-cd-mesaj-ad {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent, #22d3ee);
    margin-bottom: 4px;
}
.korhan-mustafa-imrak-cd-mesaj-zaman {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}
.korhan-mustafa-imrak-cd-mesaj.korhan-mustafa-imrak-cd-operator .korhan-mustafa-imrak-cd-mesaj-zaman {
    color: #94a3b8;
}
.korhan-mustafa-imrak-cd-mesaj.korhan-mustafa-imrak-cd-sistem {
    align-self: center;
    background: rgba(148, 163, 184, 0.2);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    font-style: italic;
    color: #94a3b8;
}
.korhan-mustafa-imrak-cd-mesaj.korhan-mustafa-imrak-cd-emoji-tekli {
    padding: 12px 16px;
}
.korhan-mustafa-imrak-cd-mesaj.korhan-mustafa-imrak-cd-emoji-tekli .korhan-mustafa-imrak-cd-mesaj-icerik {
    font-size: 2.5rem;
    line-height: 1.2;
}

.korhan-mustafa-imrak-cd-sohbet-bitmis {
    padding: 12px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.korhan-mustafa-imrak-cd-sohbet-bitmis .korhan-mustafa-imrak-cd-bitmis-msg {
    margin: 0;
}
.korhan-mustafa-imrak-cd-btn-yeniden-baglan {
    padding: 10px 18px;
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}
.korhan-mustafa-imrak-cd-yeniden-baglan-phone {
    position: relative;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.korhan-mustafa-imrak-cd-yeniden-baglan-phone i {
    animation: korhan-mustafa-imrak-cd-ziyaretci-phone-ring 0.5s ease-in-out infinite;
}
@keyframes korhan-mustafa-imrak-cd-ziyaretci-phone-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-15deg); }
    20% { transform: rotate(15deg); }
    30% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    50%, 100% { transform: rotate(0deg); }
}
.korhan-mustafa-imrak-cd-btn-yeniden-baglan:hover {
    opacity: 0.95;
}
.korhan-mustafa-imrak-cd-btn-yeniden-baglan:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.korhan-mustafa-imrak-cd-btn-yeniden-baglan:disabled .korhan-mustafa-imrak-cd-yeniden-baglan-phone i {
    animation: none;
}
.korhan-mustafa-imrak-cd-sohbet-bitir-wrap {
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.korhan-mustafa-imrak-cd-btn-bitir {
    width: 100%;
    padding: 10px 1rem;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}
.korhan-mustafa-imrak-cd-btn-bitir:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    opacity: 0.95;
}

.korhan-mustafa-imrak-cd-mesaj-wrap {
    position: relative;
}
.korhan-mustafa-imrak-cd-mesaj {
    position: relative;
}
.korhan-mustafa-imrak-cd-mesaj-yanitla {
    position: absolute;
    bottom: 4px;
    right: 8px;
    padding: 6px 10px;
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.korhan-mustafa-imrak-cd-mesaj-wrap:hover .korhan-mustafa-imrak-cd-mesaj-yanitla {
    opacity: 1;
}
@media (hover: none) {
    .korhan-mustafa-imrak-cd-mesaj-yanitla {
        opacity: 0.7;
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}
.korhan-mustafa-imrak-cd-mesaj-yanitla:hover {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.2);
}
.korhan-mustafa-imrak-cd-mesaj-reply {
    border-left: 3px solid rgba(34, 211, 238, 0.6);
    padding: 4px 8px;
    margin-bottom: 6px;
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    display: block;
}
.korhan-mustafa-imrak-cd-mesaj-reply-ad {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    display: block;
}
.korhan-mustafa-imrak-cd-mesaj-reply-txt {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}
.korhan-mustafa-imrak-cd-reply-preview {
    padding: 10px 14px;
    background: rgba(34, 211, 238, 0.15);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.korhan-mustafa-imrak-cd-reply-preview-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.korhan-mustafa-imrak-cd-reply-preview-label {
    font-size: 0.85rem;
    color: #22d3ee;
    flex-shrink: 0;
}
.korhan-mustafa-imrak-cd-reply-preview-text {
    flex: 1;
    font-size: 0.95rem;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 1.4em;
    line-height: 1.4;
}
.korhan-mustafa-imrak-cd-reply-preview-close {
    padding: 6px 10px;
    font-size: 1rem;
}
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
}
.korhan-mustafa-imrak-cd-reply-preview-close:hover {
    color: #f8fafc;
    background: rgba(148, 163, 184, 0.2);
}

.korhan-mustafa-imrak-cd-form {
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}
.korhan-mustafa-imrak-cd-form-inner {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    position: relative;
    width: 100%;
    min-width: 0;
}
.korhan-mustafa-imrak-cd-form input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 1rem;
}
.korhan-mustafa-imrak-cd-form input::placeholder {
    color: #64748b;
}
.korhan-mustafa-imrak-cd-form button:not(.korhan-mustafa-imrak-cd-emoji-btn) {
    padding: 12px 16px;
    background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
}
.korhan-mustafa-imrak-cd-form button:not(.korhan-mustafa-imrak-cd-emoji-btn):hover {
    opacity: 0.9;
}
.korhan-mustafa-imrak-cd-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.korhan-mustafa-imrak-cd-bekle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .korhan-mustafa-imrak-cd-wrap {
        bottom: 72px;
        right: 16px;
    }
    .korhan-mustafa-imrak-cd-widget {
        bottom: 78px;
        width: calc(100vw - 32px);
        max-width: none;
        right: -8px;
    }
}

@media (max-width: 480px) {
    .korhan-mustafa-imrak-cd-wrap {
        bottom: 80px;
        right: 16px;
    }
    .korhan-mustafa-imrak-cd-widget {
        width: calc(100vw - 32px);
        right: -8px;
    }
}
