/* XenForo Style Code & Hide BBCode System */

/* Code block box */
.phc-bb-code {
    background: #090a0d;
    border: 1px solid var(--phc-border);
    border-radius: var(--phc-radius);
    margin: 14px 0;
    overflow: hidden;
    font-family: "JetBrains Mono", Consolas, "Fira Code", monospace;
    font-size: 13px;
}

[data-theme="light"] .phc-bb-code {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.phc-bb-code__header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.phc-bb-code__copy {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.phc-bb-code__copy:hover {
    background: var(--phc-primary);
    border-color: var(--phc-primary);
    color: #ffffff;
}

.phc-bb-code__body {
    padding: 14px;
    margin: 0;
    overflow-x: auto;
    color: #f8fafc;
    line-height: 1.6;
}

/* Locked Content Alert Box (Exact XenForo Style from user screenshot) */
.phc-bb-hide--locked {
    background: #141518;
    border: 1px solid #282a30;
    border-left: 3px solid #e11d48;
    border-radius: 4px;
    padding: 12px 18px;
    margin: 14px 0;
    display: flex;
    align-items: center;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}

.phc-bb-hide__text {
    color: #cbd5e1;
    font-size: 13px;
}

[data-theme="light"] .phc-bb-hide--locked {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #e11d48;
    color: #0f172a;
}

[data-theme="light"] .phc-bb-hide--locked {
    background: #fff1f2;
    border-color: #f43f5e;
    border-left-color: #e11d48;
    color: #090a0f;
}

.phc-bb-hide__lock-icon {
    font-size: 24px;
    color: #e11d48;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phc-bb-hide__lock-content strong {
    display: block;
    font-size: 14px;
    color: #e11d48;
    margin-bottom: 2px;
}

.phc-bb-hide__lock-content p {
    margin: 0;
    font-size: 12.5px;
    color: var(--phc-text-muted);
}

/* Unlocked Content Box */
.phc-bb-hide--unlocked {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid #22c55e;
    border-left: 5px solid #22c55e;
    border-radius: var(--phc-radius);
    margin: 14px 0;
    overflow: hidden;
}

[data-theme="light"] .phc-bb-hide--unlocked {
    background: #f0fdf4;
    border-color: #4ade80;
    border-left-color: #16a34a;
    color: #090a0f;
}

.phc-bb-hide__header {
    background: rgba(34, 197, 94, 0.12);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phc-bb-hide__body {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--phc-text);
}

/* XenForo Style Quote Block */
.phc-bb-quote {
    margin: 14px 0;
    padding: 12px 16px;
    background: rgba(19, 25, 38, 0.7);
    border: 1px solid var(--phc-border, #1f293d);
    border-left: 3px solid var(--phc-primary, #00c0f3);
    border-radius: var(--phc-radius, 6px);
    color: var(--phc-text-muted, #8b9bb4);
    font-size: 13.5px;
    line-height: 1.6;
}

.phc-bb-quote__author {
    font-size: 12px;
    font-weight: 700;
    color: var(--phc-primary, #00c0f3);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phc-bb-quote__author-link {
    color: var(--phc-primary, #00c0f3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.phc-bb-quote__author-link:hover {
    text-decoration: underline;
    color: #38bdf8;
}

.phc-bb-quote__content {
    color: var(--phc-text, #f0f4fc);
    font-size: 13.5px;
}

[data-theme="light"] .phc-bb-quote {
    background: #f8fafc;
    border-color: #cbd5e1;
    border-left-color: #0284c7;
    color: #475569;
}

[data-theme="light"] .phc-bb-quote__content {
    color: #1e293b;
}

[data-theme="light"] .phc-bb-quote__author,
[data-theme="light"] .phc-bb-quote__author-link {
    color: #0284c7;
}

/* User Mention Tag (@username) */
.phc-mention {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 192, 243, 0.12);
    color: var(--phc-primary, #00c0f3);
    border: 1px solid rgba(0, 192, 243, 0.28);
    padding: 1px 7px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.92em;
    text-decoration: none;
    transition: all 0.15s ease;
    vertical-align: baseline;
}

.phc-mention i {
    font-size: 0.85em;
    opacity: 0.85;
}

.phc-mention:hover {
    background: rgba(0, 192, 243, 0.25);
    border-color: var(--phc-primary, #00c0f3);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 192, 243, 0.5);
    transform: translateY(-1px);
}

[data-theme="light"] .phc-mention {
    background: rgba(2, 132, 199, 0.08);
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .phc-mention:hover {
    background: rgba(2, 132, 199, 0.18);
    color: #0369a1;
}

/* Replying to @username Indicator Bar */
.phc-replying-to-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: rgba(0, 192, 243, 0.08);
    border: 1px solid rgba(0, 192, 243, 0.25);
    border-radius: 6px;
    margin-bottom: 12px;
    animation: phcSlideIn 0.2s ease-out;
}

.phc-replying-to-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--phc-text, #f0f4fc);
}

.phc-replying-to-content i {
    color: var(--phc-primary, #00c0f3);
}

.phc-replying-to-content strong {
    color: var(--phc-primary, #00c0f3);
    font-weight: 700;
}

.phc-replying-to-close {
    background: transparent;
    border: none;
    color: var(--phc-text-muted, #8b9bb4);
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.phc-replying-to-close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

@keyframes phcSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

