/* ===== Publish PR / News — Premium UI ===== */
.publish-pr-page {
    padding-bottom: 60px;
    background: #f4f6f9;
}

.dark-mode .publish-pr-page {
    background: #111;
}

/* Hero */
.publish-pr-hero {
    position: relative;
    overflow: hidden;
    padding: 32px 0 0;
    margin-bottom: -40px;
}

.publish-pr-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--vr-theme-color, #c62828) 0%, #8b0000 50%, #1a1a2e 100%);
    z-index: 0;
}

.publish-pr-hero-bg::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.publish-pr-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.publish-pr-hero-content {
    position: relative;
    z-index: 1;
}

.publish-pr-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.publish-pr-breadcrumb .breadcrumb-item a,
.publish-pr-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.publish-pr-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.publish-pr-hero-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 28px;
}

.publish-pr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.publish-pr-hero-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.publish-pr-hero-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}

.publish-pr-hero-stats {
    display: flex;
    gap: 16px;
}

.publish-pr-stat {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    min-width: 100px;
}

.publish-pr-stat strong {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.publish-pr-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Steps bar */
.publish-pr-steps-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px 28px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
    gap: 0;
}

.dark-mode .publish-pr-steps-bar {
    background: #1e1e1e;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
}

.publish-pr-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: #888 !important;
    flex: 1;
    transition: color 0.2s;
}

.publish-pr-step-item:hover,
.publish-pr-step-item.active {
    color: var(--vr-theme-color, #c62828) !important;
}

.publish-pr-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    color: #666;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.25s;
}

.publish-pr-step-item.active .publish-pr-step-num,
.publish-pr-step-item:hover .publish-pr-step-num {
    background: var(--vr-theme-color, #c62828);
    color: #fff;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
}

.publish-pr-step-label {
    font-weight: 600;
    font-size: 14px;
}

.publish-pr-step-line {
    flex: 0 0 40px;
    height: 2px;
    background: linear-gradient(90deg, #ddd, #eee);
    margin: 0 8px;
}

.dark-mode .publish-pr-step-line {
    background: linear-gradient(90deg, #333, #444);
}

/* Body */
.publish-pr-body {
    position: relative;
    z-index: 2;
    padding-top: 0;
}

/* Cards */
.publish-pr-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s, transform 0.25s;
}

.dark-mode .publish-pr-card {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.publish-pr-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.publish-pr-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);
    border-bottom: 1px solid #f0f0f0;
}

.dark-mode .publish-pr-card-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-bottom-color: #333;
}

.publish-pr-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--vr-theme-color, #c62828), #8b0000);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

.publish-pr-card-icon-alt {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.publish-pr-card-icon-media {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.publish-pr-card-step {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--vr-theme-color, #c62828);
    margin-bottom: 2px;
}

.publish-pr-card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.publish-pr-card-body {
    padding: 24px;
}

/* Fields */
.publish-pr-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #444;
}

.dark-mode .publish-pr-label {
    color: #ccc;
}

.publish-pr-input {
    border-radius: 10px !important;
    border: 1.5px solid #e0e0e0 !important;
    padding: 10px 14px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.publish-pr-input:focus {
    border-color: var(--vr-theme-color, #c62828) !important;
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12) !important;
}

.publish-pr-input-wrap {
    position: relative;
}

.publish-pr-input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

.publish-pr-input-wrap .publish-pr-input {
    padding-left: 40px !important;
}

.publish-pr-user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa, #eef1f5);
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #e8e8e8;
}

.publish-pr-user-chip img {
    border-radius: 50%;
    border: 2px solid var(--vr-theme-color, #c62828);
}

.publish-pr-user-chip small {
    display: block;
    color: #888;
    font-size: 12px;
}

.publish-pr-user-chip strong {
    font-size: 15px;
}

.publish-pr-char-count {
    text-align: right;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.publish-pr-editor-field .tox-tinymce {
    border-radius: 10px !important;
    border: 1.5px solid #e0e0e0 !important;
}

.publish-pr-editor-field .tox .tox-editor-header {
    border-radius: 10px 10px 0 0;
}

.publish-pr-editor-field .tox .tox-statusbar {
    border-radius: 0 0 10px 10px;
}

/* Image upload */
.publish-pr-image-upload {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 14px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    transition: all 0.25s;
}

.publish-pr-image-upload:hover,
.publish-pr-image-upload.is-dragover {
    border-color: var(--vr-theme-color, #c62828);
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
}

.dark-mode .publish-pr-image-upload {
    background: #252525;
    border-color: #444;
}

.publish-pr-upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--vr-theme-color, #c62828);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.3);
}

.publish-pr-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.publish-pr-image-placeholder {
    text-align: center;
    padding: 28px;
    pointer-events: none;
    color: #666;
}

.publish-pr-image-placeholder span {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.publish-pr-image-placeholder small {
    font-size: 12px;
    color: #999;
}

.publish-pr-image-preview {
    position: relative;
    width: 100%;
    padding: 12px;
}

.publish-pr-image-preview img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

.publish-pr-image-remove {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.publish-pr-terms {
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.dark-mode .publish-pr-terms {
    background: #252525;
    border-color: #333;
}

/* Submit */
.publish-pr-submit-wrap {
    text-align: center;
    padding: 8px 0 16px;
}

.publish-pr-submit-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 48px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    box-shadow: 0 6px 24px rgba(198, 40, 40, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.publish-pr-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(198, 40, 40, 0.45);
}

/* Sidebar */
.publish-pr-sidebar {
    position: sticky;
    top: 20px;
}

.publish-pr-side-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.dark-mode .publish-pr-side-card {
    background: #1e1e1e;
    border-color: #333;
}

.publish-pr-side-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}

.publish-pr-side-notice {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-color: #ffc107;
}

.dark-mode .publish-pr-side-notice {
    background: linear-gradient(135deg, #332b00 0%, #2a2400 100%);
    border-color: #665500;
}

.publish-pr-side-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffc107;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.publish-pr-side-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.dark-mode .publish-pr-side-notice p {
    color: #ccc;
}

.publish-pr-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.publish-pr-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.dark-mode .publish-pr-tips-list li {
    border-bottom-color: #333;
    color: #bbb;
}

.publish-pr-tips-list li:last-child {
    border-bottom: 0;
}

.publish-pr-tips-list li span {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--vr-theme-color, #c62828);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nav highlight */
.nav-main .nav-item-publish-pr-main .nav-link-publish-pr {
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.nav-main .nav-item-publish-pr-main.active .nav-link-publish-pr,
.nav-main .nav-item-publish-pr-main .nav-link-publish-pr:hover {
    background: rgba(255, 255, 255, 0.22);
}

.main-menu .nav-item-publish-pr-main > a {
    font-weight: 700;
    color: var(--vr-theme-color, #c62828) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .publish-pr-hero-title {
        font-size: 1.5rem;
    }

    .publish-pr-hero-stats {
        width: 100%;
    }

    .publish-pr-steps-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        border-radius: 12px;
        margin-top: 16px;
    }

    .publish-pr-step-line {
        display: none;
    }

    .publish-pr-step-item {
        padding: 8px 12px;
        background: #f8f9fa;
        border-radius: 10px;
    }

    .dark-mode .publish-pr-step-item {
        background: #252525;
    }

    .publish-pr-sidebar {
        position: static;
    }

    .publish-pr-hero {
        margin-bottom: 0;
        padding-bottom: 24px;
    }

    .publish-pr-body {
        padding-top: 24px;
    }
}

@media (max-width: 575px) {
    .publish-pr-step-label {
        font-size: 12px;
    }

    .publish-pr-card-body {
        padding: 16px;
    }

    .publish-pr-submit-btn {
        width: 100%;
        justify-content: center;
    }
}
