﻿﻿/* =========================================
   TOKYO NIGHT COMMENTS (Final Version)
   ========================================= */

/* Container für einzelne Kommentare */
.comment {
    clear: both;
    margin-bottom: 1.5em;
    padding: 1.5em;
    background-color: var(--dark); /* Dark Mode Grau */
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    gap: 1rem;
    flex-direction: row;
    transition: border-color 0.2s ease;
}

.comment:hover {
    border-color: var(--blue);
}
.comment h2{
 border-top: 1px dashed var();
margin-top:40px !important;
}

/* Avatar / Icon Bereich */
.comment-icon {
    float: none;
    margin-right: 0;
    flex-shrink: 0;
}

.comment-icon img {
    border-radius: 50%;
    border: 2px solid var(--border);
    width: 48px;
    height: 48px;
    box-shadow: none;
    margin: 0;
}

/* Der eigentliche Inhalt */
.comment-main {
    display: block;
    width: 100%;
}

/* Header des Kommentars (Name & Datum) */
.comment-info {
    font-size: 0.85em;
    margin-bottom: 0.5em;
    /* border-bottom: 1px dashed var(--border); */
    /* padding-bottom: 0.5em; */
    /* display: flex; */
    /* justify-content: space-between; */
    /* align-items: center; */
    /* flex-wrap: wrap; */
    color: var(--comment);
    font-family: 'JetBrains Mono', monospace;
}

.comment-name {
    font-weight: 800;
    color: var(--cyan);
    font-family: 'Inter', sans-serif;
    display: inline;
}

.comment-date {
    display: inline;
    font-family: 'JetBrains Mono', monospace;
    color: var(--purple);
    font-size: 0.75rem;
}

/* Nachricht */
.comment p {
    margin: 0.5em 0 0 0;
    color: var(--fg);
    line-height: 1.6;
}

/* =========================================
   FORMULAR DESIGN
   ========================================= */

.comment-form .form-control {
    width: 100%;
    box-sizing: border-box;
}

form div {
    margin-bottom: 1em;
}

/* Inputs & Textareas */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    background-color: var(--bg);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.8em;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: none;
    -webkit-appearance: none;
}

input:focus, 
textarea:focus {
    background-color: var(--bg);
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(122, 162, 247, 0.2);
}

::placeholder {
    color: var(--comment);
    opacity: 1;
}

/* Buttons */
input[type="submit"],
button {
    background-color: var(--blue);
    color: var(--bg); /* Kontrast-Text */
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
}

input[type="submit"]:hover,
button:hover {
    background-color: var(--cyan);
}

.separate {
    margin-bottom: 3em;
    border-bottom: 1px solid var(--border);
}

.comment-charcount {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--comment);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 0.2em;
}

/* =========================================
   STATUS MELDUNGEN (Erfolg / Fehler)
   ========================================= */

/* Basis-Styling für Status */
.incomplete, .invalid, .error, 
.none, .done, .closed, 
.status {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    border-left: 5px solid;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    display: block !important;
    background-color: var(--dark);
}

/* Fehler: Rot (Tokyo Red) */
.incomplete, .invalid, .error {
    border-color: #f7768e;
    color: #f7768e;
    background-color: rgba(247, 118, 142, 0.1);
}

/* Erfolg: Grün (Tokyo Green) */
.none, .done, .closed {
    border-color: var(--code);
    color: var(--code);
    background-color: rgba(158, 206, 106, 0.1);
}

/* Spam-Falle (Honey Pot) sicher verstecken */
.comment-message {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================
   MOBILE
   ========================================= */
@media screen and (max-width: 600px) {
    .comment {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    .comment-icon {
        margin-bottom: 0.5rem;
    }
    .comment-icon img {
        width: 40px;
        height: 40px;
    }
    .comment-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}
