/* Helpful Page Feedback - Frontend CSS */

.mainview {
	background: #fff;
	padding: 20px;
}

#hpf-feedback-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    background-color: #f9f9f9;
    text-align: center; /* Butonları ve soruyu ortalamak için */
}

.hpf-question {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #333;
}

.hpf-actions {
    display: flex;
    justify-content: center; /* Butonları yatayda ortalamak için */
    gap: 10px;
    margin-bottom: 15px;
}

.hpf-button {
    padding: 10px 15px; /* Varsayılan */
    border-width: 1px;
    border-style: solid;
    border-color: #6c47ff; /* Varsayılan tema rengi */
    border-radius: 3px; /* Varsayılan */
    background-color: #6c47ff; /* Varsayılan tema rengi */
    color: #ffffff; /* Varsayılan */
    width: auto; /* Varsayılan */
    height: auto; /* Varsayılan */
    margin: 0 5px; /* Varsayılan */
    cursor: pointer;
    font-size: 1.2em; /* İkonları büyütmek için, bu sabit kalabilir veya ayarlanabilir */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    min-width: 50px; /* Minimum genişlik, bu sabit kalabilir */
    min-height: 50px; /* Minimum yükseklik, bu sabit kalabilir */
    text-decoration: none;
}

.hpf-button:hover {
    filter: brightness(90%); 
}

/* Seçili durumlar için özel stiller */
.hpf-button.hpf-selected-yes,
.hpf-button.hpf-selected-no {
    background-color: #5a38cc; /* Biraz daha koyu bir tema rengi */
    color: #ffffff;
    border-color: #5a38cc;
}

/* Eğer seçili butonlar için farklı bir hover efekti isteniyorsa, onlar da burada tanımlanabilir */
.hpf-button.hpf-selected-yes:hover,
.hpf-button.hpf-selected-no:hover {
    filter: brightness(110%); /* Seçili iken hover olunca biraz daha parlak yapabiliriz */
}

.hpf-icon {
    /* İkon stilleri buraya eklenebilir */
    /* Örneğin: */
    /* line-height: 1; */
    /* vertical-align: middle; */
}

/* Modal Styles */
.hpf-modal-hidden {
    display: none;
}

#hpf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Yarı saydam siyah arka plan */
    z-index: 99999999; /* Daha yüksek z-index değeri */
    display: flex;
    align-items: center;
    justify-content: center;
}

#hpf-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 2px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh; /* YENİ: Modal'ın maksimum yüksekliği viewport'un %90'ı */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: left;
    z-index: 100000000; /* Overlay z-index'inden (99999999) daha yüksek */
    display: flex;
    flex-direction: column; /* YENİ: İçeriği dikey olarak düzenle */
}

.hpf-modal-close-button {
    position: absolute;
    top: 10px; /* Modal content padding'ini (30px) düşünerek ayarlandı */
    right: 10px; /* Modal content padding'ini (30px) düşünerek ayarlandı */
    background: none;
    border: none;
    font-size: 40px; /* Biraz küçültüldü */
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    z-index: 100000001; /* Modal content z-index'inden daha yüksek */
    padding: 5px; /* İçerikle arasında biraz boşluk */
    line-height: 1; /* Satır yüksekliğini ayarla */
    display: flex; /* flex olarak kalsın */
    align-items: center;
    justify-content: center;
    width: 30px; /* Sabit genişlik */
    height: 30px; /* Sabit yükseklik */
    border-radius: 50%; /* Tamamen yuvarlak yapmak için */
}

.hpf-modal-close-button:hover {
    color: #333;
    background-color: #f0f0f0; /* Hover durumunda hafif bir arka plan */
}

/* YENİ: Modal body için scrollable container */
#hpf-modal-body {
    display: flex; /* YENİ: Flex layout kullan */
    flex-direction: column; /* YENİ: Dikey hizalama */
    max-height: 90vh; /* YENİ: Modal'ın maksimum yüksekliği */
    overflow: hidden; /* YENİ: Ana body'de scroll kaldır */
    margin-bottom: 0; /* YENİ: Alt margin'i kaldır */
    padding-right: 0; /* YENİ: Sağ padding'i kaldır */
}

/* YENİ: Modal header kısmı (başlık, alt başlık, soru, ana butonlar) */
#hpf-modal-body .hpf-modal-header {
    flex-shrink: 0; /* YENİ: Header'ın küçülmesini engelle */
    padding-bottom: 15px; /* YENİ: Alt boşluk */
}

/* YENİ: Scrollable content kısmı (checkbox grubu ve sonrası) */
#hpf-modal-body .hpf-modal-scrollable {
    flex: 1; /* YENİ: Kalan alanı kapla */
    overflow-y: auto; /* YENİ: Dikey scroll ekle */
    overflow-x: hidden; /* YENİ: Yatay scroll'u gizle */
    padding-right: 5px; /* YENİ: Scrollbar için alan */
    margin-bottom: 15px; /* YENİ: Alt boşluk */
}

#hpf-modal-body h2 {
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

#hpf-modal-body p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555;
}

#hpf-modal-body .hpf-modal-question {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333;
}

#hpf-modal-body .hpf-actions {
    margin-bottom: 20px;
    justify-content: flex-start; /* Butonları sola yaslamak için */
}

#hpf-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

#hpf-modal-body textarea,
#hpf-modal-body input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 1em;
}

/* YENİ: Karakter sayacı stilleri */
.hpf-char-counter {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 0px;
    text-align: right;
    padding-right: 21px;
}

.hpf-char-counter.hpf-char-warning {
    color: #d63638;
    font-weight: bold;
}

.hpf-char-counter .hpf-char-count {
    font-weight: bold;
}

.hpf-checkbox-group {
    border: 2px solid #ccc;
	padding: 4px;
}

#hpf-modal-body .hpf-checkbox-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    margin-bottom: 1px;
    padding: 6px 10px; /* Arka planın daha iyi görünmesi için eklendi */
    border-radius: 1px; /* Arka plan için köşeleri yuvarlatma */
    transition: background-color 0.25s ease-in-out; /* Yumuşak geçiş efekti */
}

/* Yeni kural: Checkbox seçiliyken etiketin arka planını değiştirir */
#hpf-modal-body .hpf-checkbox-group label:has(input[type="checkbox"]:checked) {
    background-color: #ffe0e6; /* Tatlı bir açık kırmızı/pembe tonu */
}

#hpf-modal-body .hpf-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.hpf-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0; /* YENİ: Üst margin'i sıfırla çünkü modal body'de zaten margin var */
    flex-shrink: 0; /* YENİ: Butonların küçülmesini engelle */
    padding-top: 15px; /* YENİ: Üstten biraz boşluk */
    border-top: 1px solid #eee; /* YENİ: Butonları içerikten ayırmak için ince çizgi */
}

.hpf-modal-button {
    padding: 10px 20px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hpf-modal-button-cancel {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
}

.hpf-modal-button-cancel:hover {
    background-color: #e0e0e0;
}

.hpf-modal-button-submit {
    background-color: #6c47ff; /* Mor */
    border: 1px solid #6c47ff;
    color: #fff;
}

.hpf-modal-button-submit:hover {
    background-color: #5a38cc;
    border-color: #5a38cc;
}

/* Thank You Modal Specific Styles */

/* NEW: Styles for the Thank You Modal Overlay */
#hpf-thank-you-modal.hpf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Match main modal overlay */
    z-index: 100000000; /* Ensure it is on top, slightly higher than main modal's z-index if necessary, or same */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles for the Blocked Feedback Modal Overlay */
.hpf-blocked-modal-overlay.hpf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999998; /* Diğer modallardan biraz daha altta olabilir veya aynı seviyede */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure content within blocked modal is also styled similarly if needed */
.hpf-blocked-modal-overlay .hpf-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 2px;
    width: 90%;
    max-width: 500px; /* Thank you modal'dan biraz daha dar olabilir */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center; /* Engelleme mesajı için metni ortala */
    z-index: 99999999; /* Overlay'dan yüksek */
}

.hpf-blocked-modal-overlay .hpf-modal-content h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.hpf-blocked-modal-overlay .hpf-modal-content p {
    font-size: 1em;
    margin-bottom: 25px;
    color: #555;
}

.hpf-blocked-modal-overlay .hpf-modal-content .hpf-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    padding: 5px;
    line-height: 1;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hpf-blocked-modal-overlay .hpf-modal-content .hpf-close-button:hover {
    color: #333;
    background-color: #f0f0f0;
}

.hpf-blocked-modal-overlay .hpf-modal-content .hpf-modal-button {
    padding: 10px 20px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    background-color: #6c47ff;
    border: 1px solid #6c47ff;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hpf-blocked-modal-overlay .hpf-modal-content .hpf-modal-button:hover {
    background-color: #5a38cc;
    border-color: #5a38cc;
}

/* NEW: Styles for the Thank You Modal Content Box - ensuring it's above its own overlay part if structured that way, and centered */
#hpf-thank-you-modal .hpf-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 2px;
    width: 90%;
    max-width: 550px; /* Same as main modal */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative; /* For absolute positioning of close button if needed */
    text-align: center; /* Center align the text content */
    /* z-index: 100000001; /* Ensure content is above its overlay part, if applicable */
}

/* Adjusting existing thank you content styles to work with the new structure */
#hpf-thank-you-modal .hpf-modal-content .hpf-thank-you-icon {
    font-size: 4em; /* Daha büyük ikon */
    margin-bottom: 20px;
    color: #6c47ff; /* Mor */
}

#hpf-thank-you-modal .hpf-modal-content h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333; /* Added color for consistency */
}

#hpf-thank-you-modal .hpf-modal-content p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555; /* Added color for consistency */
}

/* Ensuring the close button and action button within thank you modal are styled like main modal ones if not already covered */
#hpf-thank-you-modal .hpf-modal-content .hpf-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    padding: 5px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 100000002; /* Higher than content */
}

#hpf-thank-you-modal .hpf-modal-content .hpf-close-button:hover {
    color: #333;
    background-color: #f0f0f0;
}

#hpf-thank-you-modal .hpf-modal-content .hpf-modal-button {
    /* This will inherit from .hpf-modal-button, but specific overrides can go here */
    /* Example: if the thank you button needs to be styled differently */
    /* background-color: #6c47ff; */
    /* color: #fff; */
}

/* Confetti - Basit bir örnek, daha gelişmiş bir animasyon için JS kütüphanesi gerekebilir */
#hpf-modal-overlay.hpf-confetti-active {
    /* Buraya konfeti animasyonu için stiller eklenebilir */
    /* Örneğin, pseudo-elementlerle rastgele noktalar oluşturulabilir */
}

/* YENİ: "Diğer" seçeneği için container stilleri */
#hpf-other-text-container {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

#hpf-other-text-container label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

#hpf-other-text-container textarea {
    width: calc(100% - 20px) !important;
    margin-bottom: 10px !important;
    resize: vertical;
    min-height: 80px;
}

#hpf-other-text-container .hpf-char-counter {
    margin-bottom: 5px;
}

/* YENİ: Modal scrollable kısmı için custom scrollbar stilleri */
#hpf-modal-body .hpf-modal-scrollable::-webkit-scrollbar {
    width: 8px;
}

#hpf-modal-body .hpf-modal-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#hpf-modal-body .hpf-modal-scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

#hpf-modal-body .hpf-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox için scrollbar stilleri */
#hpf-modal-body .hpf-modal-scrollable {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
} 