/* ========================================
   GUESTBOOK.CSS - Guestbook Widget Styles
======================================== */

.guestbook-box {
    border: 2px solid var(--wired-cyan);
}

.guestbook-box .box-body {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 20, 20, 0.4);
}

#guestbook-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--wired-pink) var(--bg);
}

.guestbook-entry {
    border-left: 2px solid #555;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    transition: border-color 0.2s;
}

.guestbook-entry:hover {
    border-left-color: var(--wired-pink);
}

.guestbook-entry .entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-family: var(--f-pixel);
    font-size: 0.6rem;
    border-bottom: 1px dashed var(--border-muted);
    padding-bottom: 2px;
}

.guestbook-entry .entry-name {
    color: var(--wired-pink);
    font-weight: bold;
}

.guestbook-entry .entry-date {
    color: var(--fg-dim);
}

.guestbook-entry .entry-message {
    color: var(--fg);
    line-height: 1.4;
    word-wrap: break-word;
    margin-top: 4px;
}

#guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px solid var(--wired-cyan);
    padding-top: 10px;
}

#guestbook-form input,
#guestbook-form textarea {
    background: var(--bg);
    border: 1px solid var(--border-muted);
    color: var(--wired-green);
    font-family: var(--f-mono);
    font-size: 0.75rem;
    padding: 8px;
    resize: none;
    transition: all 0.2s;
}

#guestbook-form input:focus,
#guestbook-form textarea:focus {
    border-color: var(--wired-green);
    outline: none;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
}

#guestbook-form input::placeholder,
#guestbook-form textarea::placeholder {
    color: #444;
    text-transform: uppercase;
}

#guestbook-form textarea {
    min-height: 60px;
}

#guestbook-form button {
    background: var(--bg);
    border: 1px solid var(--wired-green);
    color: var(--wired-green);
    font-family: var(--f-pixel);
    font-size: 0.75rem;
    padding: 10px 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s;
}

#guestbook-form button:hover {
    background: var(--wired-green);
    color: #000;
    box-shadow: 0 0 10px var(--wired-green);
}

#guestbook-form button:disabled {
    opacity: 0.5;
    cursor: wait;
    border-color: #555;
    color: #555;
}

.guestbook-loading,
.guestbook-error {
    text-align: center;
    padding: 20px;
    font-family: var(--f-pixel);
    font-size: 0.65rem;
}

.guestbook-error {
    color: var(--wired-pink);
}

.guestbook-empty {
    text-align: center;
    color: var(--fg-dim);
    font-style: italic;
    padding: 20px;
    font-size: 0.75rem;
}