@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* GENEL SAYFA AYARLARI */
body {
    background-color: #0B0F47;
    font-family: 'Roboto', Arial, sans-serif;
    color: #FFFFFF;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* ANA KONTEYNER */
.container {
    background-color: #0C1161;
    padding: 21px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto 1fr auto; 
    grid-template-rows: auto 1fr;
    grid-template-areas: 
        "header header header"
        "left-menu center-content right-menu";
    gap: 30px;
    position: relative;
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: 0 0 0 10.5px #0B0F47;
}

/* BAŞLIK VE MENÜLER */
.site-header { grid-area: header; text-align: center; margin-top: -10px; }
.site-header h1 { color: #00B3EF; font-size: 28px; font-weight: 300; letter-spacing: 6px; margin: 0; }

.left-menu { grid-area: left-menu; margin-top: -15px; }
.right-menu { grid-area: right-menu; margin-top: -15px; }
.menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.menu a, .purchase-button, .subscribe-button {
    background-color: #050B2B; color: #FFFFFF; text-decoration: none; padding: 12px 20px; display: block; text-align: center; border-radius: 8px; border: 1px solid #111878; transition: background-color 0.3s ease; font-weight: 300; cursor: pointer;
}
.menu a:hover, .purchase-button:hover, .subscribe-button:hover { background-color: #111878; }

/* ORTA BÖLÜM VE RESİM */
.center-content { 
    grid-area: center-content; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: -20px;
}

.image-frame { 
    width: 141px; height: 213px; background-color: white; padding: 12.5px 11.5px; 
    box-sizing: border-box; box-shadow: 0 0 25px 5px #111878; border-radius: 4px; flex-shrink: 0;
}
.image-frame img { width: 118px; height: 188px; display: block; object-fit: cover; }

/* --- YENİ BEYAZ VE GENİŞ AI ALANI --- */
#chat-container {
    width: 130%; /* PC'de yanlara doğru genişleme */
    margin-left: -15%; /* Ortalamak için genişliğin yarısı kadar negatif margin */
    background-color: #FFFFFF; /* BEYAZ ZEMİN */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.input-wrapper {
    display: flex;
    width: 100%;
    gap: 10px;
    align-items: flex-end; /* Butonu aşağıda tutar */
}

#prompt-input {
    flex: 1;
    min-height: 55px;
    background-color: #F0F2F5; /* Açık gri zemin */
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 15px;
    color: #1F2937; /* KOYU RENK YAZI (Artık okunur!) */
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    overflow: hidden;
    transition: all 0.2s ease;
}

#prompt-input:focus {
    background-color: #FFFFFF;
    border-color: #00B3EF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 179, 239, 0.2);
}

#send-button {
    height: 55px;
    padding: 0 25px;
    background-color: #111878;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s;
    flex-shrink: 0;
}

#send-button:hover { background-color: #00B3EF; }

#response-area {
    width: 100%;
    color: #0B0F47; /* Beyaz zemin üzerinde koyu mavi yazı */
    font-weight: 400;
    line-height: 1.7;
    font-size: 17px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* MOBİL UYUMLULUK */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas: "header" "center-content" "left-menu" "right-menu";
    }
    #chat-container {
        width: 100%;
        margin-left: 0;
        padding: 15px;
    }
}

/* DİĞER ÖĞELER (Purchase, Subscribe vb.) */
.purchase-toggle, .subscribe-toggle { display: none; }
.purchase-panel, .subscribe-panel { display: none; position: absolute; top: 100%; right: 0; z-index: 10; background-color: #0C1161; border: 1px solid #111878; border-radius: 0 0 8px 8px; }
.purchase-toggle:checked ~ .purchase-panel, .subscribe-toggle:checked ~ .subscribe-panel { display: block; }
.contact-info { text-align: center; margin-top: 25px; }
.contact-info a { color: #00B3EF; text-decoration: none; }