/* Request System Extension - Main Styles */
.request-comments-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    scroll-margin-top: 100px;
    transition: background-color 0.5s ease-out;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.comment-row:target,
.comment-row.highlight-target {
    background-color: #fff9c4 !important; /* Soft yellow highlight */
    animation: highlightFade 2s ease-out;
}

@keyframes highlightFade {
    0% { background-color: #fff176; }
    100% { background-color: transparent; }
}

.comment-avatar img,
.user-avatar-container img {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-body {
    flex: 1;
    position: relative;
    min-width: 0; /* Important for flexbox child stability */
    word-wrap: break-word;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: bold;
    font-size: 1.1em;
}

.comment-time {
    font-size: 0.85em;
    color: #888;
}

.comment-content {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 0 12px 12px 12px;
    line-height: 1.5;
    color: #444;
}

.comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.comment-action-btn {
    font-size: 0.8em;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none !important;
}

.comment-action-btn:hover {
    color: #555;
}

.comment-action-btn.delete:hover {
    color: #e74c3c;
}

/* Comment Form */
.comment-form-container {
    margin-top: 25px;
}

#comment-text {
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #ddd;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    resize: vertical;
}

#comment-text:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}


/* Animations */
@keyframes fadeInComment {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.new_comment_anim {
    animation: fadeInComment 0.4s ease-out;
}

/* Fulfilled Request Highlights */
.fulfilled-request-bg {
    background-color: #f0fff4 !important; /* Light mint green */
    border: 1px solid #c6f6d5 !important;
    position: relative;
    overflow: hidden;
}

.fulfilled-request-bg::after {
    content: "\f058"; /* fa-check-circle */
    font-family: FontAwesome;
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 80px;
    color: rgba(72, 187, 120, 0.05); /* Very subtle watermark */
    transform: rotate(15deg);
}

.fulfilled-alert {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #c6f6d5;
    border-left: 5px solid #48bb78;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.dark .fulfilled-alert {
    background: rgba(22, 101, 52, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    border-left-color: #22c55e !important;
}

.fulfilled-icon {
    font-size: 24px;
    color: #48bb78;
    margin-right: 15px;
}

.dark .fulfilled-icon { color: #4ade80; }

.fulfilled-title {
    font-weight: bold;
    color: #2f855a;
    margin: 0 0 3px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .fulfilled-title { color: #4ade80; }

.fulfilled-text {
    margin: 0;
    color: #4a5568;
    font-size: 13px;
}

.dark .fulfilled-text { color: #cbd5e1; }

.fulfilled-link {
    font-weight: bold;
    color: #2f855a !important;
    text-decoration: underline !important;
}

.fulfilled-link:hover {
    color: #276749 !important;
}

/* Duplicate Request Highlights */
.duplicate-request-bg {
    background-color: #fffaf0 !important; /* Light amber/orange */
    border: 1px solid #feebc8 !important;
    position: relative;
    overflow: hidden;
}

.duplicate-request-bg::after {
    content: "\f0c5"; /* fa-copy */
    font-family: FontAwesome;
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 80px;
    color: rgba(237, 137, 54, 0.05); /* Very subtle watermark */
    transform: rotate(15deg);
}

.duplicate-alert {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #feebc8;
    border-left: 5px solid #ed8936;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.dark .duplicate-alert {
    background: rgba(161, 98, 7, 0.1) !important;
    border-color: rgba(234, 179, 8, 0.3) !important;
    border-left-color: #f59e0b !important;
}

.duplicate-icon {
    font-size: 24px;
    color: #ed8936;
    margin-right: 15px;
}

.dark .duplicate-icon { color: #facc15; }

.duplicate-title {
    font-weight: bold;
    color: #c05621;
    margin: 0 0 3px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .duplicate-title { color: #facc15; }

.duplicate-text {
    margin: 0;
    color: #4a5568;
    font-size: 13px;
}

.dark .duplicate-text { color: #cbd5e1; }

.duplicate-link {
    font-weight: bold;
    color: #c05621 !important;
    text-decoration: underline !important;
}

.duplicate-link:hover {
    color: #9c4221 !important;
}

/* Incorrect Request Highlights */
.incorrect-request-bg {
    background-color: #fff5f5 !important; /* Very light red/gray */
    border: 1px solid #fed7d7 !important;
    position: relative;
    overflow: hidden;
}

.incorrect-request-bg::after {
    content: "\f071"; /* fa-exclamation-triangle */
    font-family: FontAwesome;
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 80px;
    color: rgba(229, 62, 62, 0.05); /* Very subtle watermark */
    transform: rotate(15deg);
}

.incorrect-alert {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #fed7d7;
    border-left: 5px solid #e53e3e;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.dark .incorrect-alert {
    background: rgba(153, 27, 27, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    border-left-color: #ef4444 !important;
}

.incorrect-icon {
    font-size: 24px;
    color: #e53e3e;
    margin-right: 15px;
}

.dark .incorrect-icon { color: #f87171; }

.incorrect-title {
    font-weight: bold;
    color: #9b2c2c;
    margin: 0 0 3px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .incorrect-title { color: #f87171; }

.incorrect-text {
    margin: 0;
    color: #4a5568;
    font-size: 13px;
}

.dark .incorrect-text { color: #cbd5e1; }

.incorrect-link {
    font-weight: bold;
    color: #9b2c2c !important;
    text-decoration: underline !important;
}

.incorrect-link:hover {
    color: #742a2a !important;
}

.comments-locked-msg {
    background: #fef2f2;
    border: 1px dashed #fecaca;
    color: #b91c1c;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-style: italic;
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(185, 28, 28, 0.05);
}

.comments-locked-msg i {
    margin-right: 8px;
    color: #ef4444;
}

.dark .comments-locked-msg {
    background: rgba(153, 27, 27, 0.1) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
}

.dark .comments-locked-msg i {
    color: #f87171 !important;
}

.vote-count-locked {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 5px 0;
}

.vote-count-locked .up-count { color: #2e8b57; }
.vote-count-locked .down-count { color: #cd5c5c; }
.vote-count-locked .divider { color: #cadceb; }

.dark .vote-count-locked .up-count { 
    background: rgba(34, 197, 94, 0.1) !important; 
    color: #4ade80 !important; 
    padding: 4px 12px; 
    border-radius: 8px; 
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.dark .vote-count-locked .down-count { 
    background: rgba(239, 68, 68, 0.1) !important; 
    color: #f87171 !important; 
    padding: 4px 12px; 
    border-radius: 8px; 
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.dark .vote-count-locked .divider { 
    color: #475569 !important; 
    margin: 0 10px; 
}

/* Vote buttons (Official Style) */
.minivote {
    line-height: normal;
    white-space: nowrap;
    border-radius: 6px;
    color: #ffffff !important;
    position: relative;
    display: inline-block;
    float: left;
    box-sizing: border-box;
    width: 80px;
    margin-right: 10px;
    padding: 6px 10px;
    text-decoration: none !important;
}

.minivote .icon {
    font-size: 16px;
    padding-right: 0;
    padding-left: 0;
}

.minivote .vote-count {
    font-family: Verdana, Arial, sans-serif;
    font-size: 14px;
    text-align: center;
    display: inline-block;
    width: 40px;
}

.vote-up,
.vote-up.vote-disabled:hover {
    background: #00a9e2 !important;
    border: solid 1px #00a9e2 !important;
}

.vote-up:hover {
    background: #009ad1 !important;
}

.vote-up.vote-disabled {
    opacity: 0.6;
    cursor: default;
}

.dark .vote-up {
    background: rgba(30, 58, 138, 0.2) !important;
    border: 1px solid #3b82f6 !important;
    color: #3b82f6 !important;
}

.vote-down,
.vote-down.vote-disabled:hover {
    background: #f76c5e !important;
    border: solid 1px #f76c5e !important;
}

.vote-down:hover {
    background: #e56155 !important;
}

.dark .vote-down {
    background: rgba(153, 27, 27, 0.2) !important;
    border: 1px solid #ef4444 !important;
    color: #ef4444 !important;
}

.vote-down.vote-disabled {
    opacity: 0.6;
    cursor: default;
}

/* Status Badges (Inspired by official) */
.badge {
    border-radius: 3px;
    color: #ffffff !important;
    display: inline-block;
    padding: 3px 6px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.status-new { background-color: #6495ed; }
.status-progress { background-color: #daa520; }
.status-fulfilled { background-color: #9acd32; }
.status-duplicate { background-color: #b22222; }
.status-incorrect { background-color: #6b7280; }

.fulfill-btn {
    background: #15803d !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    padding: 6px 15px !important;
    border-radius: 6px !important;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Adjust for the list view version to avoid cutoff */
.minivote.fulfill-btn {
    padding: 2px 10px !important;
    width: auto !important;
    height: auto !important;
    min-height: 32px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

.fulfill-btn:hover {
    background: #166534 !important;
}

.dark .fulfill-btn {
    background: rgba(22, 101, 52, 0.1) !important;
    border: 1px solid #22c55e !important;
    color: #4ade80 !important;
}

.dark .fulfill-btn:hover {
    background: rgba(22, 101, 52, 0.2) !important;
}

/* Premium Design System */
:root {
    --premium-primary: #3b82f6;
    --premium-success: #10b981;
    --premium-danger: #ef4444;
    --premium-warning: #f59e0b;
    --premium-dark: #1e293b;
    --premium-light: #f8fafc;
    --premium-border: #e2e8f0;
}

/* Premium Button System */
.premium-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--premium-border);
    color: var(--premium-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.premium-btn:hover {
    background: var(--premium-light);
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.premium-btn-primary {
    background: var(--premium-primary);
    color: #fff !important;
    border: none;
}

.premium-btn-primary:hover {
    background: #2563eb;
}

/* Premium Card Layout */
.premium-card {
    background: #ffffff;
    border: 1px solid var(--premium-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Tooltip Essentials */
.premium-tooltip {
    position: relative;
}

.premium-tooltip-text {
    visibility: hidden;
    background-color: var(--premium-dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 0.75rem;
    white-space: nowrap;
}

.premium-tooltip:hover .premium-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* Internal Request Page - 3 Blocks Layout */
.request-view-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

/* Block 1: Media Header */
.request-media-header {
    background-color: transparent;
    border: none;
    display: flex;
    gap: 25px;
}

.media-poster-box {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.media-poster-box img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #cadceb;
}

.media-info-box {
    flex: 1;
}

.media-info-box h2 {
    font-size: 2em;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #105289; 
    border: none;
    padding: 0;
}

.media-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cadceb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    color: #536482;
    margin-bottom: 5px;
    white-space: nowrap;
}

.media-overview {
    color: #333;
    font-size: 1.05em;
    line-height: 1.5;
    margin-top: 15px;
}

/* Status Background Overrides (Isolated to request system) */
.request-view-container.request-status-fulfilled > .panel:not(#comments) { background-color: #e2f3e2 !important; border-color: #b7dbb7 !important; }
.request-view-container.request-status-duplicate > .panel:not(#comments) { background-color: #fdf0d5 !important; border-color: #f5d5a7 !important; }
.request-view-container.request-status-incorrect > .panel:not(#comments) { background-color: #fbe2e2 !important; border-color: #f7b7b7 !important; }

/* Status Badge Colors */
.badge.request-status-new { background-color: #105289; color: #ffffff; }
.badge.request-status-progress { background-color: #daa520; color: #ffffff; }
.badge.request-status-fulfilled { background-color: #2e8b57; color: #ffffff; }
.badge.request-status-duplicate { background-color: #e67e22; color: #ffffff; }
.badge.request-status-incorrect { background-color: #cd5c5c; color: #ffffff; }

/* Block 2: Actions Bar */
.request-actions-bar {
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-label {
    font-size: 0.75em;
    text-transform: uppercase;
    font-weight: bold;
    color: #536482;
    margin-bottom: 4px;
    display: block;
}

/* Block 3: Description & Comments */
.request-content-main {
    background-color: transparent;
    border: none;
}

.request-description-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 12px;
    color: #105289;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card {
    background: #eef5f9; /* Azul claro padrão phpBB */
    padding: 20px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: none;
}

.stat-card i {
    font-size: 24px;
    color: #105289;
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: none;
}

.stat-card .stat-val {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #105289;
}

.stat-card .stat-label {
    font-size: 0.85em;
    color: #536482;
    text-transform: uppercase;
    font-weight: 600;
}

/* Home Page List Alignment */
dl.row-item {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 50px;
}

dl.row-item dt {
    flex-grow: 1;
    width: auto !important;
}

dd.topics {
    text-align: right !important;
    width: 280px !important;
    padding-right: 15px !important;
    flex-shrink: 0;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.vote-stats-display {
    font-size: 1.6em;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.vote-stats-display .up-count { color: #2e8b57; }
.vote-stats-display .down-count { color: #cd5c5c; }
.vote-stats-display .divider { color: #cadceb; }

.dark .vote-stats-display .up-count { 
    background: rgba(34, 197, 94, 0.1); 
    color: #4ade80; 
    padding: 4px 10px; 
    border-radius: 6px; 
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.dark .vote-stats-display .down-count { 
    background: rgba(239, 68, 68, 0.1); 
    color: #f87171; 
    padding: 4px 10px; 
    border-radius: 6px; 
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.dark .vote-stats-display .divider { color: #475569; }

.minivote {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 0 !important;
    margin-left: 10px;
    height: 32px; /* Altura fixa para alinhar todos */
}
.reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #6b7280 !important;
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    text-decoration: none !important;
}

.dark .reward-badge {
    background-color: #374151 !important;
    color: #e5e7eb !important;
}

.reward-badge i {
    font-size: 12px;
}

/* Dark Mode Overrides for Status Backgrounds (Zeina Compatible) */
.dark .request-view-container.request-status-fulfilled > .panel:not(#comments) { 
    background-color: rgba(22, 101, 52, 0.1) !important; 
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.dark .request-view-container.request-status-duplicate > .panel:not(#comments) { 
    background-color: rgba(161, 98, 7, 0.1) !important; 
    border-color: rgba(133, 77, 14, 0.5) !important;
}

.dark .request-view-container.request-status-incorrect > .panel:not(#comments) { 
    background-color: rgba(153, 27, 27, 0.1) !important; 
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.dark .request-description-title, 
.dark .media-info-box h2,
.dark .action-label {
    color: #cbd5e1 !important;
}

.dark .media-overview,
.dark .content {
    color: #e2e8f0 !important;
}

/* Dark Mode Badge Overrides */
.dark .badge.request-status-new,
.dark .status-new { 
    background-color: rgba(30, 58, 138, 0.2) !important; 
    color: #3b82f6 !important; 
    border: 1px solid #1e3a8a !important; 
}

.dark .badge.request-status-progress,
.dark .status-progress { 
    background-color: rgba(161, 98, 7, 0.2) !important; 
    color: #eab308 !important; 
    border: 1px solid #854d0e !important; 
}

.dark .badge.request-status-fulfilled { background-color: rgba(22, 101, 52, 0.2) !important; color: #4ade80 !important; border-color: #166534 !important; }
.dark .badge.request-status-duplicate { background-color: rgba(161, 98, 7, 0.2) !important; color: #eab308 !important; border-color: #854d0e !important; }
.dark .badge.request-status-incorrect { background-color: rgba(153, 27, 27, 0.2) !important; color: #f87171 !important; border-color: #991b1b !important; }

.dark .reward-badge {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
    border: 1px solid #334155 !important;
}
