/* Contenitore Principale (Nero puro) */
.comments-section {
    margin-top: 40px;
    padding: 25px;
    background: #000000;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border: 1px solid #1a1a1a;
}

.comments-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* Modulo di inserimento commento */
.comment-form-container {
    margin-bottom: 30px;
}

.comment-form-container .form-group {
    margin-bottom: 15px;
}

.comment-form-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #000000;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
}

.comment-form-container input:focus {
    border-color: #00b4d8;
    outline: none;
}

/* Caselle di testo (blocco resize e nero puro) */
.comment-form-container textarea,
.reply-form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #000000;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.3s;
    
    /* Blocca lo sfasamento della pagina */
    resize: vertical; 
    min-height: 80px; 
    max-height: 250px; 
}

.comment-form-container textarea:focus,
.reply-form-container textarea:focus {
    border-color: #00b4d8;
    outline: none;
}

.comment-form-container button {
    background: #00b4d8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.1s;
}

.comment-form-container button:hover {
    background: #0096b4;
}

.comment-form-container button:active {
    transform: scale(0.98);
}

#commentMessage {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

#commentMessage.success {
    color: #4ade80;
}

#commentMessage.error {
    color: #f87171;
}

/* Stile dei singoli commenti già pubblicati */
.comment-item {
    background: #000000;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #444;
    border: 1px solid #222;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.comment-author {
    font-weight: bold;
    color: #00b4d8;
}

.comment-date {
    color: #888;
    font-size: 12px;
}

.comment-body {
    line-height: 1.6;
    word-break: break-word;
    color: #ddd;
}

/* Bottone Carica Altri */
#loadMoreComments {
    background: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

#loadMoreComments:hover {
    background: #444;
    color: #00b4d8;
}

/* -------------------------------------
   STILI PER L'OWNER (Risposte e Azioni)
   ------------------------------------- */

.owner-reply-block {
    margin-top: 15px;
    padding: 12px 15px;
    background: #1a1a1a;
    border-left: 3px solid #00b4d8;
    border-radius: 4px;
    font-size: 14px;
}

.owner-reply-block strong {
    color: #00b4d8;
}

.reply-date {
    color: #777;
    font-size: 12px;
    margin-left: 10px;
}

.reply-content {
    margin-top: 8px;
    line-height: 1.5;
    color: #ccc;
}

.owner-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.owner-actions button {
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    transition: filter 0.2s;
}

.owner-actions button:hover {
    filter: brightness(0.9);
}

.btn-reply {
    background: #4ade80;
    color: #052e16;
}

.btn-delete {
    background: #f87171;
    color: #fff;
}

.reply-form-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #444;
}

.btn-submit-reply {
    background: #00b4d8;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 5px;
    transition: background 0.3s;
}

.btn-submit-reply:hover {
    background: #0096b4;
}
/* Tasto per eliminare solo la risposta dell'owner */
.btn-delete-reply {
    background: transparent;
    color: #f87171;
    border: 1px solid #f87171;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-reply:hover {
    background: #f87171;
    color: #000;
}