/* 🪶 Neumorphism Kanji Name Finder Style - Based on Katakana Converter */

/* 1. ANA KONTEYNER STİLİ */
#aijnf-main-container {
    text-align: center;
    background: #fff8f5;
    border-radius: 1.5rem;
    /* Neumorphism gölgesi */
    box-shadow: 10px 10px 20px #e5dcd8, -10px -10px 20px #ffffff;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 520px; /* Kanji için biraz daha geniş */
    font-family: "Noto Sans JP", sans-serif;
    transition: all 0.3s ease;
}

#aijnf-main-container:hover {
    box-shadow: 8px 8px 18px #e1d8d3, -8px -8px 18px #fff;
}

/* Başlıklar */
#aijnf-main-container h2, #aijnf-main-container h3 {
    color: #333;
    font-weight: 700;
    margin-top: 0;
}

/* 2. INPUT VE BUTON STİLLERİ */
.aijnf-input-group {
    display: flex;
    justify-content: center;
    gap: 10px; /* Input ve Buton arasına boşluk */
    margin-bottom: 2rem;
}

/* Input Alanı (Aynı Neumorphism Input Stili) */
#aijnf-name-input {
    flex-grow: 1; /* Input'un genişlemesini sağla */
    max-width: 300px;
    padding: 0.7rem 1rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 1rem;
    text-align: center;
    background: #fff;
    /* İçten gelen Neumorphism gölgesi */
    box-shadow: inset 4px 4px 8px #ddd6d1, inset -4px -4px 8px #ffffff;
    transition: 0.3s ease;
}

#aijnf-name-input:focus {
    outline: none;
    box-shadow: inset 4px 4px 10px #e4c7c3, inset -4px -4px 10px #fff;
}

/* Buton (Aynı Kırmızı Neumorphism Buton Stili) */
#aijnf-find-btn, .copy-btn {
    background: linear-gradient(145deg, #ff4a4a, #e33);
    color: #fff;
    border: none;
    border-radius: 1rem;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    /* Dıştan gelen Neumorphism gölgesi */
    box-shadow: 4px 4px 8px #d9c9c6, -4px -4px 8px #fff;
    white-space: nowrap; /* Metnin tek satırda kalmasını sağla */
}

#aijnf-find-btn:hover, .copy-btn:hover {
    background: linear-gradient(145deg, #cc3a3a, #e33); /* Hover'da biraz koyulaştır */
    transform: translateY(-1px);
    box-shadow: 2px 2px 5px #bbb;
}

/* 3. SONUÇ VE HATA STİLLERİ */

/* Katakana Çıktısı (Büyük ve dikkat çekici) */
.katakana-output #aijnf-katakana-output {
    font-size: 2.2rem;
    color: #444;
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 1.5rem;
}

/* Bilgi Metni */
.aijnf-info-text {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Hata Mesajı */
#aijnf-error-message {
    color: #e33;
    font-weight: 600;
    margin: 1rem 0;
    padding: 10px;
    border: 1px solid #ffaa99;
    background-color: #fff0f0;
    border-radius: 0.5rem;
}

/* 4. KANJI SEÇENEKLERİ STİLİ */
.kanji-options {
    margin-top: 1.5rem;
}

.kanji-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    /* Dış Neumorphism (daha yumuşak) */
    box-shadow: 4px 4px 8px #e5dcd8, -4px -4px 8px #ffffff; 
}

.kanji-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    flex: 0 0 120px; /* Kanji karakteri için sabit alan */
    text-align: left;
}

.kanji-meaning {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
    text-align: left;
    padding-left: 15px;
    padding-right: 15px;
    line-height: 1.4;
}

/* 5. RESPONSIVE DÜZENLEME */
@media (max-width: 550px) {
    .aijnf-input-group {
        flex-direction: column;
    }
    #aijnf-name-input {
        max-width: 100%;
        width: 90%;
        margin: 0 auto 10px auto;
    }
    #aijnf-find-btn {
        width: 90%;
        margin: 0 auto;
    }
    
    .kanji-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 1.2rem;
    }

    .kanji-text {
        font-size: 1.5rem;
        margin-bottom: 5px;
        flex: none;
    }

    .kanji-meaning {
        padding: 0;
        margin-bottom: 10px;
    }
}