/*
Theme Name: Barristar Child
Theme URI: http://themeforest.net/user/wpoceans/portfolio/
Author: wpoceans
Author URI: http://themeforest.net/user/wpoceans
Description: Barristar – Lawyers attorneys and Law Firm WordPress Theme
Template:	barristar 
Version: 1.0
Text Domain: barristar-child
*/
add_filter('gettext', function ($translated, $text, $domain) {
    if ($text === 'Home') {
        return 'Anasayfa';
    }
    return $translated;
}, 20, 3);

/* Sidebar row dışında render edildiği için flex ile container seviyesinde düzeltme */
@media (min-width: 768px) {
    .blog-single-section.right-sidebar .content-area,
    .blog-single-section.left-sidebar .content-area {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
    }
    .blog-single-section.right-sidebar .content-area .row,
    .blog-single-section.left-sidebar .content-area .row { 
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
    }
    .blog-single-section.right-sidebar .blog-sidebar,
    .blog-single-section.left-sidebar .blog-sidebar {
        flex: 0 0 33.3333% !important;
        max-width: 33.3333% !important;
        margin-top: 0 !important;
        padding-left: 30px !important;
    }
}

/* Feature widget 4'lü grid */
.elementor-widget-barristar-feature .feature-col {
    width: 25% !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
}
@media (max-width: 991px) {
    .elementor-widget-barristar-feature .feature-col {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}
@media (max-width: 575px) {
    .elementor-widget-barristar-feature .feature-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Feature kartlarında başlık hizalaması */
.feature-title {
    min-height: 60px;
    display: flex;
    align-items: flex-start;
}

/* =========================================
   YORUM FORMU STİLLERİ
   ========================================= */

/* Web Sitesi ve çerez alanlarını gizle */
.comment-form-URL,
input#url,
.comment-form-url,
.comment-form-cookies-consent {
    display: none !important;
}

/* Tüm kutuları temaya uydur */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="tel"],
.comment-form textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="tel"] {
    background-color: #f7f7f7 !important;
    border: none !important;
    padding: 15px 20px !important;
    width: 100% !important;
    color: #333 !important;
    border-radius: 2px !important;
    box-sizing: border-box !important;
}

/* Ad Soyad — her zaman tam genişlik */
.comment-form-author {
    width: 100% !important;
    margin-bottom: 15px !important;
    position: relative !important;
    clear: both !important;
}

/* Masaüstü: E-posta ve Telefon yan yana */
@media (min-width: 768px) {
    .comment-form-email {
        width: 48% !important;
        float: left !important;
        margin-bottom: 15px !important;
        position: relative !important;
        clear: both !important;
    }
    .comment-form-phone {
        width: 48% !important;
        float: right !important;
        margin-bottom: 15px !important;
        position: relative !important;
    }
    .comment-form-kvkk,
    .form-textarea,
    .comment-form textarea {
        clear: both !important;
        display: block !important;
    }
}

/* Mobil: E-posta ve Telefon alt alta */
@media (max-width: 767px) {
    .comment-form-email,
    .comment-form-phone {
        width: 100% !important;
        float: none !important;
        margin-bottom: 15px !important;
        position: relative !important;
    }
}

/* Mesaj kutusu */
.comment-form textarea,
.form-textarea textarea {
    min-height: 150px !important;
    margin-top: 15px !important;
    width: 100% !important;
}

/* Label'ları gizle */
.comment-form-author label,
.comment-form-email label,
.comment-form-phone label {
    display: none !important;
}

/* Cookie consent kutusunu gizle */
.comment-form-cookies-consent,
p.comment-form-cookies-consent {
    display: none !important;
}

/* Checkbox'ların genişliğini düzelt (tema tüm input'lara width:100% uyguluyor) */
.comment-form input[type="checkbox"],
.comment-respond input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
}

/* KVKK satırı: checkbox ve yazı yan yana */
.comment-form-kvkk label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    flex-wrap: wrap !important;
}

/* Gönder butonu */
.form-submit #submit,
.comment-form .submit,
#respond input[type="submit"] {
    background-color: #d1c29e !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 35px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 15px !important;
}

.form-submit #submit:hover,
.comment-form .submit:hover,
#respond input[type="submit"]:hover {
    background-color: #bfae8a !important;
}
