/* AYM-İ Chatbot ve Site Stilleri */

/* ======= GENEL DEĞIŞKENLER ======= */
:root {
    /* Chatbot Renkleri */
    --primary-color: #2563EB;
    --secondary-color: #1D4ED8;
    --accent-color: #F97316;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --background-light: #fff;
    --background-dark: #F1F5F9;
    --border-color: #E2E8F0;
    --shadow-color: rgba(15, 23, 42, 0.08);
    --bot-message-bg: #ffffff;
    --user-message-bg: #2563EB;
    --success-color: #10B981;
    --error-color: #EF4444;
}

/* ======= GENEL SITE STILLERI ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* ======= HEADER STILLERI ======= */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* ======= ANA İÇERIK STILLERI ======= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* ======= FOOTER STILLERI ======= */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* ======= CHATBOT WIDGET STILLERI ======= */
.chatbot-widget {
    position: fixed;
    bottom: 95px;
    right: 15px;
    z-index: 1000;
    font-family: 'Poppins', 'Inter', sans-serif;
}

/* ======= CHATBOT TOGGLE BUTTON ======= */
.chatbot-toggle {
    width: 75px !important; /* Genişlik */
    height: 105px !important; /* Dikey için daha uzun */
    background: white !important; /* Maskot için beyaz arka plan */
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3) !important;
    overflow: visible !important;
    border-radius: 38px !important; /* Oval şekil için */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    z-index: 1001;
    cursor: pointer;
}

.chatbot-toggle:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35) !important;
    border-color: var(--accent-color) !important;
}

.chatbot-toggle:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
    border-radius: 38px; /* Oval şekil için */
    opacity: 0;
    transition: all 0.4s ease;
}

.chatbot-toggle:hover:before {
    opacity: 1;
}

.chatbot-toggle i {
    transition: opacity 0.3s, transform 0.3s;
}

#close-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

.chatbot-toggle.active #chatbot-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.chatbot-toggle.active #close-icon {
    opacity: 1;
    transform: rotate(0);
}

/* Maskot animasyonu */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Maskot resmi */
.mascot-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    padding: 6px; /* İçeride biraz boşluk bırak */
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(37, 99, 235, 0.2));
}

/* Kapatma ikonu için stil */
.close-icon-custom {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
    border: 2px solid white;
    z-index: 10;
}

.chatbot-toggle.active .close-icon-custom {
    opacity: 1;
    transform: scale(1);
}

/* ======= CHATBOT CONTAINER ======= */
.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background-color: white;
    border-radius: 24px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.1),
        0 0 0 4px rgba(37, 99, 235, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.chatbot-container.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
    animation: containerAppear 0.5s forwards;
}

@keyframes containerAppear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chatbot arka planı için özel stil */
.chatbot-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://cdn.aymnet.com.tr/v191/resim/data/genel/AymLogo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 200px;
    opacity: 0.04; /* Şeffaflık değeri - biraz daha belirgin */
    z-index: 0;
    pointer-events: none; /* Tıklamaları engellememesi için */
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.15));
}

/* ======= CHATBOT HEADER ======= */
.chatbot-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(37, 99, 235, 0.2);
}

.chatbot-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://cdn.aymnet.com.tr/v191/resim/data/genel/AymLogo.png') no-repeat;
    background-size: 80px;
    background-position: right 15px center;
    opacity: 0.1;
    pointer-events: none;
}

/* Başlık için arka plan deseni */
.chatbot-header:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-title i {
    font-size: 22px;
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chatbot-title h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.minimize-button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.minimize-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ======= CHATBOT MESSAGES ======= */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--background-dark);
    position: relative;
}

.chatbot-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(37, 99, 235, 0.03) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(37, 99, 235, 0.03) 2px, transparent 0);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

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

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    background-color: var(--bot-message-bg);
    padding: 16px 20px;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    box-shadow: 0 3px 10px var(--shadow-color);
    font-size: 15px;
    line-height: 1.6;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

.message-content p {
    margin: 0;
}

.user-message .message-content {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 6px;
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.user-message .message-content:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 4px;
    opacity: 0.8;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

/* ======= CHATBOT OPTIONS ======= */
.message-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.option-button {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.option-button i {
    font-size: 16px;
    color: var(--primary-color);
}

.option-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    border-color: var(--primary-color);
}

.option-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.2), rgba(255,255,255,0));
    transition: all 0.6s ease;
}

.option-button:hover:before {
    left: 100%;
}

.option-button:hover i {
    color: white;
}

/* ======= CHATBOT INPUT ======= */
.chatbot-input {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
    transition: all 0.3s ease;
}

.chatbot-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.chatbot-input button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    margin-left: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.chatbot-input button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.35);
}

.chatbot-input button:active {
    transform: translateY(0) scale(0.98);
}

.chatbot-input button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chatbot-input button:hover:before {
    opacity: 1;
}

/* ======= ORDER MODAL STYLES ======= */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}


.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}


.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
}

.check-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.check-button:hover {
    background-color: var(--secondary-color);
}

.modal-result {
    padding: 0 20px 20px;
    display: none;
}

.result-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    border-radius: 4px;
}

.result-error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px;
    border-radius: 4px;
}

.loading {
    text-align: center;
    padding: 15px;
    color: var(--text-secondary);
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        width: 300px;
        height: 450px;
        bottom: 75px;
    }
    
    .chatbot-toggle {
        width: 60px !important;
        height: 85px !important;
    }
}
