/*
Theme Name: T.Y.R.K AI Engine
Theme URI: https://tyrk.com.tr
Author: T.Y.R.K
Author URI: https://tyrk.com.tr
Description: T.Y.R.K Otonom Zekası için saf, organik ve Google AI Overviews tarzında yaşayan bir arama motoru teması. Pastel ve göz yormayan tonlar kullanılarak tasarlanmıştır.
Version: 1.0.0
Text Domain: tyrk-ai-engine
*/

:root {
    --bg-color: #faf9f7;
    --text-main: #333333;
    --text-muted: #6b7280;
    --primary-pastel: #e0f2fe; /* Çok açık mavi */
    --accent-pastel: #fef08a; /* Çok açık sarı/altın */
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Kuantum Arama Arayüzü */
.tyrk-search-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: var(--transition);
    min-height: 70vh;
}

.tyrk-search-container.active-search {
    justify-content: flex-start;
    padding-top: 5vh;
}

/* Chat düzeni: Arama kutusu en altta, cevaplar üstte */
.tyrk-search-container.active-search .tyrk-greeting { order: 1; }
.tyrk-search-container.active-search .tyrk-pills-container { order: 2; }
.tyrk-search-container.active-search .tyrk-response-area { 
    order: 3; 
    margin-top: 1rem; 
}
.tyrk-search-container.active-search .search-box-wrapper { 
    order: 4; 
    margin-top: 2rem;
    position: sticky;
    bottom: 20px;
}
.tyrk-search-container.active-search .tyrk-ad-container { 
    order: 5; 
}

/* LLM Hoşgeldin Metni */
.tyrk-greeting {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
    color: #1e293b;
    font-family: "Georgia", serif; /* Claude tarzı klas bir görünüm */
    transition: var(--transition);
    text-align: center;
}

.search-box-wrapper {
    width: 100%;
    max-width: 700px;
    position: relative;
    z-index: 100;
}

.tyrk-search-input {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    background: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.tyrk-search-input:focus {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.tyrk-submit-btn {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
}

.tyrk-submit-btn:hover {
    background: #0284c7;
    transform: translateY(-50%) scale(1.05);
}

.tyrk-submit-btn svg {
    margin-left: -2px; /* Optik dengeleme */
    margin-bottom: -2px; /* Optik dengeleme */
}

/* Hap Butonlar (Pills) */
.tyrk-pills-container {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    transition: var(--transition);
}

.tyrk-pill-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tyrk-pill-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tyrk-pill-btn::before {
    content: "✦";
    color: #94a3b8;
}

/* Yanıt Alanı */
.tyrk-response-area {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    pointer-events: none;
    display: none;
    flex-direction: column;
}

.tyrk-response-area.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: flex;
}

/* Sohbet Geçmişi (Chat UI) */
.tyrk-chat-history {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.chat-bubble {
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 85%;
    animation: fadeIn 0.3s ease-out forwards;
}

.chat-user {
    align-self: flex-end;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: 1.5rem 1.5rem 0 1.5rem;
}

.chat-tyrk {
    align-self: flex-start;
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem 1.5rem 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.chat-tyrk-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0ea5e9;
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background-color: #38bdf8;
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

/* İlgili Yazılar (Semantik Arama - Arama Motoru Stili) */
.related-posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.search-result-title {
    font-size: 1.25rem;
    color: #1a0dab; /* Google arama sonuç mavi tonu */
    font-weight: 400;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.search-result-title:hover {
    text-decoration: underline;
}

.search-result-snippet {
    font-size: 0.9rem;
    color: #4d5156; /* Snippet rengi */
    line-height: 1.58;
    margin-bottom: 0.5rem;
}

.search-result-url-bottom {
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.tyrk-load-more-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.tyrk-load-more-arrow {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.tyrk-load-more-arrow:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.tyrk-footer-note {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.3px;
    margin-top: auto;
}

/* Animasyonlar */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .tyrk-greeting { font-size: 2rem; }
    .tyrk-search-input { padding: 1rem 1.5rem; }
    .tyrk-search-container { padding: 1rem; }
    .chat-bubble { max-width: 95%; }
}

/* Tekil Yazı İçeriği Resim Taşma Düzeltmesi */
.post-body img,
.post-content img,
.entry-content img,
article img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    display: block;
    margin: 1.5rem auto;
}

/* AdSense İçi Çerçeveleri Zorla Gizleme ve Boş Reklam Boşluklarını Silme */
ins.adsbygoogle,
ins.adsbygoogle iframe,
.tyrk-in-feed-ad iframe,
.tyrk-in-article-ad iframe {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

ins.adsbygoogle[data-ad-status="unfilled"],
.google-auto-placed[data-ad-status="unfilled"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* T.Y.R.K Interactive Synthesis Training UI */
.tyrk-synthesis-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 10px;
    padding: 10px 0;
}

.synthesis-word {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background-color: transparent;
    cursor: grab;
    transition: background-color 0.2s, transform 0.1s, opacity 0.2s;
    user-select: none;
}

.synthesis-word:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

.synthesis-word:active {
    cursor: grabbing;
}

.synthesis-word.deleted {
    text-decoration: line-through;
    opacity: 0.4;
    background-color: transparent !important;
}

.synthesis-word.sortable-ghost {
    opacity: 0.4;
    background-color: #cbd5e1;
}

.tyrk-train-btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 12px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.tyrk-train-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.tyrk-train-success {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 0.9rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

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