@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Gochi+Hand&display=swap');

/* TAM İZOLASYON: Tüm kurallar sadece bu ID altındaki .bnp-container'ı etkiler */

/* Container ayarları */
#enlezzetlisi-tool-wrapper .bnp-container {
    font-family: 'Quicksand', sans-serif !important;
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    color: #374151;
    line-height: 1.5;
    /* Container'ın kendisi için box-sizing */
    box-sizing: border-box; 
}

/* Container İÇİNDEKİ tüm elemanlar için box-sizing */
/* Bu kural sadece eklenti içindeki elemanları hedefler, sitenin menüsüne dokunmaz */
#enlezzetlisi-tool-wrapper .bnp-container * {
    box-sizing: border-box !important;
    font-family: 'Quicksand', sans-serif !important;
}

/* Header Alanı */
#enlezzetlisi-tool-wrapper .bnp-header {
    background: #ef4444;
    padding: 30px 20px;
    text-align: center;
    border-radius: 2.5rem 2.5rem 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.2);
}

#enlezzetlisi-tool-wrapper .bnp-main-title {
    font-family: 'Gochi Hand', cursive !important;
    color: #ffffff !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: clamp(2rem, 6vw, 3rem) !important;
    position: relative;
    z-index: 10;
    line-height: 1.2;
}

#enlezzetlisi-tool-wrapper .bnp-subtitle {
    margin-top: 0;
    color: #fef2f2;
    font-size: 0.75rem;
    opacity: 0.9;
    font-style: italic;
    position: relative;
    z-index: 10;
}

/* Dekorasyon SVG'leri */
#enlezzetlisi-tool-wrapper .bnp-banner-deco {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

#enlezzetlisi-tool-wrapper .bnp-deco-svg {
    position: absolute;
    fill: white;
    opacity: 0.15;
    animation: bnp-sway 10s ease-in-out infinite;
}

#enlezzetlisi-tool-wrapper .bnp-deco-1 { top:10%; left:5%; width:40px; }
#enlezzetlisi-tool-wrapper .bnp-deco-2 { top:50%; right:10%; width:30px; }
#enlezzetlisi-tool-wrapper .bnp-deco-3 { top:20%; right:20%; width:35px; }
#enlezzetlisi-tool-wrapper .bnp-deco-4 { bottom:10%; left:25%; width:25px; }

@keyframes bnp-sway {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(10px, 10px) rotate(15deg); }
}

/* Ana Layout (Form ve Sonuç Alanı) */
#enlezzetlisi-tool-wrapper .bnp-content-layout {
    padding: 1.5rem;
    background: #ffffff;
    border-bottom-left-radius: 2.5rem;
    border-bottom-right-radius: 2.5rem;
    border-left: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease;
}

@media (min-width: 768px) {
    #enlezzetlisi-tool-wrapper .bnp-content-layout { padding: 2.5rem; }
}

/* Masaüstü Görünüm (Split View Logic) */
@media (min-width: 1024px) {
    /* Sonuç geldiğinde yan yana dizilme */
    #enlezzetlisi-tool-wrapper .bnp-content-layout.has-result {
        display: flex;
        flex-direction: row;
        gap: 50px;
        align-items: flex-start;
    }
    
    /* Başlangıçta form %100 genişlikte */
    #enlezzetlisi-tool-wrapper .bnp-form-side { 
        width: 100%; 
        transition: width 0.5s ease;
    }
    
    /* Sonuç gelince form daralır */
    #enlezzetlisi-tool-wrapper .bnp-content-layout.has-result .bnp-form-side {
        flex: 0 0 420px;
        width: 420px;
    }
    
    /* Sonuç alanı */
    #enlezzetlisi-tool-wrapper .bnp-result-side { 
        flex: 1; 
        min-width: 0; 
        position: sticky; 
        top: 20px; 
    }
}

#enlezzetlisi-tool-wrapper .bnp-form-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Form Grupları */
#enlezzetlisi-tool-wrapper .bnp-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#enlezzetlisi-tool-wrapper .bnp-label {
    display: flex;
    align-items: center;
    color: #1f2937;
    font-weight: 700;
    font-size: 1.125rem;
}

#enlezzetlisi-tool-wrapper .bnp-icon {
    margin-right: 0.5rem;
    width: 22px;
    height: 22px;
}

/* Zorluk Kartları (Grid) */
#enlezzetlisi-tool-wrapper .bnp-difficulty-grid {
    display: grid;
    /* Kartların sıkışmasını önleyen responsive yapı */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

/* Mobilde kartlar çok küçülürse alt alta geçsin */
@media (max-width: 600px) {
    #enlezzetlisi-tool-wrapper .bnp-difficulty-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

#enlezzetlisi-tool-wrapper .bnp-difficulty-card {
    cursor: pointer;
    padding: 12px 8px;
    border: 2px solid #f3f4f6;
    border-radius: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#enlezzetlisi-tool-wrapper .bnp-difficulty-card:hover { border-color: #fecaca; }

#enlezzetlisi-tool-wrapper .bnp-difficulty-card.active {
    background: #fee2e2;
    border-color: #ef4444;
    transform: scale(1.02);
}

/* Kart İçeriği - Özelleştirilmiş Sınıflar */
#enlezzetlisi-tool-wrapper .bnp-card-emoji { font-size: 1.2rem; margin-bottom: 2px; }
#enlezzetlisi-tool-wrapper .bnp-card-label { font-weight: 700; font-size: 0.75rem; color: #1f2937; }
#enlezzetlisi-tool-wrapper .bnp-card-desc { font-size: 0.65rem; color: #6b7280; font-style: italic; margin-top: 2px; }

/* Input Alanları */
#enlezzetlisi-tool-wrapper .bnp-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.3s ease;
}

#enlezzetlisi-tool-wrapper .bnp-input-group:focus-within {
    border-color: #ef4444;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

#enlezzetlisi-tool-wrapper .bnp-addon {
    padding: 0 18px;
    display: flex;
    align-items: center;
    background: #f3f4f6;
    color: #9ca3af;
    font-weight: 700;
    font-size: 1.2rem;
    border-right: 2px solid #e5e7eb;
}

#enlezzetlisi-tool-wrapper .bnp-field {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 18px !important;
    outline: none !important;
    font-size: 1rem !important;
    width: 100%;
    line-height: 1.5;
}

#enlezzetlisi-tool-wrapper .bnp-textarea { resize: none; height: 8rem; }
#enlezzetlisi-tool-wrapper .bnp-field::placeholder { color: #9ca3af; opacity: 0.8; }

/* Captcha Alanı */
#enlezzetlisi-tool-wrapper #bnp-captcha-area {
    background-color: rgba(254, 242, 242, 0.5);
    padding: 1.5rem;
    border-radius: 2rem;
    border: 2px dashed #fee2e2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#enlezzetlisi-tool-wrapper .bnp-captcha-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

#enlezzetlisi-tool-wrapper #bnp-captcha-question {
    background: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-weight: 900;
    font-size: 1.5rem;
    color: #ef4444;
    border: 1px solid #f9fafb;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

#enlezzetlisi-tool-wrapper .bnp-captcha-field {
    width: 6rem;
    padding: 0.75rem;
    background: #fff;
    border: 2px solid #f3f4f6;
    border-radius: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: none;
}
#enlezzetlisi-tool-wrapper .bnp-captcha-field:focus { border-color: #ef4444; }

/* Ana Buton */
#enlezzetlisi-tool-wrapper #bnp-generateBtn {
    background: #1e3a3a;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 20px;
    border-radius: 1.25rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
    box-shadow: 0 8px 20px -5px rgba(30, 58, 58, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

#enlezzetlisi-tool-wrapper #bnp-generateBtn:hover { background: #2d5a5a; transform: translateY(-2px); }
#enlezzetlisi-tool-wrapper #bnp-generateBtn:disabled { background: #94a3b8; cursor: not-allowed; opacity: 0.8; }

/* Loading ve Hata Mesajları */
#enlezzetlisi-tool-wrapper .bnp-hidden { display: none !important; }

#enlezzetlisi-tool-wrapper #bnp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1rem;
}

#enlezzetlisi-tool-wrapper .bnp-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border-width: 2px;
    border-style: solid;
    border-color: #e5e7eb;
    border-bottom-color: #ef4444;
    animation: spin 1s linear infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

#enlezzetlisi-tool-wrapper #bnp-loading p { font-size: 0.875rem; font-weight: 700; color: #9ca3af; margin:0; }

#enlezzetlisi-tool-wrapper #bnp-errorBox {
    padding: 1.25rem;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 1rem;
    font-size: 0.875rem;
    border: 1px solid #fee2e2;
    margin-top: 10px;
}

/* Sonuç Alanı */
#enlezzetlisi-tool-wrapper #bnp-result {
    margin-top: 2.5rem;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
    overflow: hidden;
}
@media (min-width: 1024px) { #enlezzetlisi-tool-wrapper #bnp-result { margin-top: 0; } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#enlezzetlisi-tool-wrapper .bnp-result-inner {
    padding: 2.5rem;
    background: rgba(255, 247, 237, 0.5);
    border: 1px solid #ffedd5;
    border-radius: 3rem;
    position: relative;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* Şef Çıktısı Tipografi */
#enlezzetlisi-tool-wrapper .recipe-result-container {
    color: #1f2937;
    font-size: 1rem;
}

#enlezzetlisi-tool-wrapper .recipe-result-container h2 {
    color: #ef4444 !important;
    font-family: 'Gochi Hand', cursive !important;
    font-size: 2.2rem !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
    border-bottom: none !important;
}

#enlezzetlisi-tool-wrapper .recipe-result-container h3 {
    color: #374151 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin-top: 25px !important;
    margin-bottom: 15px !important;
}

#enlezzetlisi-tool-wrapper .recipe-result-container p { margin-bottom: 1rem !important; line-height: 1.7 !important; }
#enlezzetlisi-tool-wrapper .recipe-result-container ul { list-style-type: disc !important; padding-left: 1.5rem !important; margin-bottom: 1rem !important; }
#enlezzetlisi-tool-wrapper .recipe-result-container li { margin-bottom: 0.5rem !important; }

/* Şefin Sırrı */
#enlezzetlisi-tool-wrapper .bnp-chef-tip {
    background: #fff1f2;
    padding: 15px;
    border: 1px dashed #e11d48;
    border-radius: 8px;
    margin: 15px 0;
    color: #881337;
}

/* Footer Notu */
#enlezzetlisi-tool-wrapper .bnp-footer-note {
    padding: 2rem;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}