/* style.css */
body {
    background: transparent; /* Чтобы встраивать в iframe или div */
    font-family: 'Roboto', sans-serif;
    color: #ccc;
    margin: 0;
    padding: 0;
}

/* Основной контейнер */
.fp-comment-system {
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid #3a2c18;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
}

/* Шапка */
.fp-header {
    background: linear-gradient(180deg, #1f1a12 0%, #0f0c08 100%);
    border-bottom: 2px solid #634f24;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fp-header h2 {
    font-family: 'Cinzel', serif;
    color: #e6c56b; /* Золото */
    margin: 0;
    font-size: 18px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(230, 197, 107, 0.5);
}

.fp-header .fa-fire {
    color: #d13a1e;
}

.online-stat {
    font-size: 12px;
    color: #666;
}

/* Форма отправки */
.fp-write-box {
    padding: 20px;
    border-bottom: 1px solid #222;
    background: #141414;
}

.fp-input-row {
    margin-bottom: 10px;
}

/* Стилизация Select */
.fp-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 250px;
}

.fp-select-wrapper i {
    position: absolute;
    left: 10px;
    top: 10px;
    color: #e6c56b;
}

select {
    width: 100%;
    padding: 8px 10px 8px 35px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 3px;
    appearance: none;
    font-family: 'Roboto', sans-serif;
}
select:focus {
    border-color: #e6c56b;
    outline: none;
}

/* Текстовое поле */
.fp-textarea-wrapper {
    position: relative;
    border: 1px solid #333;
    background: #080808;
    border-radius: 3px;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    height: 80px;
    background: transparent;
    border: none;
    color: #ddd;
    padding: 10px;
    resize: vertical;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
textarea:focus {
    outline: none;
}

/* Тулбар */
.fp-toolbar {
    background: #111;
    border-top: 1px solid #222;
    padding: 5px;
    position: relative;
}

.tool-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}
.tool-btn:hover {
    color: #e6c56b;
}

.emoji-popup {
    position: absolute;
    bottom: 35px;
    left: 0;
    background: #222;
    border: 1px solid #444;
    padding: 5px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}
.emoji-popup span {
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}
.emoji-popup span:hover {
    background: #333;
    border-radius: 3px;
}

/* Кнопки и капча */
.fp-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fp-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
}

#captcha-input {
    width: 60px;
    padding: 6px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    text-align: center;
}

.fp-btn-gold {
    background: linear-gradient(180deg, #b88a00 0%, #634f24 100%);
    border: 1px solid #ffd700;
    color: #fff;
    padding: 8px 25px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(184, 138, 0, 0.3);
}

.fp-btn-gold:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    transform: translateY(-1px);
}

/* Список комментариев */
.fp-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
}
/* Скроллбар */
.fp-list::-webkit-scrollbar { width: 6px; }
.fp-list::-webkit-scrollbar-track { background: #000; }
.fp-list::-webkit-scrollbar-thumb { background: #444; }

.comment-card {
    background: linear-gradient(90deg, #1a1a1a 0%, #111 100%);
    border-left: 3px solid #333;
    margin-bottom: 12px;
    padding: 10px;
    display: flex;
    gap: 15px;
    transition: 0.3s;
}
.comment-card:hover {
    border-left-color: #e6c56b;
    background: #1f1f1f;
}

.c-avatar {
    width: 40px;
    height: 40px;
    background: #000;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 20px;
}

.c-body {
    flex: 1;
}

.c-meta {
    font-size: 11px;
    color: #777;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}
.c-author {
    color: #e6c56b;
    font-weight: bold;
    font-size: 13px;
}
.c-text {
    font-size: 14px;
    line-height: 1.4;
    color: #ddd;
    word-break: break-word;
}
.c-text .emoji {
    font-style: normal;
}

/* Сообщения об ошибках */
.msg-error { color: #ff4444; font-size: 12px; margin-top: 5px; }
.msg-success { color: #44ff44; font-size: 12px; margin-top: 5px; }
.fp-auth-alert { text-align: center; padding: 20px; color: #888; font-size: 14px; }
.fp-auth-alert a { color: #e6c56b; text-decoration: none; }