:root {
    --gemini-primary-color: #007bff; /* Varsayılan */
}

#wp-gemini-asist-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

#wp-gemini-asist-launcher {
    height: 70px;
    padding: 0 25px;
    background: var(--gemini-primary-color);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.launcher-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.launcher-text {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#wp-gemini-asist-launcher:hover {
    transform: translateY(-5px);
    opacity: 0.9;
}

#wp-gemini-asist-launcher img.launcher-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    background: white;
    padding: 2px;
}

#wp-gemini-asist-launcher svg {
    width: 30px;
    height: 30px;
}

#wp-gemini-asist-chat-window {
    position: absolute;
    bottom: 85px;
    left: 0;
    width: 380px;
    max-width: 90vw;
    height: 600px;
    max-height: calc(100vh - 120px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform-origin: bottom left;
}

#wp-gemini-asist-chat-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

/* Chat Header */
.chat-header {
    background: var(--gemini-primary-color);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}

.chat-logo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.header-info strong {
    display: block;
    font-size: 16px;
}

.header-info .status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-info .status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
}

#wp-gemini-asist-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#wp-gemini-asist-close:hover {
    opacity: 1;
}

/* Messages Area */
#wp-gemini-asist-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f9f9f9;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.assistant {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.message.user {
    align-self: flex-end;
    background: var(--gemini-primary-color);
    color: white;
    border-bottom-right-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Input Area */
.chat-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

#wp-gemini-asist-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

#wp-gemini-asist-input:focus {
    border-color: var(--gemini-primary-color);
}

#wp-gemini-asist-send {
    background: var(--gemini-primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
}

#wp-gemini-asist-send:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

#wp-gemini-asist-send svg {
    width: 20px;
    height: 20px;
}

/* Footer CTA */
.chat-footer {
    padding: 15px 20px;
    background: #fcfcfc;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.cta-link {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-link.whatsapp {
    background: #25d366;
    color: white !important;
}

.cta-link.phone {
    background: var(--gemini-primary-color);
    color: white !important;
}

.cta-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    #wp-gemini-asist-container { bottom: 20px; left: 15px; }
    #wp-gemini-asist-launcher { height: 55px; padding: 0 15px; border-radius: 30px; }
    .launcher-text { font-size: 14px; }
    #wp-gemini-asist-chat-window { width: calc(100vw - 30px); height: 70vh; bottom: 75px; left: 0; }
}