/**
 * Youzify Tributos Memorial - Public Styles
 */
#ytm-tributos {
    max-width: 800px;
    margin: 30px auto;
    font-family: var(--ytm-font, inherit);
    color: var(--ytm-text-color, #444);
}

.ytm-form-container {
    background: var(--ytm-form-bg, #fdfaf5);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--ytm-border-color, #e8d9c0);
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ytm-form-container h2 {
    margin: 0 0 25px;
    color: var(--ytm-primary-color, #b8860b);
    font-size: 1.8em;
    text-align: center;
}

.form-group {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ytm-text-color, #444);
}

#ytm-tributos input[type="text"],
#ytm-tributos input[type="email"],
#ytm-tributos textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ytm-border-color, #e8d9c0);
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    color: var(--ytm-text-color, #444);
}

#ytm-tributos textarea {
    height: 140px;
    resize: vertical;
}

.ytm-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.ytm-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
}

#ytm-tributos button {
    background: var(--ytm-primary-color, #b8860b);
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    display: block;
    margin: 25px auto 0;
    min-width: 220px;
    transition: background 0.3s;
}

#ytm-tributos button:hover {
    background: var(--ytm-accent-color, #9f7309);
}

.ytm-tributos-aprovados {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ytm-tributos-aprovados h2 {
    color: var(--ytm-text-color, #444);
    border-bottom: 3px solid var(--ytm-primary-color, #b8860b);
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 1.9em;
}

.ytm-count {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    text-align: right;
}

.ytm-tributos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#ytm-tributos ul.ytm-tributos-list li.ytm-tributo-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--ytm-border-color, #e8d9c0);
    margin-bottom: 50px !important;
}

.ytm-tributo-item:last-child {
    border-bottom: none;
}

.ytm-author {
    color: var(--ytm-primary-color, #b8860b);
    font-size: 1.25em;
    font-weight: 600;
}

.ytm-date {
    font-size: 0.9em;
    color: #777;
    margin-left: 12px;
}

.ytm-content {
    margin-top: 15px;
    line-height: 1.8;
    color: var(--ytm-text-color, #444);
    white-space: pre-wrap;
}

.ytm-empty {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 30px 0;
    font-size: 1.1em;
}

.ytm-owner-info {
    background: #fff8e1;
    color: #5d4037;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 4px solid var(--ytm-primary-color, #b8860b);
}

/* Moderação */
.ytm-pending {
    background: #fffcf5;
    border-left: 4px solid #ffb300 !important;
    padding-left: 15px !important;
}

.ytm-status-badge {
    background: #ffb300;
    color: #fff;
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}

.ytm-moderation-actions {
    margin-top: 15px;
    border-top: 1px dashed var(--ytm-border-color, #e8d9c0);
    padding-top: 12px;
}

.ytm-moderation-actions button {
    display: inline-block !important;
    margin: 0 10px 0 0 !important;
    min-width: auto !important;
    padding: 8px 18px !important;
    font-size: 0.9em !important;
}

.ytm-btn-approve {
    background: #2e7d32 !important;
}

.ytm-btn-approve:hover {
    background: #1b5e20 !important;
}

.ytm-btn-delete {
    background: #c62828 !important;
}

.ytm-btn-delete:hover {
    background: #b71c1c !important;
}

.ytm-tributo-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ytm-recaptcha-wrapper {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ytm-consent-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ytm-consent-wrapper input[type="checkbox"] {
    width: auto !important;
    margin: 0;
    cursor: pointer;
}

.ytm-consent-label {
    margin: 0;
    font-size: 0.95em;
    font-weight: normal;
    cursor: pointer;
    color: var(--ytm-text-color, #444);
}

.ytm-consent-label a {
    color: var(--ytm-primary-color, #b8860b);
    text-decoration: underline;
}

.ytm-consent-label a:hover {
    color: var(--ytm-accent-color, #9f7309);
}

/* Seletor de Ícones (Velas/Santos) - Estilo Rating */
/* Seletor de Ícones (Velas/Santos) - Estilo Rating Independente */
.ytm-icon-selector {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.ytm-rating-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ytm-rating-label {
    font-size: 0.9em;
    color: var(--ytm-text-color, #444);
    font-weight: 600;
}

.ytm-rating-group {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border: 2px solid var(--ytm-border-color, #e8d9c0);
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    align-self: flex-start;
    gap: 4px;
}

.ytm-rating-group.selected {
    border-color: var(--ytm-primary-color, #b8860b);
    background: #fffef9;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.15);
}

.ytm-rating-icon {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    filter: grayscale(100%) opacity(40%);
    transition: transform 0.1s ease, filter 0.2s ease;
    user-select: none;
}

.ytm-rating-icon:hover {
    transform: scale(1.15);
}

.ytm-rating-icon.hover-active,
.ytm-rating-icon.active {
    filter: grayscale(0%) opacity(100%);
}

.ytm-tribute-stars {
    display: inline-flex;
    align-items: center;
    background: #fffcf5;
    padding: 4px 8px;
    border-radius: 20px;
    margin-left: 8px;
    border: 1px solid var(--ytm-border-color, #e8d9c0);
}