/* Valthor — interaktywne forum (PHP). Rozszerza forum.css. */

/* Pasek nawigacji okruszkowej */
.forum-breadcrumb {
    width: min(920px, 92vw);
    margin: 0 auto;
    padding: clamp(0.75rem, 2vh, 1.25rem) 0 0;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.forum-breadcrumb a {
    color: rgba(212, 175, 55, 0.8);
    text-decoration: none;
}

.forum-breadcrumb a:hover {
    color: var(--gold-light);
}

.forum-breadcrumb span {
    margin: 0 0.4rem;
    opacity: 0.5;
}

/* Przyciski */
.forum-btn {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold-light);
    font-family: "Cinzel", serif;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.forum-btn:hover {
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-light);
}

.forum-btn--ghost {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.7);
}

.forum-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Metadane / liczniki w wierszu wątku */
.forum-thread__count {
    float: right;
    margin-left: 1rem;
    font-size: 0.58rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.forum-empty {
    padding: 1.1rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Pojedynczy post w wątku */
.forum-post {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.55);
}

.forum-post__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    background: rgba(212, 175, 55, 0.06);
}

.forum-post__author {
    font-family: "Cinzel", serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-light);
}

.forum-post__date {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.forum-post__body {
    padding: 0.9rem 1rem;
    font-size: 0.86rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.forum-post--op {
    border-color: rgba(212, 175, 55, 0.3);
}

/* Formularze (nowy wątek / odpowiedź) */
.forum-form {
    margin-top: 1.25rem;
    padding: 1.1rem 1.15rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.55);
}

.forum-form__title {
    margin: 0 0 0.9rem;
    font-family: "Cinzel", serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.forum-form__row {
    margin-bottom: 0.85rem;
}

.forum-form__label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.forum-form__input,
.forum-form__textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.9);
    font-family: "Lato", sans-serif;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.forum-form__textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.forum-form__input:focus,
.forum-form__textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* Honeypot — ukryte pole anty-spamowe */
.forum-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.forum-form__actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.4rem;
}

/* Komunikaty */
.forum-alert {
    width: min(920px, 92vw);
    margin: 1rem auto 0;
    padding: 0.7rem 1rem;
    font-size: 0.78rem;
    border-left: 3px solid;
}

.forum-alert--error {
    border-color: #e0564f;
    background: rgba(224, 86, 79, 0.12);
    color: #f3b6b2;
}

.forum-alert--ok {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
}

/* Paginacja */
.forum-pager {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.forum-pager a,
.forum-pager span {
    min-width: 2rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
    font-size: 0.68rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.forum-pager a:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.forum-pager .is-current {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-light);
}
