/*
Theme Name: Anfal Sports Wellness (ASW)
Author: Binbin Keren
Description: Style Tambahan untuk Komentar dan Penyesuaian Lanjutan.
Version: 1.0.2 (Kembali ke Style Komentar Standar)
*/

/* ------------------------------------------- */
/* === PENTING: Style CSS selanjutnya (di luar Global, Home, Single, Responsive) DILANJUTKAN DI FILE INI === */
/* ------------------------------------------- */


/* === 1. TAMPILAN KOMENTAR (comments.php) - VERSI STANDAR/BERSIH === */

/* Area Utama Komentar */
.comments-area {
    margin-top: 4em;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
}

body.dark-mode .comments-area {
    background-color: var(--dark-bg-light);
    border-color: var(--dark-border-color);
}

/* Judul Komentar */
.comments-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

body.dark-mode .comments-title {
    color: var(--accent-color);
    border-bottom-color: var(--dark-border-color);
}

/* List Komentar */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    padding: 20px 0;
    border-bottom: 1px dashed var(--border-color); 
    /* MENGHILANGKAN SEMUA INDENT MANUAL LI UTAMA */
    margin-left: 0;
}

.comment-list li:last-child {
    border-bottom: none;
}

body.dark-mode .comment-list li {
    border-bottom-color: var(--dark-border-color);
}


/* Struktur Komentar Individual */
.comment-body {
    /* MENGHILANGKAN FLEX YANG MENGGANGGU */
    display: block; 
    padding: 0;
}

/* Avatar */
.comment-author {
    float: left; /* Kembalikan ke float klasik */
    margin-right: 15px; 
}
.comment-author img {
    border-radius: 50%;
    width: 48px; 
    height: 48px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}
body.dark-mode .comment-author img {
    border-color: var(--accent-color);
}


/* Metadata & Konten */
.comment-meta {
    margin-bottom: 5px;
}

.comment-content {
    /* Hapus semua style bubble: background, padding, shadow */
    background-color: transparent; 
    border: none;
    padding: 0;
    box-shadow: none;
    overflow: hidden; /* Penting untuk membersihkan float avatar */
}

/* Teks di dalam konten */
.comment-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
}
body.dark-mode .comment-content p {
    color: var(--dark-text-color);
}

/* Reply Link (Tombol Balas) */
.reply {
    margin-top: 10px;
    font-size: 0.85rem;
    text-align: left; /* Kembali ke kiri */
    clear: both; /* Penting untuk membersihkan float */
}

.reply a {
    color: var(--accent-color);
    font-weight: 600;
}


/* Nested Comments (Balasan/Replies) */
.children {
    list-style: none;
    margin: 20px 0 0 0; 
    /* Gunakan indentasi standar WordPress (margin-left) yang lebih aman */
    padding-left: 0;
}
.children li.comment {
    /* Indentasi balasan anak: 48px (avatar) + 15px (margin) */
    margin-left: 63px; 
    margin-top: 15px;
    border-top: 1px dotted var(--border-color);
    padding-top: 15px;
}
body.dark-mode .children li.comment {
    border-top-color: var(--dark-border-color);
}

/* === 2. FORM KOMENTAR (Leave a Reply) - KEEPING PREVIOUS STYLES === */
/* ... (Tetap pakai style form komentar sebelumnya, hanya memastikan tidak ada konflik) ... */

#reply-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode #reply-title {
    color: var(--dark-text-color);
    border-bottom-color: var(--dark-border-color);
}

.comment-form p {
    margin-bottom: 15px;
    width: 100%;
}

.comment-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-color);
}

body.dark-mode .comment-form label {
    color: var(--dark-text-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-light);
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 168, 232, 0.2); 
    outline: none;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-mode .comment-form input[type="url"],
body.dark-mode .comment-form textarea {
    background-color: var(--dark-bg-color);
    border-color: var(--dark-border-color);
    color: var(--dark-text-color);
}

/* Tombol Submit */
#submit {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    width: auto; 
}

#submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Bagian Cookies Checkbox */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
}