/**
 * Frontend CSS für OC Forum
 * Im Stil des Sale Products Importers
 */

.oc-forum-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px;
    --oc-primary: #2563eb;
    --oc-primary-dark: #1d4ed8;
    --oc-secondary: #475569;
    --oc-accent: #8b5cf6;
    --oc-success: #10b981;
    --oc-warning: #f59e0b;
    --oc-danger: #ef4444;
    --oc-surface: #ffffff;
    --oc-bg: #f8fafc;
    --oc-text-main: #1e293b;
    --oc-text-muted: #64748b;
    --oc-gradient-primary: linear-gradient(135deg, #2563eb, #4f46e5);
    --oc-gradient-surface: linear-gradient(145deg, #ffffff, #f8fafc);
    --oc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --oc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --oc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --oc-radius-md: 0.75rem;
    --oc-radius-lg: 1rem;
}

.oc-forum-header,
.oc-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.oc-forum-header-content {
    flex: 1;
}

.oc-forum-header-actions {
    display: flex;
    align-items: center;
}

.oc-forum-header-actions .oc-login-prompt {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.oc-forum-header-actions .oc-forum-notice-inline {
    padding: 8px 16px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #fbbf24;
    border-radius: 0.75rem;
    color: #92400e;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .oc-forum-header {
        flex-direction: column;
        align-items: stretch;
    }

    .oc-forum-header-actions {
        width: 100%;
    }

    .oc-forum-header-actions .oc-button {
        width: 100%;
    }

    /* Hide layout toggle on mobile */
    .oc-layout-toggle,
    .oc-layout-controls {
        display: none !important;
    }

    /* Force list view on mobile */
    .oc-topics-list.oc-topics-masonry {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .oc-topics-masonry .oc-pinned-topics,
    .oc-topics-masonry .oc-normal-topics {
        display: block !important;
    }

    .oc-topics-masonry .oc-topic-item {
        grid-row-end: auto !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* Force list view for profile comments */
    .oc-comment-list.grid-view {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .oc-comment-list.grid-view .oc-profile-comment-item {
        width: 100% !important;
        margin-bottom: 0 !important;
        break-inside: auto !important;
    }

    /* Mobile Optimization for Forums Overview */
    .oc-forum-row {
        flex-direction: column !important;
        gap: 0 !important;
        background: var(--oc-surface);
        border: 1px solid #e2e8f0;
        border-radius: var(--oc-radius-lg);
        overflow: hidden;
        box-shadow: var(--oc-shadow-sm);
    }

    .oc-forum-image-container {
        width: 100% !important;
        height: 180px !important;
        border-radius: 0 !important;
        aspect-ratio: auto !important;
    }

    .oc-forum-item {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .oc-forum-item::before {
        display: none !important;
    }

    .oc-forum-stats {
        width: 100%;
        justify-content: space-around;
        padding: 15px 0 0 0;
        border-top: 1px solid #e5e7eb;
        margin-top: 10px;
    }

    .oc-forum-content h3 {
        font-size: 1.3rem !important;
    }

    /* Mobile Topic Item Layout */
    .oc-topic-item {
        grid-template-columns: 50px 1fr !important;
        grid-template-areas:
            "avatar content"
            "stats stats" !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .oc-topic-avatar {
        grid-area: avatar;
    }

    .oc-topic-content {
        grid-area: content;
    }

    .oc-topic-stats {
        grid-area: stats;
        display: flex !important;
        justify-content: space-between !important;
        padding: 15px 0 0 0 !important;
        margin-top: 5px !important;
        border-top: 1px solid #e5e7eb !important;
        width: 100% !important;
    }

    .oc-topic-stats .oc-stat {
        min-width: auto !important;
        flex: 1 !important;
    }

    .oc-topic-stats .oc-stat-number {
        font-size: 1.2rem !important;
    }

    .oc-topic-stats .oc-stat-label {
        font-size: 0.7rem !important;
    }

    /* Mobile Profile Meta */
    .oc-profile-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .oc-profile-meta span {
        width: 100%;
        justify-content: center;
    }

    .oc-profile-website a {
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: middle;
    }
}

/* Smaller buttons in header */
.oc-forum-header-actions .oc-button {
    padding: 8px 20px;
    min-height: 36px;
    font-size: 0.8rem;
    /* Removed background: transparent to allow primary style */
    color: #fff;
    border-color: transparent;
}

.oc-forum-header-actions .oc-button:hover {
    background: #1c8e4d;
    /* Updated hover color */
    border-color: #1c8e4d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.oc-forum-header h1,
.oc-topic-header h1 {
    margin: 0 0 15px 0;
    color: #111827;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.oc-forum-description {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 15px 0 0 0;
    line-height: 1.6;
}

.oc-topic-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 15px;
}

.oc-topic-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.oc-topic-voting {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    display: inline-block;
}

.oc-topic-voting .oc-vote-buttons {
    background: #fff;
}

.oc-topic-breadcrumb {
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #6b7280;
    padding: 0;
    background: transparent;
}

.oc-topic-breadcrumb a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.oc-topic-breadcrumb a:hover {
    color: #135e96;
    text-decoration: underline;
}

.oc-topic-breadcrumb span {
    color: #111827;
    font-weight: 600;
}

/* Forum-Liste */
.oc-forum-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.oc-forum-row {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
}

.oc-forum-item {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 30px;
    align-items: center;
    padding: 30px;
    background: var(--oc-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--oc-radius-lg);
    box-shadow: var(--oc-shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.oc-forum-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--oc-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.oc-forum-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--oc-shadow-lg);
    border-color: #cbd5e1;
}

.oc-forum-item:hover::before {
    opacity: 1;
}

.oc-forum-icon {
    display: none;
    /* Hide icons as requested */
}

.oc-forum-image-container {
    width: 140px;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: var(--oc-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--oc-shadow-sm);
}

.oc-forum-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oc-forum-content {
    flex: 1;
}

.oc-forum-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.oc-forum-content h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oc-forum-content h3 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.oc-forum-content h3 a:hover {
    color: #2271b1;
}

.oc-forum-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 8px;
}

.oc-forum-stats {
    display: flex;
    gap: 30px;
    padding: 0 20px;
}

.oc-stat {
    text-align: center;
    min-width: 80px;
}

.oc-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2271b1;
    line-height: 1.2;
}

.oc-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Score Colors */
.oc-score-positive {
    color: #10b981 !important;
}

.oc-score-negative {
    color: #ef4444 !important;
}

.oc-score-neutral {
    color: #6b7280 !important;
}

.oc-forum-last-activity {
    font-size: 0.9rem;
    color: #6b7280;
    white-space: nowrap;
    text-align: right;
    min-width: 120px;
}

/* User Score Badge */
.oc-user-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 6px;
    background: #f3f4f6;
    color: #4b5563;
    vertical-align: middle;
}

.oc-user-score.positive {
    background: #dcfce7;
    color: #166534;
}

.oc-user-score.negative {
    background: #fee2e2;
    color: #991b1b;
}

/* Themen-Liste */
.oc-topics-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.oc-pinned-topics,
.oc-normal-topics {
    margin-bottom: 40px;
}

.oc-pinned-topics h3,
.oc-normal-topics h3 {
    margin: 0 0 40px 0;
    font-size: 1.5rem;
    color: #111827;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 700;
}

.oc-topic-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 25px;
    align-items: center;
    padding: 25px 30px;
    background: var(--oc-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--oc-radius-md);
    box-shadow: var(--oc-shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 5px;
}

.oc-topic-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--oc-shadow-md);
    border-color: #cbd5e1;
}

.oc-topic-item.oc-pinned {
    background: linear-gradient(to right, #f8fafc, #fff);
    border-left: 4px solid var(--oc-primary);
}

.oc-topic-item.oc-locked {
    background: #f1f5f9;
    opacity: 0.8;
}

.oc-topic-avatar {
    position: relative;
    width: 50px;
    height: 50px;
}

.oc-topic-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Badges */
.oc-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.oc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oc-badge-pinned {
    background: #dbeafe;
    color: #1e40af;
}

.oc-badge-locked {
    background: #fee2e2;
    color: #991b1b;
}

.oc-badge-new {
    background: #dcfce7;
    color: #166534;
}

.oc-badge-hot {
    background: #ffedd5;
    color: #9a3412;
}

.oc-topic-content {
    flex: 1;
}

.oc-topic-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.oc-topic-content h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oc-topic-content h3 a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.oc-topic-content h3 a:hover {
    color: #2271b1;
}

.oc-topic-content .oc-topic-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.oc-topic-stats {
    display: flex;
    gap: 25px;
    padding: 0 15px;
}

.oc-topic-stats .oc-stat {
    text-align: center;
    min-width: 70px;
}

.oc-topic-stats .oc-stat-number {
    font-size: 1.5rem;
}

.oc-topic-stats .oc-stat-label {
    font-size: 0.8rem;
}

/* Beiträge */
.oc-posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.oc-post-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

@media (hover: hover) and (pointer: fine) {
    .oc-post-item:hover {
        box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-color: #2271b1;
    }
}

.oc-post-item.oc-post-topic {
    background: linear-gradient(135deg, #f0f6fc, #e0ecf8);
    border-color: #2271b1;
    border-width: 2px;
}

.oc-post-author {
    text-align: center;
    padding-right: 25px;
    border-right: 2px solid #e5e7eb;
    position: sticky;
    top: calc(var(--oc-header-offset, 0px) + 20px);
    height: fit-content;
}

.oc-author-avatar {
    margin-bottom: 15px;
}

.oc-author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid #2271b1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.oc-author-name {
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.oc-topic-author a,
.oc-author-name a {
    text-decoration: none;
}

.oc-author-role {
    font-size: 0.85rem;
    color: #6b7280;
    text-transform: capitalize;
    font-weight: 500;
}

.oc-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.oc-post-text {
    flex: 1;
}

.oc-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.oc-post-number {
    font-weight: 700;
    color: #2271b1;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #f0f6fc, #e0ecf8);
    padding: 6px 12px;
    border-radius: 0.5rem;
}

.oc-post-date {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-left: auto;
}

.oc-post-text {
    line-height: 1.8;
    color: #111827;
    font-size: 1rem;
}

.oc-post-text p {
    margin-bottom: 15px;
}

.oc-post-text p:last-child {
    margin-bottom: 0;
}

/* Deleted Post Styles */
.oc-post-item.oc-post-deleted {
    grid-template-columns: 1fr;
    padding: 15px 30px;
    background: #f9fafb;
    border-color: #d1d5db;
    opacity: 0.7;
}

.oc-post-item.oc-post-deleted:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.oc-post-deleted .oc-post-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.oc-post-deleted .oc-post-number {
    background: #e5e7eb;
    color: #6b7280;
}

.oc-post-deleted-message {
    padding: 10px 0;
    color: #9ca3af;
    font-size: 0.95rem;
}

.oc-post-deleted-message em {
    font-style: italic;
}


/* Buttons */
.oc-forum-actions {
    margin: 0 0 40px 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Topic Controls */
.oc-topic-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 2px solid #e5e7eb;
}

/* Unified Forum Controls (Search and Sort) */
.oc-forum-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 30px 0;
    padding: 0 0 20px 0;
    flex-wrap: wrap;
}

.oc-search-sort-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 4px;
    flex: 1;
    max-width: 500px;
    /* Reduced from 600px */
    transition: all 0.3s ease;
}

.oc-search-sort-group:focus-within {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.oc-forum-controls .oc-forum-search {
    flex: 1;
    margin: 0;
    position: relative;
}

.oc-forum-controls .oc-forum-search input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 15px;
    width: 100%;
    font-size: 0.95rem;
}

.oc-forum-controls .oc-forum-search input:focus {
    outline: none;
}

.oc-forum-controls .oc-sort-control {
    display: flex;
    align-items: center;
    padding-left: 10px;
    border-left: 1px solid #e5e7eb;
    margin-left: 5px;
    margin-right: 5px;
}

.oc-sort-select {
    border: none !important;
    background: transparent !important;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

.oc-sort-select:hover {
    color: #111827;
}

/* Layout Toggle Button */
.oc-layout-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin-left: 10px;
}

.oc-layout-toggle:hover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.oc-layout-toggle svg {
    width: 20px;
    height: 20px;
    fill: #4b5563;
    transition: fill 0.3s ease;
}

.oc-layout-toggle:hover svg {
    fill: #2271b1;
}

/* Masonry Layout */
.oc-topics-masonry .oc-pinned-topics,
.oc-topics-masonry .oc-normal-topics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1px;
    row-gap: 5px;
    column-gap: 20px;
}

.oc-topics-masonry .oc-pinned-topics h3,
.oc-topics-masonry .oc-normal-topics h3 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    height: auto;
}

.oc-topics-masonry .oc-topic-item {
    margin-bottom: 0;
    height: fit-content;
    /* Switch to vertical layout for masonry columns */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
}

.oc-topics-masonry .oc-topic-avatar {
    margin-bottom: 5px;
}

.oc-topics-masonry .oc-topic-content {
    width: 100%;
}

.oc-topics-masonry .oc-topic-stats {
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
    border-top: none;
    border-bottom: none;
}

.oc-topics-masonry .oc-topic-last-activity {
    width: 100%;
    text-align: left;
    min-width: auto;
}

/* Responsive columns for masonry */
@media (max-width: 768px) {

    .oc-topics-masonry .oc-pinned-topics,
    .oc-topics-masonry .oc-normal-topics {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .oc-forum-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .oc-forum-controls .oc-forum-search {
        max-width: 100%;
    }

    .oc-forum-controls .oc-sort-control {
        justify-content: flex-start;
    }

    .oc-layout-toggle {
        margin-left: 0;
        width: 100%;
    }
}




.oc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: transparent;
    color: #111827;
    text-decoration: none;
    border-radius: 1.25rem;
    border: 2px solid #111827;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.oc-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

@media (hover: hover) and (pointer: fine) {
    .oc-button:hover::before {
        left: 100%;
    }

    .oc-button:hover {
        transform: translateY(-2px);
        background: #111827;
        color: #fff;
        border-color: #111827;
        box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
}

.oc-button-primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.oc-button-primary::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

@media (hover: hover) and (pointer: fine) {
    .oc-button-primary:hover {
        background: #1c8e4d;
        /* Updated hover color */
        border-color: #1c8e4d;
        color: #fff;
    }
}

.oc-button-secondary {
    background: transparent;
    color: #111827;
    border-color: #111827;
}

.oc-button-secondary:hover {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

/* Header specific button styles */
.oc-register-btn {
    color: #fff !important;
}

/* Modal */
.oc-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Profile Picture Upload */
.oc-profile-picture-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.oc-profile-picture-upload img {
    border-radius: 50%;
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.oc-upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.oc-upload-btn {
    border: 2px solid #e5e7eb;
    color: #111827;
    background-color: #fff;
    padding: 8px 20px;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.oc-upload-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
    background-color: #f0f6fc;
}

.oc-upload-btn-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.oc-upload-info {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
}

.oc-delete-avatar-btn {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.oc-delete-avatar-btn:hover {
    background: #ef4444;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.oc-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.oc-modal-content h2 {
    margin: 0 0 25px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
}

.oc-modal-content form p {
    margin-bottom: 20px;
}

.oc-modal-content form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.oc-modal-content form input[type="text"],
.oc-modal-content form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.oc-modal-content form input[type="text"]:focus,
.oc-modal-content form textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.oc-modal-close {
    color: #6b7280;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
}

.oc-modal-close:hover,
.oc-modal-close:focus {
    color: #dc2626;
    background: #fef2f2;
    border-color: #dc2626;
    transform: scale(1.1);
}

.oc-forum-notice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #ef4444;
    border-radius: 0.75rem;
    margin: 40px 0;
    color: #475569;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.oc-forum-notice .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #ef4444;
}

.oc-forum-notice p {
    margin: 0;
    font-size: 1rem;
}

/* Pagination */
.oc-pagination {
    margin: 40px 0;
    text-align: center;
    padding: 20px 0;
}

.oc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    margin: 0 4px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #2271b1;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 44px;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .oc-pagination .page-numbers:hover {
        background: #2271b1;
        color: #fff;
        border-color: #2271b1;
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}

.oc-pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .oc-forum-container {
        padding: 20px 15px;
    }

    .oc-forum-header h1,
    .oc-topic-header h1 {
        font-size: 2rem;
    }

    .oc-forum-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .oc-forum-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
        margin: 0 auto;
    }

    .oc-forum-stats {
        justify-content: center;
        padding: 15px 0;
        border-top: 2px solid #e5e7eb;
        margin-top: 15px;
    }

    .oc-forum-last-activity {
        text-align: center;
        padding-top: 15px;
        border-top: 2px solid #e5e7eb;
        margin-top: 15px;
    }

    .oc-topic-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .oc-topic-avatar {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }

    .oc-topic-stats {
        justify-content: center;
        padding: 15px 0;
        border-top: 2px solid #e5e7eb;
        margin-top: 15px;
    }

    .oc-topic-last-activity {
        text-align: center;
        padding-top: 15px;
        border-top: 2px solid #e5e7eb;
        margin-top: 15px;
    }

    .oc-post-item {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .oc-post-author {
        border-right: none;
        border-bottom: 2px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
        position: static;
    }

    .oc-post-text {
        flex: 0 1 auto;
    }

    .oc-author-avatar img {
        width: 60px;
        height: 60px;
    }

    .oc-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 25px;
    }

    .oc-button {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Mobile: Stack post actions vertically */
    .oc-post-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .oc-post-meta-info {
        justify-content: center;
        width: 100%;
    }

    .oc-post-actions-right {
        justify-content: flex-end;
        width: 100%;
        flex-wrap: wrap;
    }

    .oc-topic-views-display,
    .oc-vote-buttons {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {

    .oc-forum-header h1,
    .oc-topic-header h1 {
        font-size: 1.75rem;
    }

    .oc-forum-item,
    .oc-topic-item,
    .oc-post-item {
        padding: 15px;
    }

    .oc-stat-number {
        font-size: 1.5rem;
    }

    .oc-topic-stats .oc-stat-number {
        font-size: 1.25rem;
    }
}

/* Search */
.oc-forum-search {
    position: relative;
    margin-top: 15px;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}

.oc-forum-search input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.oc-forum-search input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.oc-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 5px;
    overflow: hidden;
}

.oc-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oc-search-results li {
    border-bottom: 1px solid #f3f4f6;
}

.oc-search-results li:last-child {
    border-bottom: none;
}

.oc-search-results a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #111827;
    transition: background 0.2s;
}

.oc-search-results a:hover {
    background: #f9fafb;
    color: #2271b1;
}

.oc-search-type {
    float: right;
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.oc-no-results {
    padding: 15px;
    color: #6b7280;
    text-align: center;
    margin: 0;
}

/* Badges */
.oc-author-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
    justify-content: center;
}

.oc-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oc-badge-newbie {
    background: #e5e7eb;
    color: #374151;
}

.oc-badge-member {
    background: #dbeafe;
    color: #1e40af;
}

.oc-badge-pro {
    background: #d1fae5;
    color: #065f46;
}

.oc-badge-expert {
    background: #fce7f3;
    color: #9d174d;
}

/* Like Button */
.oc-post-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Post Metadata Info - Left Side */
.oc-post-meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: 0.9rem;
}

.oc-post-number {
    font-weight: 700;
    color: #2271b1;
    font-size: 1rem;
}

.oc-post-date {
    color: #9ca3af;
}

/* Post Actions Right Side */
.oc-post-actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Topic Views Display */
.oc-topic-views-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    color: #6b7280;
    font-weight: 600;
}

.oc-views-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.oc-views-count {
    font-size: 0.95rem;
    color: #374151;
}


.oc-mod-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #6b7280;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.oc-mod-btn:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: #d1d5db;
}

.oc-edit-btn,
.oc-edit-topic-btn {
    color: #10b981;
    background: transparent;
    border-color: #6ee7b7;
}

.oc-edit-btn:hover,
.oc-edit-topic-btn:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    transform: translateY(-2px);
}

.oc-mod-delete {
    color: #ef4444;
    border-color: #fca5a5;
}

.oc-mod-delete:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.oc-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
    font-size: 0.9rem;
}

.oc-like-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.oc-like-btn.liked {
    background: #eff6ff;
    border-color: #2271b1;
    color: #2271b1;
}

.oc-like-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Vote Buttons */
.oc-vote-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.oc-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.oc-vote-btn:hover {
    background: #f9fafb;
    transform: scale(1.1);
}

.oc-vote-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.oc-upvote-btn:hover {
    color: #10b981;
}

.oc-upvote-btn.voted {
    color: #10b981;
    background: #d1fae5;
}

.oc-downvote-btn:hover {
    color: #ef4444;
}

.oc-downvote-btn.voted {
    color: #ef4444;
    background: #fee2e2;
}

.oc-vote-score {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    min-width: 30px;
    text-align: center;
}

/* Voting in topic stats */
.oc-stat-votes .oc-vote-buttons {
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.oc-stat-votes .oc-vote-score {
    font-size: 1.25rem;
}

/* Moderation */
.oc-moderation-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

.oc-mod-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.oc-mod-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

@media (hover: hover) and (pointer: fine) {
    .oc-mod-btn:hover::before {
        left: 100%;
    }
}

/* Lock/Unlock Button - Amber/Orange */
.oc-mod-btn[data-action="lock"],
.oc-mod-btn[data-action="unlock"] {
    background: transparent;
    color: #f59e0b;
    border-color: #f59e0b;
}

.oc-mod-btn[data-action="lock"]:hover,
.oc-mod-btn[data-action="unlock"]:hover {
    background: #f59e0b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

/* Pin/Unpin Button - Blue */
.oc-mod-btn[data-action="pin"],
.oc-mod-btn[data-action="unpin"] {
    background: transparent;
    color: #3b82f6;
    border-color: #3b82f6;
}

.oc-mod-btn[data-action="pin"]:hover,
.oc-mod-btn[data-action="unpin"]:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Delete Button - Red */
.oc-mod-delete,
.oc-mod-btn[data-action="delete"] {
    background: transparent;
    color: #ef4444;
    border-color: #ef4444;
}

.oc-mod-delete:hover,
.oc-mod-btn[data-action="delete"]:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.oc-post-moderation {
    margin-left: auto;
}

/* Edit Button */
.oc-edit-btn {
    background: transparent;
    border: 2px solid #2271b1;
    color: #2271b1;
    padding: 8px 16px;
    border-radius: 0.65rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oc-edit-btn:hover {
    background: #2271b1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
}

.oc-post-actions-header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.oc-forum-attachment,
.oc-forum-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Images in editor content */
.oc-post-content img,
.oc-topic-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Privacy Modal Styles */
.oc-privacy-modal {
    max-width: 500px;
}

.oc-privacy-modal h2 {
    margin-top: 0;
    color: #111827;
    font-size: 1.5rem;
}

.oc-privacy-modal p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

.oc-privacy-modal p strong {
    color: #dc2626;
}

.oc-privacy-checkbox {
    margin: 20px 0;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.oc-privacy-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.oc-privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.oc-privacy-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.oc-privacy-actions .oc-button {
    min-width: 120px;
}

/* Forum Header Bar */
.oc-forum-header-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.oc-forum-breadcrumbs {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 15px;
}

.oc-forum-breadcrumbs a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.oc-forum-breadcrumbs .oc-sep {
    margin: 0 8px;
    color: #9ca3af;
}

.oc-forum-breadcrumbs .oc-current {
    color: #111827;
    font-weight: 600;
}

/* User Menu */
.oc-forum-user-menu {
    position: relative;
}

.oc-guest-actions {
    display: flex;
    gap: 15px;
}

.oc-guest-actions .oc-button {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 0.8rem;
}

.oc-user-dropdown {
    position: relative;
}

.oc-user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s;
}

.oc-user-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.oc-user-profile-link:hover {
    text-decoration: none;
    color: inherit;
}

.oc-user-toggle:hover {
    background: #f3f4f6;
}

.oc-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.oc-user-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.oc-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 50;
    overflow: hidden;
}

.oc-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.oc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.oc-dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.oc-dropdown-item .dashicons {
    color: #9ca3af;
}

/* Reply Area */
.oc-reply-area {
    margin-top: 50px;
    padding: 40px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: ocSlideUpFade 0.5s ease;
}

.oc-reply-area h3 {
    margin: 0 0 25px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

/* Editor Wrapper - Applies to both Create Thread and Reply */
.oc-editor-wrapper {
    margin-bottom: 25px;
}

.oc-editor-wrapper .wp-editor-container {
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
}

.oc-editor-wrapper .wp-editor-container:hover {
    border-color: #d1d5db;
    background: #fff;
}

.oc-editor-wrapper .wp-editor-container:focus-within {
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.15);
    transform: translateY(-2px);
}

/* TinyMCE Editor Styling */
.oc-editor-wrapper .mce-tinymce {
    border: none !important;
    box-shadow: none !important;
}

.oc-editor-wrapper .mce-toolbar-grp {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 8px !important;
}

.oc-editor-wrapper .mce-btn {
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
}

.oc-editor-wrapper .mce-btn:hover {
    background: #fff !important;
    border-color: #d1d5db !important;
}

.oc-editor-wrapper .mce-btn.mce-active {
    background: #2271b1 !important;
    border-color: #2271b1 !important;
}

.oc-editor-wrapper .mce-btn.mce-active .mce-ico {
    color: #fff !important;
}

.oc-editor-wrapper .mce-edit-area {
    background: #fff !important;
}

.oc-editor-wrapper .mce-content-body {
    padding: 15px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #111827 !important;
}

/* WordPress Editor Tabs Styling */
.oc-editor-wrapper .wp-editor-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0 !important;
    border-bottom: 2px solid #e5e7eb;
    background: #f9fafb;
    padding: 0;
    border-radius: 1rem 1rem 0 0;
}

.oc-editor-wrapper .wp-editor-tabs button {
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oc-editor-wrapper .wp-editor-tabs button:hover {
    color: #2271b1 !important;
    background: rgba(34, 113, 177, 0.05) !important;
}

.oc-editor-wrapper .wp-editor-tabs button.active {
    color: #2271b1 !important;
    border-bottom-color: #2271b1 !important;
    background: #fff !important;
}

/* TinyMCE Resize Handle Styling */
.oc-editor-wrapper .mce-statusbar {
    background: #f9fafb !important;
    border-top: 1px solid #e5e7eb !important;
    padding: 8px !important;
}

.oc-editor-wrapper .mce-resize-handle {
    display: none !important;
}

.oc-editor-wrapper .mce-path {
    padding: 8px !important;
    color: #9ca3af !important;
    font-size: 0.75rem !important;
}

/* QuickTags (Text Editor) Toolbar */
.oc-editor-wrapper .quicktags-toolbar {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 8px !important;
    border-radius: 0 !important;
}

.oc-editor-wrapper .quicktags-toolbar input {
    background: transparent !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    padding: 6px 12px !important;
    margin: 2px !important;
    font-size: 0.875rem !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
}

.oc-editor-wrapper .quicktags-toolbar input:hover {
    background: #fff !important;
    border-color: #2271b1 !important;
    color: #2271b1 !important;
}

/* WordPress Text Editor Textarea */
.oc-editor-wrapper textarea.wp-editor-area {
    border: none !important;
    padding: 15px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #111827 !important;
    background: #fff !important;
    resize: vertical !important;
}

/* Form Actions */
.oc-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.oc-form-actions .oc-button {
    min-width: 150px;
}

/* Modal Form Styling */
.oc-modal-content form p {
    margin-bottom: 25px;
}

.oc-modal-content form .oc-editor-wrapper {
    margin-bottom: 20px;
}

/* Ensure consistent input styling in modals */
.oc-modal-content input[type="text"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9fafb;
}

.oc-modal-content input[type="text"]:hover {
    border-color: #d1d5db;
    background: #fff;
}

.oc-modal-content input[type="text"]:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.15);
}

/* Responsive Editor Styling */
@media (max-width: 768px) {
    .oc-reply-area {
        padding: 25px 20px;
    }

    .oc-reply-area h3 {
        font-size: 1.5rem;
    }

    .oc-form-actions {
        flex-direction: column;
    }

    .oc-form-actions .oc-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .oc-reply-area {
        padding: 20px 15px;
    }

    .oc-reply-area h3 {
        font-size: 1.25rem;
    }
}

/* Edit Profile Page Layout - 3 Column Grid */
.oc-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 20px;
}

/* Wider container for edit profile to make 3 columns more spacious */
.oc-auth-card:has(.oc-profile-grid) {
    max-width: 1400px;
}

.oc-profile-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Compact Profile Picture Upload */
.oc-profile-picture-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--wp--preset--color--base-20, #f9fafb);
    border-radius: 1rem;
    border: 2px dashed var(--wp--preset--color--contrast-20, #e5e7eb);
    transition: all 0.3s ease;
    text-align: center;
}

.oc-profile-picture-upload:hover {
    border-color: var(--wp--preset--color--primary, #2271b1);
    background: var(--wp--preset--color--base, #fff);
}

.oc-current-avatar {
    flex-shrink: 0;
}

.oc-current-avatar img {
    border-radius: 50%;
    border: 3px solid var(--wp--preset--color--contrast-10, #e5e7eb);
}

.oc-upload-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oc-upload-btn-wrapper {
    position: relative;
    width: 100%;
}

.oc-upload-btn {
    background: var(--wp--preset--color--primary, #2271b1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.oc-upload-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.oc-upload-btn-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.oc-delete-avatar-btn {
    background: #dc2626;
    color: #fff;
    padding: 6px 12px;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50%;
    margin: 0 auto;
}

.oc-delete-avatar-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.oc-upload-info {
    font-size: 0.75rem;
    color: var(--wp--preset--color--contrast-60, #6b7280);
    margin: 0;
}

.oc-field-description {
    font-size: 0.85rem;
    color: var(--wp--preset--color--contrast-60, #6b7280);
    margin-top: 8px;
    line-height: 1.4;
}

/* Adjust textarea in 3-column layout */
.oc-profile-col textarea {
    min-height: 150px;
    resize: vertical;
}

/* Responsive: 2 columns on medium screens */
@media (max-width: 1200px) {
    .oc-profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: Single column on tablets */
@media (max-width: 768px) {
    .oc-profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .oc-profile-picture-upload {
        padding: 20px 15px;
    }
}

/* Authentication Pages (Login/Register) */
.oc-auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
    background: transparent;
    /* Allow theme background to show through */
}

.oc-auth-card {
    background: var(--wp--preset--color--base, #fff);
    width: 100%;
    max-width: 480px;
    padding: 50px;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--wp--preset--color--contrast-10, #e5e7eb);
    position: relative;
    overflow: hidden;
    animation: ocSlideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ocSlideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oc-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--wp--preset--color--primary, #2271b1);
}

.oc-auth-header {
    text-align: center;
    margin-bottom: 40px;
    animation: ocFadeIn 0.8s ease 0.2s backwards;
}

@keyframes ocFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.oc-auth-header h2 {
    margin: 0 0 12px 0;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--wp--preset--color--contrast, #111827);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.oc-auth-header p {
    margin: 0;
    color: var(--wp--preset--color--contrast-60, #6b7280);
    font-size: 1.1rem;
}

/* Standard WP Login Form Styling */
.oc-auth-card form {
    animation: ocFadeIn 0.8s ease 0.4s backwards;
}

.oc-auth-card p.login-username,
.oc-auth-card p.login-password,
.oc-form-group {
    margin-bottom: 25px;
}

.oc-auth-card label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--wp--preset--color--contrast-80, #374151);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.oc-auth-card input[type="text"],
.oc-auth-card input[type="email"],
.oc-auth-card input[type="password"],
.oc-auth-card input[type="url"],
.oc-auth-card textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--wp--preset--color--contrast-20, #e5e7eb);
    border-radius: 1rem;
    font-size: 1rem;
    color: var(--wp--preset--color--contrast, #111827);
    background: var(--wp--preset--color--base-20, #f9fafb);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-sizing: border-box;
}

.oc-auth-card textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.oc-auth-card input[type="text"]:hover,
.oc-auth-card input[type="email"]:hover,
.oc-auth-card input[type="password"]:hover,
.oc-auth-card input[type="url"]:hover,
.oc-auth-card textarea:hover {
    border-color: var(--wp--preset--color--contrast-30, #d1d5db);
    background: var(--wp--preset--color--base, #fff);
}

.oc-auth-card input[type="text"]:focus,
.oc-auth-card input[type="email"]:focus,
.oc-auth-card input[type="password"]:focus,
.oc-auth-card input[type="url"]:focus,
.oc-auth-card textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #2271b1);
    background: var(--wp--preset--color--base, #fff);
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.15);
    transform: translateY(-2px);
}

/* Remember Me & Checkboxes */
.oc-auth-card .login-remember,
.oc-remember-me {
    margin-bottom: 20px;
}

.oc-auth-card .login-remember label,
.oc-remember-me label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 500;
    color: var(--wp--preset--color--contrast-60, #4b5563);
    cursor: pointer;
    font-size: 0.95rem;
}

.oc-auth-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--wp--preset--color--contrast-30, #d1d5db);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    accent-color: var(--wp--preset--color--primary, #2271b1);
}

.oc-auth-card input[type="checkbox"]:checked {
    background-color: var(--wp--preset--color--primary, #2271b1);
    border-color: var(--wp--preset--color--primary, #2271b1);
}

/* Buttons */
.oc-auth-card .login-submit,
.oc-form-actions {
    margin-top: 10px;
}

.oc-auth-card input[type="submit"],
.oc-form-actions button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 24px;
    background: var(--wp--preset--color--primary, #111827);
    /* Use primary color for button */
    color: #fff;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.oc-auth-card input[type="submit"]::after,
.oc-form-actions button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.oc-auth-card input[type="submit"]:hover,
.oc-form-actions button:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.oc-auth-card input[type="submit"]:hover::after,
.oc-form-actions button:hover::after {
    left: 100%;
}

.oc-auth-card input[type="submit"]:active,
.oc-form-actions button:active {
    transform: translateY(-1px);
}

/* Footer Links */
.oc-auth-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--wp--preset--color--contrast-10, #f3f4f6);
    text-align: center;
    font-size: 0.95rem;
    color: var(--wp--preset--color--contrast-60, #6b7280);
    animation: ocFadeIn 0.8s ease 0.6s backwards;
}

.oc-auth-footer p {
    margin-bottom: 10px;
}

.oc-auth-footer p:last-child {
    margin-bottom: 0;
}

.oc-auth-footer a {
    color: var(--wp--preset--color--primary, #2271b1);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    display: inline-block;
}

.oc-auth-footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--wp--preset--color--primary, #2271b1);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.oc-auth-footer a:hover {
    filter: brightness(1.2);
}

.oc-auth-footer a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Messages */
.oc-login-message,
.oc-registration-message {
    margin-top: 25px;
    padding: 16px;
    border-radius: 1rem;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
    display: none;
    animation: ocSlideUpFade 0.4s ease;
}

.oc-login-message:not(:empty),
.oc-registration-message:not(:empty) {
    display: block;
}

.oc-login-message.oc-error,
.oc-registration-message.oc-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1);
}

.oc-login-message.oc-success,
.oc-registration-message.oc-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.1);
}

/* Responsive adjustments for Auth */
@media (max-width: 480px) {
    .oc-auth-card {
        padding: 30px 20px;
    }

    .oc-auth-header h2 {
        font-size: 1.75rem;
    }

    .oc-auth-wrapper {
        padding: 20px 15px;
    }
}

/* Threaded Comments / Replies */
.oc-child-posts {
    margin-left: 60px;
    margin-top: 20px;
    padding-left: 20px;
    border-left: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oc-post-reply-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 15px;
    position: relative;
}

.oc-post-reply-item .oc-author-avatar img {
    width: 50px;
    height: 50px;
    border-width: 2px;
}

.oc-post-reply-item .oc-post-header {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.oc-post-reply-item .oc-author-name {
    font-size: 1rem;
}

.oc-post-reply-item .oc-post-text {
    font-size: 0.95rem;
}

/* Inline Reply Form */
.oc-inline-reply-form {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.oc-post-reply-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.oc-post-reply-form textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.oc-reply-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.oc-reply-btn {
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 6px 16px;
    border-radius: 24px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
    min-height: auto;
}

.oc-reply-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.oc-reply-btn::before {
    display: none;
}

/* Responsive adjustments for threaded comments */
@media (max-width: 768px) {
    .oc-child-posts {
        margin-left: 20px;
        padding-left: 15px;
    }

    .oc-post-reply-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .oc-post-reply-item .oc-author-avatar {
        display: none;
    }
}

.oc-replying-to {
    font-size: 0.85rem;
    color: #64748b;
    margin-left: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.oc-replying-to i {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

/* Update Reply Item to match Post Item */
.oc-post-reply-item {
    /* Reset grid to match oc-post-item if it was different */
    grid-template-columns: 180px 1fr;
    padding: 30px;
    background: #f8fafc;
    /* Keep slightly different background to distinguish */
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    margin-bottom: 15px;
    gap: 30px;
}

/* Ensure avatar size matches if needed, or keep it smaller? 
   User said "layout ... to be the same", but maybe avatar can be smaller?
   In post-item.php avatar is 80px. In my new post-reply-item.php I set it to 64px.
   Let's ensure CSS supports 64px or 80px.
*/

.oc-post-reply-item .oc-author-avatar img {
    width: 64px;
    height: 64px;
}

.oc-replying-to-container {
    margin-bottom: 10px;
}

/* Responsive for replies */
@media (max-width: 768px) {
    .oc-post-reply-item {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .oc-post-reply-item .oc-post-author {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
        position: static;
    }
}

/* Lightbox Modal */
.oc-lightbox-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.oc-lightbox-modal.show {
    opacity: 1;
    visibility: visible;
}

.oc-lightbox-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.oc-lightbox-image-container {
    position: relative;
    display: inline-block;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease;
}

.oc-lightbox-modal.show .oc-lightbox-image-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.oc-lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #fff;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@keyframes ocLightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.oc-lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #111827;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-family: Arial, sans-serif;
}

.oc-lightbox-close::before {
    content: '×';
    display: block;
    transform: translateY(-1px);
}

.oc-lightbox-close:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 30px -5px rgba(220, 38, 38, 0.4);
}

.oc-lightbox-close:active {
    transform: scale(1.05) rotate(90deg);
}

/* Add pointer cursor to forum images to indicate they are clickable */
.oc-forum-image {
    cursor: pointer;
    transition: 0.3s;
}

.oc-forum-image:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* WordPress Media Modal Fixes (High Specificity) */
.media-modal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

.media-modal h1,
.media-modal h2 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: #1d2327 !important;
}

.media-modal label,
.media-modal .media-toolbar-secondary {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #646970 !important;
}

.media-modal input[type="text"],
.media-modal input[type="search"] {
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 0 8px !important;
    min-height: 30px !important;
    box-shadow: 0 0 0 transparent !important;
    border: 1px solid #8c8f94 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    color: #2c3338 !important;
}

.media-modal .media-button {
    font-size: 13px !important;
    line-height: 2.15384615 !important;
    min-height: 30px !important;
    padding: 0 10px !important;
}

.media-modal .media-frame-title {
    height: 50px !important;
}

.media-modal .media-frame-title h1 {
    padding: 0 16px !important;
    line-height: 50px !important;
}

/* Notification Center */
.oc-forum-user-menu {
    display: flex;
    align-items: center;
}

.oc-notification-center {
    position: relative;
    margin-left: 20px;
    display: flex;
    align-items: center;
}

.oc-notification-icon {
    /* Inherits oc-button styles */
    padding: 0 !important;
    width: 44px;
    height: 44px;
    min-width: 44px;
    /* Prevent shrinking */
}

.oc-notification-icon:hover {
    /* Inherits oc-button hover */
    color: #fff;
    /* Ensure icon stays white on hover */
}

.oc-notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #111827;
    /* Match button bg */
    z-index: 2;
}

.oc-notification-dropdown {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    display: none;
    margin-top: 10px;
    overflow: hidden;
}

.oc-notification-dropdown.active {
    display: block;
    animation: ocSlideDown 0.2s ease-out;
}

@keyframes ocSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oc-notification-header {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.oc-notification-header span {
    font-weight: 600;
    color: #1e293b;
}

.oc-mark-all-read {
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
}

.oc-mark-all-read:hover {
    text-decoration: underline;
}

.oc-notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.oc-notification-item {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
}

.oc-notification-item:last-child {
    border-bottom: none;
}

.oc-notification-item:hover {
    background: #f8fafc;
}

.oc-notification-item.unread {
    background: #eff6ff;
}

.oc-notification-item.unread:hover {
    background: #e0f2fe;
}

.oc-notif-content {
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 5px;
    line-height: 1.4;
}

.oc-notif-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.oc-no-notifications {
    padding: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.oc-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* User Profile Page */
.oc-user-profile-header {
    background: #fff;
    border-radius: var(--oc-radius-lg);
    box-shadow: var(--oc-shadow-md);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.oc-profile-cover {
    height: 150px;
    background: var(--oc-gradient-primary);
}

.oc-profile-info-container {
    padding: 0 30px 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.oc-profile-avatar {
    margin-top: -60px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.oc-profile-avatar img {
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: var(--oc-shadow-md);
    background: #fff;
}

.oc-profile-details h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    color: #1e293b;
}

.oc-profile-username {
    display: block;
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
    margin-top: 5px;
}

.oc-profile-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.oc-profile-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.oc-profile-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.oc-profile-bio {
    max-width: 600px;
    margin: 0 auto;
    color: #475569;
    line-height: 1.6;
}

.oc-profile-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.oc-tab-item {
    padding: 10px 20px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.oc-tab-item:hover {
    color: #2563eb;
}

.oc-tab-item.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.oc-profile-comment-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--oc-radius-md);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.oc-profile-comment-item:hover {
    box-shadow: var(--oc-shadow-md);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.oc-comment-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
    box-shadow: var(--oc-shadow-sm);
}

.oc-comment-main {
    flex: 1;
}

.oc-comment-header {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.oc-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oc-comment-header a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.oc-comment-header a:hover {
    text-decoration: underline;
}

.oc-sep {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.oc-comment-body {
    color: #334155;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
    background: #f8fafc;
    padding: 15px;
    border-radius: var(--oc-radius-md);
    border-left: 3px solid #e2e8f0;
}

.oc-comment-actions {
    display: flex;
    justify-content: flex-end;
}

.oc-view-context {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.oc-view-context:hover {
    color: #2563eb;
}

.oc-layout-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.oc-layout-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oc-layout-btn:hover {
    color: #2563eb;
    border-color: #cbd5e1;
}

.oc-layout-btn.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.oc-comment-list.grid-view {
    display: block;
    column-count: 1;
    column-gap: 20px;
}

.oc-comment-list.list-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oc-comment-list.grid-view .oc-profile-comment-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    break-inside: avoid;
    /* Prevent item from splitting across columns */
    page-break-inside: avoid;
}

.oc-comment-list.grid-view .oc-comment-avatar {
    margin-bottom: 10px;
}

.oc-comment-list.grid-view .oc-comment-main {
    width: 100%;
    min-width: 0;
}

.oc-comment-list.grid-view .oc-comment-body {
    flex: 1;
}

.oc-comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.oc-comment-metrics {
    display: flex;
    gap: 15px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.oc-metric {
    display: flex;
    align-items: center;
    gap: 5px;
}

.oc-metric svg {
    color: #cbd5e1;
}

.oc-comment-actions {
    /* Reset previous styles if needed, or keep empty if handled by flex parent */
}

.oc-no-results {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-style: italic;
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .oc-comment-list.grid-view {
        column-count: 2;
        /* 2 columns on desktop */
    }

    .oc-profile-info-container {
        flex-direction: row;
        text-align: left;
        align-items: flex-end;
        padding-top: 20px;
    }

    .oc-profile-avatar {
        margin-top: -80px;
        margin-bottom: 0;
        margin-right: 30px;
    }

    .oc-profile-details {
        flex: 1;
        padding-bottom: 10px;
    }

    .oc-profile-badges,
    .oc-profile-meta,
    .oc-profile-bio {
        justify-content: flex-start;
        margin-left: 0;
    }
}