/* Modern Renk Paleti */
:root {
    --primary-color: #6C23AD; /* Ana mor renk */
    --secondary-color: #4B268F; /* Daha koyu mor */
    --accent-color: #FF2D95; /* Neon pembe aksent */
    --accent-blue: #00C2FF; /* Neon mavi aksent */
    --dark-bg: #120821; /* Koyu morumsu siyah */
    --light-text: #ffffff; /* Beyaz metin */
    --button-gradient: linear-gradient(45deg, #6B17AD, #02C4FF); /* Mor-mavi gradyan */
    --hover-gradient: linear-gradient(45deg, #8A2BE2, #00A2FF); /* Hover mor-mavi */
    --card-bg: rgba(18, 8, 33, 0.8); /* Yarı saydam arkaplan */
    --border-glow: 0 0 8px rgba(108, 35, 173, 0.6); /* Mor glow efekti */
    --neon-border: 0 0 5px rgba(255, 45, 149, 0.7); /* Neon pembe kenar parıltısı */
}

/* Chat Butonu (Sabit Konum) */
#anils-chat-icon {
    position: fixed;
    bottom: 145px;
    left: 20px;
    background: var(--button-gradient);
    color: var(--light-text);
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    box-shadow: var(--border-glow);
    transition: all 0.3s ease;
    z-index: 9999;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#anils-chat-icon:hover {
    background: var(--hover-gradient);
    box-shadow: 0 0 12px rgba(108, 35, 173, 0.8);
    transform: translateY(-2px);
}

/* Chat Modal */
#anils-chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#anils-chat-content {
    background: var(--dark-bg);
    width: 700px;
    height: 650px;
    max-width: 90%;
    padding: 25px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(108, 35, 173, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Kenar ışıltısı */
#anils-chat-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-blue));
    z-index: 1;
}

/* Kapatma Butonu */
.anils-chat-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 36px;
    cursor: pointer;
    font-weight: normal;
    color: var(--accent-color);
    transition: all 0.2s;
    z-index: 10;
    opacity: 0.9;
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(30, 15, 50, 0.4);
}

.anils-chat-close:hover {
    color: var(--light-text);
    transform: scale(1.2);
    opacity: 1;
    background-color: rgba(255, 45, 149, 0.3);
}

/* Inline chat */
#anils-chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    background: var(--dark-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(108, 35, 173, 0.3);
    position: relative;
    overflow: hidden;
}

#anils-chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-blue));
    z-index: 1;
}

/* Mesaj Alanı */
#anils-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 15px;
    background-color: rgba(25, 10, 41, 0.4);
    border: 1px solid rgba(108, 35, 173, 0.4);
    border-radius: 8px;
    color: var(--light-text);
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--dark-bg);
    min-height: 250px;
    height: 250px;
}

/* Mesaj Stilleri */
.anils-chat-message {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(108, 35, 173, 0.2);
}

.anils-chat-username {
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

/* "Sistem" ve "Anıl's Chat" gibi özel kullanıcı adları için özel stillemeler */
.anils-chat-message[data-user="Sistem"] .anils-chat-username,
.anils-chat-message[data-user="Anıl's Chat"] .anils-chat-username {
    color: #4B268F !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Form */
#anils-chat-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.anils-chat-form-group {
    margin-bottom: 15px;
}

.anils-chat-form-group label {
    color: var(--accent-blue);
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

#anils-chat-name, #anils-chat-message {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(20, 8, 36, 0.6);
    border: 1px solid rgba(108, 35, 173, 0.4);
    border-radius: 8px;
    color: var(--light-text);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#anils-chat-message {
    min-height: 80px;
    resize: vertical;
}

#anils-chat-name:focus, #anils-chat-message:focus {
    border-color: var(--accent-color);
    box-shadow: var(--neon-border);
    outline: none;
    background-color: rgba(30, 12, 54, 0.7);
}

#anils-chat-submit {
    background: var(--button-gradient);
    color: var(--light-text);
    border: none;
    border-radius: 30px;
    padding: 14px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--border-glow);
    margin-top: 20px;
}

#anils-chat-submit:hover {
    background: var(--hover-gradient);
    box-shadow: 0 0 15px rgba(108, 35, 173, 0.7);
    transform: translateY(-2px);
}

/* Mobil için Düzenlemeler */
@media only screen and (max-width: 768px) {
    #anils-chat-icon {
        bottom: 80px;
        left: 15px;
        padding: 10px 18px;
        font-size: 14px;
    }
    
    #anils-chat-modal {
        align-items: flex-start;
        padding: 0;
    }
    
    #anils-chat-content {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        padding: 15px;
        margin: 0;
        box-shadow: none;
        border: none;
    }
    
    .anils-chat-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
        height: 50px;
        width: 50px;
        line-height: 50px;
    }
    
    #anils-chat-messages {
        height: 65vh;
    }
}

@media only screen and (max-width: 480px) {
    #anils-chat-submit {
        width: 100%;
    }
    
    #anils-chat-content {
        padding: 10px;
    }
}

/* Geçici Mesaj Stili (gönderilmekte olan) */
.anils-chat-temp-message {
    opacity: 0.7;
    background-color: rgba(25, 10, 41, 0.8);
    padding: 5px 10px;
    border-radius: 8px;
    animation: pulse 1.5s infinite;
}

/* Hata Mesajı Stili */
.anils-chat-message-error {
    color: #FF5252;
    background-color: rgba(255, 82, 82, 0.1);
    border-left: 3px solid #FF5252;
    padding: 8px 12px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.9; }
    100% { opacity: 0.6; }
}

/* Görsel bildirim için stil - mobil uyumlu */
.anils-chat-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10001;
    animation: slideIn 0.3s ease-out;
    font-weight: bold;
}

/* Mobil cihazlar için daha büyük ve belirgin görsel bildirim */
.anils-chat-notification-mobile {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    padding: 15px 25px;
    text-align: center;
    background: rgba(108, 35, 173, 0.9);
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    border-radius: 10px;
    width: 80%;
    max-width: 300px;
}

@keyframes slideIn {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Mobil cihazlar için görsel bildirim animasyonu */
@keyframes mobileSlideIn {
    0% { opacity: 0; transform: translate(-50%, -70%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

.anils-chat-notification-mobile {
    animation: mobileSlideIn 0.4s ease-out;
}

/* Ses açma/kapatma butonu stili */
#anils-chat-sound-toggle {
    position: absolute;
    top: 15px;
    right: 65px;
    cursor: pointer;
    font-size: 22px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(30, 15, 50, 0.4);
    transition: all 0.2s;
    z-index: 10;
    opacity: 0.9;
}

#anils-chat-sound-toggle:hover {
    transform: scale(1.1);
    opacity: 1;
    background-color: rgba(255, 45, 149, 0.3);
}

/* Mobil için ayarlamalar */
@media only screen and (max-width: 768px) {
    #anils-chat-sound-toggle {
        top: 20px;
        right: 75px;
        font-size: 24px;
        height: 44px;
        width: 44px;
        line-height: 44px;
    }
}

/* Geçici bildirim/ayar mesajı stili */
.anils-chat-temp-notification {
    background-color: rgba(108, 35, 173, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px auto;
    text-align: center;
    max-width: 80%;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    transition: all 0.3s ease;
} 