/**
 * Gästebuch - Styling
 * BikerFreunde-Rath e.V.
 *
 * Nutzt die generische Card-Komponente (card.css) als Basis
 */

/* ========================================
   Gästebuch-spezifische Quill Editor Höhen
   ======================================== */
.quill-editor {
    min-height: 300px;
}

.quill-editor .ql-editor {
    min-height: 250px;
}

/* ========================================
   Guestbook Entries List
   ======================================== */
.guestbook-entries {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.guestbook-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 1rem;
}

/* ========================================
   Guestbook Entry - Card-Erweiterungen
   ======================================== */

/* Header-Content Wrapper für flex-direction: column */
.guestbook-entry-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Badge für nicht freigegebene Einträge */
.guestbook-entry-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--accent-color);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 40, 20, 0.3);
    align-self: flex-start;
}

.guestbook-entry-badge .material-symbols-outlined {
    font-size: 18px;
}

/* Title (Name + Datum) */
.guestbook-entry-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.guestbook-entry-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.guestbook-entry-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.guestbook-entry-city {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.guestbook-entry-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Text Content */
.guestbook-entry-text {
    line-height: 1.6;
    color: var(--text-primary);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    display: flow-root;
}

.guestbook-entry-text p {
    margin: 0 0 1rem 0;
}

.guestbook-entry-text p:last-child {
    margin-bottom: 0;
}

.guestbook-entry-text a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.guestbook-entry-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.guestbook-entry-text ul,
.guestbook-entry-text ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.guestbook-entry-text li {
    margin: 0.25rem 0;
}

/* Website Link */
.guestbook-entry-website {
    margin-top: 1rem;
}

.guestbook-entry-website a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.2s ease;
}

.guestbook-entry-website a:hover {
    opacity: 0.8;
}

.guestbook-entry-website .material-symbols-outlined {
    font-size: 18px;
}

/* ========================================
   Reply (Antwort vom Team)
   ======================================== */
.guestbook-entry-reply {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-color);
    border-radius: 8px;
}

.guestbook-reply-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.guestbook-reply-text {
    color: var(--text-primary);
    line-height: 1.6;
    display: flow-root;
}

.guestbook-reply-text p {
    margin: 0 0 1rem 0;
}

.guestbook-reply-text p:last-child {
    margin-bottom: 0;
}


/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .guestbook-entry-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .guestbook-entry-date {
        font-size: 0.8rem;
    }

    .guestbook-entry-name {
        font-size: 1.1rem;
    }

    .guestbook-entry-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        gap: 0.25rem;
    }

    .guestbook-entry-badge .material-symbols-outlined {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .guestbook-entries {
        gap: 1rem;
    }

    .guestbook-entry-name {
        font-size: 1rem;
    }

    .guestbook-entry-city {
        font-size: 0.8rem;
    }

    .guestbook-entry-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        gap: 0.2rem;
    }

    .guestbook-entry-badge .material-symbols-outlined {
        font-size: 12px;
    }
}
