/**
 * Creations System Styles
 * Gallery, Detail, and Submit pages
 */

/* ============================================
   SHARED STYLES
   ============================================ */

.creations-page,
.creations-browse-page,
.creations-detail-page,
.creations-submit-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
   BROWSE PAGE SPECIFIC STYLES
   Uses theme-system.css variables
   Default = Dark mode, .dark-mode class = Light mode
   ============================================ */

.creations-browse-page {
    padding: 30px 0;
    min-height: 80vh;
}

.creations-browse-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.creations-browse-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.creations-browse-page .page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.creations-browse-page .page-subtitle {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.creations-browse-page .submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.creations-browse-page .submit-btn:hover {
    background: var(--brand-secondary);
}

.creations-browse-page .browse-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.creations-browse-page .filters-sidebar {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-md);
}

.creations-browse-page .filter-section {
    margin-bottom: 25px;
}

.creations-browse-page .filter-section:last-child {
    margin-bottom: 0;
}

.creations-browse-page .filter-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.creations-browse-page .search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.creations-browse-page .search-form input {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--input-text);
}

.creations-browse-page .search-form button {
    flex-shrink: 0; /* Prevents button from shrinking */
    padding: 10px 14px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.creations-browse-page .filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.creations-browse-page .filter-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.creations-browse-page .filter-list li a:hover {
    background: var(--bg-tertiary);
}

.creations-browse-page .filter-list li a.active {
    background: var(--bg-tertiary);
    font-weight: 500;
    color: var(--brand-primary);
}

.creations-browse-page .tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.creations-browse-page .tag {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.creations-browse-page .tag:hover,
.creations-browse-page .tag.active {
    background: var(--brand-primary);
    color: #fff;
}

.creations-browse-page .sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.creations-browse-page .results-count {
    font-weight: 500;
    color: var(--text-primary);
}

.creations-browse-page .sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.creations-browse-page .sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 14px;
    background: var(--input-bg);
    color: var(--input-text);
}

.creations-browse-page .creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.creations-browse-page .creation-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-md);
}

.creations-browse-page .creation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.creations-browse-page .card-thumbnail {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
}

.creations-browse-page .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creations-browse-page .type-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.creations-browse-page .card-content {
    padding: 15px;
    overflow: hidden;
}

.creations-browse-page .card-content h3 {
    margin: 0 0 8px;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creations-browse-page .card-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
}

.creations-browse-page .card-content h3 a:hover {
    color: var(--brand-primary);
}

.creations-browse-page .description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.creations-browse-page .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.creations-browse-page .author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.creations-browse-page .author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.creations-browse-page .author span {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.creations-browse-page .stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.creations-browse-page .stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.creations-browse-page .stats .positive {
    color: var(--status-success);
}

.creations-browse-page .stats .negative {
    color: var(--status-error);
}

.creations-browse-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.creations-browse-page .pagination a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.creations-browse-page .pagination a:hover {
    background: var(--brand-secondary);
}

.creations-browse-page .page-info {
    color: var(--text-secondary);
}

.creations-browse-page .no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.creations-browse-page .no-results i {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.creations-browse-page .no-results h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.creations-browse-page .no-results p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Browse page responsive */
@media (max-width: 992px) {
    .creations-browse-page .browse-layout {
        grid-template-columns: 1fr;
    }

    .creations-browse-page .filters-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .creations-browse-page .filter-section {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .creations-browse-page .page-header h1 {
        font-size: 1.8rem;
    }

    .creations-browse-page .creations-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .creations-browse-page .sort-bar {
        flex-direction: column;
        gap: 10px;
    }
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--text-tertiary);
}

/* Cards */
.sidebar-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.sidebar-card h3,
.sidebar-card h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-card h3 i {
    margin-right: 8px;
    color: var(--brand-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-secondary);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-light);
}

/* Error Pages */
.error-container {
    text-align: center;
    padding: 80px 20px;
}

.error-icon {
    font-size: 64px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.error-container h1 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ============================================
   GALLERY PAGE
   ============================================ */

.creations-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .creations-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Filters */
.creations-sidebar .search-box {
    margin-bottom: 20px;
}

.creations-sidebar .search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light, #ddd);
    border-radius: 8px;
    font-size: 14px;
    background: var(--input-bg, #fff);
    color: var(--text-primary, #333);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary, #333);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-secondary, #666);
    text-decoration: none;
    font-size: 14px;
}

.filter-item:hover {
    background: var(--bg-secondary, #f5f5f5);
}

.filter-item.active {
    background: var(--bg-tertiary, #e3f2fd);
    color: var(--brand-primary, #4DBCDD);
}

.filter-item i {
    width: 20px;
    text-align: center;
}

.filter-item .count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-tertiary, #999);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 4px 12px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary, #666);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: var(--brand-primary, #4DBCDD);
    color: #fff;
}

/* Main Content Area */
.creations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.creations-header h1 {
    font-size: 28px;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border-light, #ddd);
    border-radius: 6px;
    background: var(--input-bg, #fff);
    color: var(--text-primary, #333);
    font-size: 14px;
}

/* Creations Grid */
.creations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.creation-card {
    background: var(--bg-secondary, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.creation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.creation-card .thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.creation-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.creation-card:hover .thumbnail img {
    transform: scale(1.05);
}

.creation-card .type-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.creation-card .featured-star {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}

.creation-card .info {
    padding: 15px;
}

.creation-card .title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary, #333);
}

.creation-card .title a {
    color: inherit;
    text-decoration: none;
}

.creation-card .title a:hover {
    color: var(--brand-primary, #4DBCDD);
}

.creation-card .description {
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.creation-card .author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.creation-card .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.creation-card .author-name {
    font-size: 13px;
    color: var(--text-secondary, #666);
}

.creation-card .stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-tertiary, #999);
}

.creation-card .stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.creation-card .stats .positive {
    color: #27ae60;
}

.creation-card .stats .negative {
    color: #e74c3c;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.pagination a {
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary, #333);
}

.pagination a:hover {
    background: var(--bg-tertiary, #e3f2fd);
}

.pagination .active {
    background: var(--brand-primary, #4DBCDD);
    color: #fff;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary, #fff);
    border-radius: 12px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-tertiary, #ccc);
    margin-bottom: 15px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-primary, #333);
}

.empty-state p {
    color: var(--text-secondary, #666);
    margin-bottom: 20px;
}

/* ============================================
   DETAIL PAGE
   ============================================ */

.creation-detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

@media (max-width: 992px) {
    .creation-detail-layout {
        grid-template-columns: 1fr;
    }

    .creation-sidebar {
        order: -1;
    }
}

/* Header */
.creation-header {
    background: var(--bg-secondary, #fff);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.creation-banner {
    height: 200px;
    overflow: hidden;
}

.creation-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creation-header-content {
    padding: 20px;
}

.creation-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 10px;
}

.creation-title {
    font-size: 28px;
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.creation-title .featured-badge {
    color: #ffd700;
    font-size: 20px;
}

.creation-version {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary, #666);
    margin-bottom: 15px;
}

.creation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-secondary, #666);
    font-size: 14px;
}

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

.meta-item.author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-item a {
    color: var(--brand-primary, #4DBCDD);
    text-decoration: none;
}

/* Gallery */
.creation-gallery {
    background: var(--bg-secondary, #fff);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gallery-main {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: var(--bg-secondary, #f5f5f5);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    transition: border-color 0.2s ease;
}

.gallery-thumb.active {
    border-color: var(--brand-primary, #4DBCDD);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description */
.creation-description {
    background: var(--bg-secondary, #fff);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.creation-description h2 {
    font-size: 20px;
    margin: 0 0 15px;
}

.description-content {
    line-height: 1.7;
    color: var(--text-secondary, #444);
}

/* Feels Section - matches content_feed feels pattern */
.creation-feels-section {
    background: var(--bg-secondary, #fff);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.creation-feels-total {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 30px;
}

.creation-feed-interactions-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light, #eee);
}

.creation-react-btn {
    position: relative;
    padding: 8px 16px;
    background: var(--bg-tertiary, #f5f5f5);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.creation-react-btn:hover {
    background: var(--brand-primary-light, #e3f2fd);
}

.creation-react-btn:hover .creation-react-hover {
    display: block;
}

.creation-react-hover {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 12px;
    padding-bottom: 20px; /* Extra padding at bottom to bridge gap */
    min-width: 280px;
    z-index: 100;
}

/* Bridge the gap between button and popup */
.creation-react-hover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 15px;
}

.creation-react-hover .reaction-search-container {
    margin-bottom: 10px;
}

.creation-react-hover .reaction-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-light, #ddd);
    border-radius: 6px;
    font-size: 13px;
}

.creation-react-hover .reaction-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.creation-react-hover .reaction-picker-icon {
    font-size: 22px;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.creation-react-hover .reaction-picker-icon:hover {
    background: var(--bg-tertiary, #f0f0f0);
    transform: scale(1.2);
}

.creation-react-hover .reaction-more-toggle {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light, #eee);
    font-size: 12px;
    color: var(--text-muted, #888);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.creation-react-hover .reaction-more-toggle:hover {
    color: var(--brand-primary, #4DBCDD);
}

.creation-react-hover .reaction-grid-extended {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* React icon container - matches content_feed */
.creation-feels-section .react-icon-cont {
    display: flex;
    align-items: center;
    gap: 5px;
}

.creation-feels-section .react-icon-cont > div {
    display: flex;
    align-items: center;
    gap: 3px;
}

.creation-feels-section .reaction-icon {
    font-size: 18px;
}

/* Dark mode - using theme system variables */
/* Default is dark mode in this theme system */
.creation-react-hover {
    background: var(--bg-secondary, #1e1e1e);
    border: 1px solid var(--border-light, #333);
}

.creation-react-hover .reaction-search {
    background: var(--input-bg, #2a2a2a);
    color: var(--input-text, #fff);
    border-color: var(--border-light, #444);
}

.creation-react-hover .reaction-picker-icon:hover {
    background: var(--bg-tertiary, #333);
}

.creation-react-hover .reaction-more-toggle {
    border-top-color: var(--border-light, #333);
    color: var(--text-secondary, #aaa);
}

/* Light mode overrides */
.dark-mode .creation-react-hover {
    background: var(--card-bg, #fff);
    border-color: var(--border-light, #ddd);
}

.dark-mode .creation-react-hover .reaction-search {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

.dark-mode .creation-react-hover .reaction-picker-icon:hover {
    background: #f0f0f0;
}

.dark-mode .creation-react-hover .reaction-more-toggle {
    border-top-color: #eee;
    color: #888;
}

/* Sidebar Stats */
.stats-card .stat-row {
    display: flex;
    gap: 20px;
}

.stats-card .stat {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: var(--bg-secondary, #f9f9f9);
    border-radius: 8px;
}

.stats-card .stat i {
    font-size: 20px;
    color: var(--brand-primary, #4DBCDD);
    margin-bottom: 8px;
}

.stats-card .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #333);
}

.stats-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary, #666);
}

/* Downloads Card */
.security-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--text-secondary);
}

.security-disclaimer i {
    color: #17a2b8;
    flex-shrink: 0;
}

.security-disclaimer span {
    line-height: 1.4;
}

.downloads-card .files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.file-item {
    padding: 15px;
    background: var(--bg-secondary, #f9f9f9);
    border-radius: 8px;
    border: 1px solid var(--border-light, #eee);
    overflow: hidden;
    min-width: 0;
    box-sizing: border-box;
}

.file-item.primary {
    border-color: var(--brand-primary);
    background: var(--bg-tertiary);
}

.file-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0;
    overflow: hidden;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary, #333);
    word-break: break-all;
    overflow-wrap: anywhere;
}

.file-version {
    padding: 2px 6px;
    background: var(--bg-tertiary, #e5e5e5);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary, #666);
}

.file-size {
    font-size: 12px;
    color: var(--text-tertiary, #999);
}

.file-platform {
    font-size: 12px;
    color: var(--text-secondary, #666);
}

.file-hash-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: var(--bg-tertiary, #f0f0f0);
    border-radius: 6px;
    font-size: 11px;
    overflow: hidden;
}

.file-hash-display .hash-label {
    color: var(--text-secondary, #666);
    white-space: nowrap;
    flex-shrink: 0;
}

.file-hash-display .hash-label i {
    margin-right: 4px;
}

.file-hash-display .hash-value {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-primary, #333);
    background: var(--bg-primary, #fff);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    word-break: break-all;
    overflow-wrap: anywhere;
    transition: background 0.2s, color 0.2s;
    flex: 1;
    min-width: 0;
}

.file-hash-display .hash-value:hover {
    background: var(--brand-primary, #4DBCDD);
    color: #fff;
}

.file-hash-display .hash-value.copied {
    background: #27ae60;
    color: #fff;
}

.file-desc {
    font-size: 13px;
    color: var(--text-secondary, #666);
    margin: 0 0 10px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: var(--brand-primary, #4DBCDD);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box;
}

.download-btn:hover {
    background: var(--brand-secondary, #3da8c4);
}

.download-btn.external {
    background: #6c757d;
}

.download-btn.external:hover {
    background: #5a6268;
}

.no-files {
    text-align: center;
    color: var(--text-tertiary, #999);
    padding: 20px;
}

/* Tags Card */
.tags-card .categories-list,
.tags-card .tags-list {
    margin-bottom: 15px;
}

.tags-card .categories-list:last-child,
.tags-card .tags-list:last-child {
    margin-bottom: 0;
}

.category-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 6px;
    margin: 0 5px 5px 0;
    font-size: 13px;
    color: var(--text-secondary, #666);
    text-decoration: none;
}

.category-link:hover {
    background: var(--bg-tertiary, #e3f2fd);
    color: var(--brand-primary, #4DBCDD);
}

.tag-link {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 15px;
    margin: 0 5px 5px 0;
    font-size: 12px;
    color: var(--brand-primary, #4DBCDD);
    text-decoration: none;
}

.tag-link:hover {
    background: var(--brand-primary, #4DBCDD);
    color: #fff;
}

/* Actions Card */
.actions-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 1px solid var(--border-light, #ddd);
    border-radius: 6px;
    background: var(--bg-secondary, #fff);
    color: var(--text-secondary, #666);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-secondary, #f5f5f5);
}

.action-btn.edit {
    color: var(--brand-primary, #4DBCDD);
    border-color: var(--brand-primary, #4DBCDD);
}

.action-btn.report {
    color: #e74c3c;
}

/* Related Card */
.related-card .related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light, #eee);
    text-decoration: none;
    color: var(--text-primary, #333);
}

.related-card .related-item:last-child {
    border-bottom: none;
}

.related-card .related-item img {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.related-card .related-item span {
    font-size: 14px;
    line-height: 1.3;
}

.related-card .related-item:hover span {
    color: var(--brand-primary, #4DBCDD);
}

.no-related {
    text-align: center;
    color: var(--text-tertiary, #999);
    font-size: 13px;
    padding: 10px;
}

/* Comments */
.creation-comments {
    background: var(--bg-secondary, #fff);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.creation-comments h2 {
    font-size: 20px;
    margin: 0 0 20px;
}

.loading-comments {
    text-align: center;
    color: var(--text-tertiary, #999);
    padding: 20px;
}

/* ============================================
   SUBMIT PAGE
   ============================================ */

.submit-wizard {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-light, #ddd);
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    background: transparent !important;
    padding: 10px;
}

.wizard-step.active {
    background: transparent !important;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary, #f5f5f5);
    border: 2px solid var(--border-light, #ddd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-tertiary, #999);
}

.wizard-step.active .step-number {
    background: var(--brand-primary, #4DBCDD);
    border-color: var(--brand-primary, #4DBCDD);
    color: #fff;
}

.wizard-step.completed .step-number {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}

.step-label {
    font-size: 13px;
    color: var(--text-secondary, #666);
}

.wizard-step.active .step-label {
    color: var(--brand-primary, #4DBCDD);
    font-weight: 500;
}

/* Form Card */
.form-card {
    background: var(--bg-secondary, #fff);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.form-card h2 {
    font-size: 22px;
    margin: 0 0 5px;
}

.form-card .subtitle {
    color: var(--text-secondary, #666);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    max-width: 100%;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary, #333);
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid var(--border-light, #ddd);
    border-radius: 8px;
    font-size: 14px;
    background: var(--input-bg, #fff);
    color: var(--text-primary, #333);
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-primary, #4DBCDD);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box;
}

.form-group .help-text {
    font-size: 12px;
    color: var(--text-tertiary, #999);
    margin-top: 5px;
}

.form-group .char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-tertiary, #999);
}

/* Type Selection */
.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.type-option {
    padding: 20px 15px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.type-option:hover {
    border-color: var(--brand-primary);
    background: var(--bg-tertiary);
}

.type-option.selected {
    border-color: var(--brand-primary);
    background: var(--bg-tertiary);
    box-shadow: 0 0 0 1px var(--brand-primary);
}

.type-option i {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.type-option.selected i {
    color: var(--brand-primary);
}

.type-option span {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

/* File Upload */
.upload-zone {
    border: 2px dashed var(--border-light, #ddd);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--brand-primary);
    background: var(--bg-tertiary);
}

.upload-zone.dragging {
    border-color: var(--brand-primary, #4DBCDD);
    background: var(--bg-tertiary, #e3f2fd);
}

.upload-zone i {
    font-size: 48px;
    color: var(--text-tertiary, #ccc);
    margin-bottom: 15px;
}

.upload-zone h4 {
    margin: 0 0 5px;
    color: var(--text-primary, #333);
}

.upload-zone p {
    margin: 0;
    color: var(--text-secondary, #666);
    font-size: 14px;
}

.upload-zone .browse-link {
    color: var(--brand-primary, #4DBCDD);
    text-decoration: underline;
    cursor: pointer;
}

.uploaded-files {
    margin-top: 20px;
}

.uploaded-file {
    padding: 12px 15px;
    background: var(--bg-secondary, #f9f9f9);
    border-radius: 8px;
    margin-bottom: 10px;
}

.uploaded-file .file-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.uploaded-file .file-main > i {
    font-size: 20px;
    color: var(--brand-primary, #4DBCDD);
}

.uploaded-file .file-details {
    flex: 1;
}

.uploaded-file .file-details .name {
    font-weight: 500;
}

.uploaded-file .file-details .size {
    font-size: 12px;
    color: var(--text-tertiary, #999);
}

.uploaded-file .remove-btn {
    padding: 5px;
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
}

/* File hash input for upload form */
.uploaded-file .file-hash-input {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light, #e0e0e0);
}

.uploaded-file .file-hash-input label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary, #666);
    margin-bottom: 6px;
}

.uploaded-file .file-hash-input label .required {
    color: #dc3545;
    font-weight: bold;
}

.uploaded-file .file-hash-input label i {
    color: var(--brand-primary, #4DBCDD);
}

.uploaded-file .file-hash-input .hash-help-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted, #999);
    color: #fff;
    font-size: 10px;
    cursor: help;
    margin-left: 4px;
}

.uploaded-file .file-hash-input input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-light, #ddd);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
    background: var(--input-bg, #fff);
    color: var(--input-text, #333);
}

.uploaded-file .file-hash-input input:focus {
    outline: none;
    border-color: var(--brand-primary, #4DBCDD);
}

.uploaded-file .file-hash-input .hash-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted, #999);
    line-height: 1.4;
}

.uploaded-file .file-hash-input .hash-hint code {
    background: var(--bg-tertiary, #f0f0f0);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.uploaded-file .file-hash-input input:invalid {
    border-color: #dc3545;
}

.uploaded-file .file-hash-input input.valid {
    border-color: #28a745;
}

/* Dark mode for file hash input */
.dark-mode .uploaded-file .file-hash-input {
    border-top-color: var(--border-light, #444);
}

.dark-mode .uploaded-file .file-hash-input input {
    background: var(--input-bg, #2a2a2a);
    border-color: var(--border-light, #444);
    color: var(--input-text, #fff);
}

.dark-mode .uploaded-file .file-hash-input .hash-hint code {
    background: var(--bg-secondary, #1a1a1a);
    color: var(--text-primary, #fff);
}

/* Model File Preview Styles */
.uploaded-file.model-file .file-main {
    align-items: flex-start;
}

.uploaded-file .file-model-preview {
    width: 80px;
    height: 60px;
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uploaded-file .file-model-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

.uploaded-file .file-model-preview .model-preview-loading {
    color: var(--text-secondary, #888);
}

.uploaded-file .file-details .model-icon {
    color: var(--brand-primary, #4AAEDC);
    margin-right: 4px;
}

.uploaded-file .file-details .model-badge {
    display: inline-block;
    background: var(--brand-primary, #4AAEDC);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

/* Gallery Model Items */
.gallery-model-item {
    position: relative;
}

.gallery-model-item .gallery-model-preview {
    width: 100%;
    height: 100px;
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 8px;
    overflow: hidden;
}

.gallery-model-item .gallery-model-preview canvas {
    width: 100% !important;
    height: 100% !important;
}

.gallery-model-item .model-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(74, 174, 220, 0.9);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* External Link Input */
.external-links {
    margin-top: 20px;
}

.external-link-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.external-link-url {
    flex: 2;
    min-width: 0;
}

.external-link-hash {
    flex: 1;
    min-width: 200px;
}

.external-link-row input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid var(--border-light, #ddd);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #333);
}

.external-link-row input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.external-link-row .external-hash-input {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
}

.external-link-row .external-hash-input.valid {
    border-color: #27ae60;
    background-color: rgba(39, 174, 96, 0.05);
}

.external-link-row .external-hash-input.invalid {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.external-link-row .remove-link {
    padding: 12px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.external-link-row .remove-link:hover {
    background: #c0392b;
}

.add-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--bg-secondary, #f5f5f5);
    border: 1px dashed var(--border-light, #ddd);
    border-radius: 8px;
    color: var(--text-secondary, #666);
    cursor: pointer;
    font-size: 14px;
}

.add-link-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--brand-primary);
}

/* Tags Input */
.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-light, #ddd);
    border-radius: 8px;
    min-height: 50px;
    box-sizing: border-box;
    width: 100%;
}

.tags-input-container .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--bg-tertiary, #e3f2fd);
    border-radius: 15px;
    font-size: 13px;
    color: var(--brand-secondary, #0277bd);
}

.tags-input-container .tag .remove {
    cursor: pointer;
    font-weight: bold;
}

.tags-input-container input {
    flex: 1;
    min-width: 100px;
    border: none;
    outline: none;
    padding: 5px;
    font-size: 14px;
    background: transparent;
}

/* Submit Notice */
.submit-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-top: 20px;
    color: var(--text-secondary);
}

.submit-notice i {
    color: var(--brand-primary);
    font-size: 18px;
    margin-top: 2px;
}

.submit-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light, #eee);
}

.form-actions .btn {
    min-width: 120px;
}

/* ============================================
   THEME SUPPORT
   Uses CSS variables from theme-system.css
   Default = Dark mode, .dark-mode class = Light mode
   No explicit overrides needed - CSS variables handle it
   ============================================ */

/* ============================================
   PAGE HEADER ROW
   ============================================ */

.page-header-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
    position: relative;
}

.page-header-row .header-left {
    text-align: center;
}

.page-header-row h1 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.page-header-row .subtitle {
    margin: 0;
    color: var(--text-secondary);
}

.page-header-row .header-right {
    position: absolute;
    right: 0;
    top: 0;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light, #444);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--brand-primary, #4DBCDD);
    color: var(--brand-primary, #4DBCDD);
    background: rgba(77, 188, 221, 0.1);
}

/* ============================================
   FORM NOTIFICATIONS
   ============================================ */

.form-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.form-notification.info {
    background: rgba(77, 188, 221, 0.15);
    border: 1px solid rgba(77, 188, 221, 0.3);
    color: var(--brand-primary, #4DBCDD);
}

.form-notification.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.form-notification.warning {
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: #f39c12;
}

.form-notification.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.form-notification i {
    font-size: 18px;
}

.form-notification span {
    flex: 1;
}

.form-notification .close-notification {
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
}

.form-notification .close-notification:hover {
    opacity: 1;
}

/* ============================================
   UPLOAD PROGRESS
   ============================================ */

.upload-progress-container {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-light, #333);
}

.upload-progress-text {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary, #333);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-primary, #4DBCDD) 0%, var(--brand-secondary, #2ecc71) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .page-header-row {
        flex-direction: column;
        gap: 15px;
        padding-top: 50px;
    }

    .page-header-row .header-right {
        position: absolute;
        right: 0;
        top: 0;
        width: auto;
    }

    .creations-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .creations-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .creation-detail-layout {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .wizard-steps::before {
        display: none;
    }

    .step-label {
        font-size: 11px;
    }

    .form-card {
        padding: 20px;
    }

    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reactions-list {
        gap: 8px;
    }

    .reaction-btn {
        padding: 10px 14px;
    }

    .reaction-emoji {
        font-size: 20px;
    }
}

/* ============================================
   FILE SCAN STATUS STYLES
   ============================================ */

.file-scan-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 0;
    margin: 4px 0;
}

.file-scan-status i {
    font-size: 14px;
}

.file-scan-status .scan-status-text {
    color: var(--text-secondary);
}

/* Admin/Mod detailed scan info */
.file-scan-details {
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 10px;
    margin: 8px 0;
    font-size: 12px;
}

.file-scan-details .scan-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-primary);
}

.file-scan-details .scan-detail-row:last-child {
    border-bottom: none;
}

.file-scan-details .scan-label {
    color: var(--text-secondary);
}

.file-scan-details .scan-value {
    font-weight: 500;
}

.file-scan-details .scan-value.clean,
.file-scan-details .scan-value.passed {
    color: #17a2b8;
}

.file-scan-details .scan-value.pending {
    color: #ffc107;
}

.file-scan-details .scan-value.infected,
.file-scan-details .scan-value.flagged {
    color: #dc3545;
}

.file-scan-details .scan-value.suspicious {
    color: #fd7e14;
}

.file-scan-details .scan-value.unscanned,
.file-scan-details .scan-value.unknown {
    color: #e67e22;
}

.file-scan-details .scan-findings {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-primary);
}

.file-scan-details .scan-findings-title {
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 6px;
}

.file-scan-details .scan-finding {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    padding: 6px 10px;
    margin: 4px 0;
    border-radius: 0 4px 4px 0;
}

.file-scan-details .scan-finding .finding-type {
    font-weight: 500;
    color: #dc3545;
}

.file-scan-details .scan-finding .finding-desc {
    color: var(--text-secondary);
    font-size: 11px;
}

/* Security warning banner for admins */
.security-alert-banner {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(253, 126, 20, 0.15));
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.security-alert-banner .alert-icon {
    color: #dc3545;
    font-size: 24px;
    flex-shrink: 0;
}

.security-alert-banner .alert-content h4 {
    color: #dc3545;
    margin: 0 0 5px 0;
    font-size: 14px;
}

.security-alert-banner .alert-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.security-alert-banner .alert-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.security-alert-banner .alert-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.security-alert-banner .alert-btn.danger {
    background: #dc3545;
    color: #fff;
}

.security-alert-banner .alert-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Scan badge on creation cards */
.creation-card .scan-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.creation-card .scan-badge i {
    font-size: 14px;
}

/* Ensure card-thumbnail is positioned for absolute badge */
.creation-card .card-thumbnail {
    position: relative;
}

/* File actions container */
.file-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Submit scan button */
.submit-scan-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-scan-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

/* Scan Modal Overlay */
.scan-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.scan-modal {
    background: var(--bg-secondary);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    padding: 24px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.scan-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.scan-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.scan-modal h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.scan-modal h3 i {
    color: var(--brand-primary);
}

.scan-modal-info {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.scan-modal-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.scan-modal-info p:last-child {
    margin-bottom: 0;
}

.scan-modal-info .file-hash {
    display: block;
    background: var(--bg-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    word-break: break-all;
    color: var(--brand-primary);
    margin-top: 4px;
}

.scan-modal-instructions {
    margin-bottom: 20px;
}

.scan-modal-instructions h4 {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.scan-modal-instructions ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.scan-modal-instructions ol li {
    margin-bottom: 6px;
}

.scan-modal-instructions a {
    color: var(--brand-primary);
    text-decoration: none;
}

.scan-modal-instructions a:hover {
    text-decoration: underline;
}

.scan-modal-instructions .scan-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.scan-modal-instructions .scan-note i {
    color: var(--brand-primary);
    margin-top: 2px;
}

.scan-modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.scan-modal-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    box-sizing: border-box;
}

.scan-modal-form input[type="text"]:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.scan-modal-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.scan-modal-form button:hover:not(:disabled) {
    background: var(--brand-secondary);
}

.scan-modal-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.scan-result-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.scan-result-message.success {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.scan-result-message.error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ============================================
   DOWNLOAD CONFIRMATION MODAL
   ============================================ */

.download-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.download-modal {
    background: var(--bg-primary);
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.download-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    z-index: 1;
}

.download-modal-close:hover {
    color: var(--text-primary);
}

.download-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(230, 126, 34, 0.05));
    border-bottom: 1px solid rgba(230, 126, 34, 0.3);
}

.download-modal-header i {
    font-size: 28px;
    color: #e67e22;
}

.download-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
}

.download-modal-content {
    padding: 20px 25px;
}

.download-file-info {
    margin: 0 0 15px 0;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 14px;
    word-break: break-all;
}

.download-status-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.download-status-box .status-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.scan-status-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.scan-status-display.clean {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

.scan-status-display.pending,
.scan-status-display.scanning {
    background: rgba(255, 193, 7, 0.15);
    color: #d39e00;
}

.scan-status-display.suspicious,
.scan-status-display.unscanned,
.scan-status-display.skipped {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
}

.scan-status-display.infected {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.download-warning-text {
    margin: 0 0 15px 0;
    padding: 10px 12px;
    background: rgba(230, 126, 34, 0.1);
    border-left: 3px solid #e67e22;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.download-danger-box {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 8px;
    margin-bottom: 15px;
}

.download-danger-box i {
    font-size: 24px;
    color: #dc3545;
    flex-shrink: 0;
}

.download-danger-box strong {
    display: block;
    color: #dc3545;
    margin-bottom: 4px;
}

.download-danger-box p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.download-disclaimer {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
}

.download-disclaimer h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-disclaimer h4 i {
    color: #17a2b8;
}

.download-disclaimer ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.download-disclaimer li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.download-disclaimer li:last-child {
    margin-bottom: 0;
}

.download-disclaimer li strong {
    color: var(--text-primary);
}

.disclaimer-note {
    margin: 0;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.disclaimer-note i {
    color: #17a2b8;
    margin-top: 2px;
    flex-shrink: 0;
}

.download-modal-actions {
    display: flex;
    gap: 10px;
    padding: 15px 25px 20px;
    justify-content: flex-end;
}

.download-cancel-btn,
.download-proceed-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.2s;
}

.download-cancel-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.download-cancel-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.download-proceed-btn {
    background: #e67e22;
    color: #fff;
}

.download-proceed-btn:hover {
    background: #d35400;
}

@media (max-width: 480px) {
    .download-modal-actions {
        flex-direction: column;
    }

    .download-cancel-btn,
    .download-proceed-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   CREATION COMMENTS
   ============================================ */

.creation-comments {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light, #333);
}

.creation-comments h2 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.creation-comments .loading-comments {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
}

.creation-comments .loading-comments i {
    margin-right: 8px;
}

.creation-comments .error {
    text-align: center;
    color: #dc3545;
    padding: 30px;
}

.creation-comments .comment-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light, #333);
}

.creation-comments .comment-sort-controls label {
    color: var(--text-secondary);
    font-size: 14px;
}

.creation-comments .comment-sort-controls select {
    padding: 6px 12px;
    border: 1px solid var(--border-light, #444);
    border-radius: 6px;
    background: var(--input-bg, #2a2a2a);
    color: var(--input-text, #fff);
    font-size: 14px;
}

.creation-comments .login-to-comment {
    text-align: center;
    padding: 30px;
    background: var(--bg-secondary, #1e1e1e);
    border-radius: 8px;
    color: var(--text-secondary);
}

.creation-comments .login-to-comment a {
    color: var(--brand-primary);
}

.creation-comments .comments-disabled-message {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.creation-comments .comments-disabled-message i {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Comment inputs styling */
.creation-comments .reply-box {
    margin-top: 15px;
}

.creation-comments .postComment,
.creation-comments .replyComment {
    min-height: 60px;
    padding: 12px;
    background: var(--input-bg, #2a2a2a);
    border: 1px solid var(--border-light, #444);
    border-radius: 8px;
    color: var(--input-text, #fff);
    margin-bottom: 10px;
}

.creation-comments .postComment:focus,
.creation-comments .replyComment:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* RayEditor container styling */
.creation-comments .ray-editor-container {
    margin-bottom: 10px;
}

.creation-comments .ray-editor-container .ray-editor {
    min-height: 60px;
    background: var(--input-bg, #2a2a2a);
    border: 1px solid var(--border-light, #444);
    border-radius: 8px;
    color: var(--input-text, #fff);
}

.creation-comments .ray-editor-container .ray-editor:focus-within {
    border-color: var(--brand-primary);
}

.creation-comments .comment-privacy-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.creation-comments .comment-privacy-wrapper select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-light, #444);
    border-radius: 6px;
    background: var(--input-bg, #2a2a2a);
    color: var(--input-text, #fff);
}

.creation-comments .post-comment-btn {
    padding: 8px 20px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.creation-comments .post-comment-btn:hover {
    background: var(--brand-secondary);
}

/* ============================================
   COMMUNITY SCAN REPORTS
   ============================================ */

/* Community scan summary in file item */
.community-scan-summary {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-tertiary, #1a1a1a);
    border-radius: 8px;
    border: 1px solid var(--border-light, #333);
}

.community-scan-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.community-scan-header i {
    color: var(--brand-primary);
}

.community-scan-bar {
    height: 8px;
    background: var(--bg-secondary, #2a2a2a);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin-bottom: 8px;
}

.scan-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.scan-bar-fill.clean {
    background: #28a745;
}

.scan-bar-fill.suspicious {
    background: #fd7e14;
}

.scan-bar-fill.infected {
    background: #dc3545;
}

.community-scan-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.scan-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.scan-stat.clean {
    color: #28a745;
}

.scan-stat.suspicious {
    color: #fd7e14;
}

.scan-stat.infected {
    color: #dc3545;
}

.community-scan-scanners {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted, #888);
}

/* Report scan button */
.report-scan-btn {
    background: transparent;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.report-scan-btn:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Report scan modal */
.report-scan-modal-content {
    max-width: 500px;
    width: 95%;
}

.report-scan-file-info {
    background: var(--bg-tertiary, #1a1a1a);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.report-scan-file-info p {
    margin: 5px 0;
    font-size: 13px;
}

.file-hash-small {
    font-size: 11px;
    word-break: break-all;
    display: block;
    margin-top: 4px;
    padding: 6px 8px;
    background: var(--bg-secondary, #2a2a2a);
    border-radius: 4px;
}

.report-scan-instructions {
    background: rgba(77, 188, 221, 0.1);
    border: 1px solid rgba(77, 188, 221, 0.3);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.report-scan-instructions > p > i {
    color: var(--brand-primary);
    margin-right: 6px;
}

/* Hash help collapsible */
.hash-help {
    margin-top: 12px;
    border-top: 1px solid rgba(77, 188, 221, 0.2);
    padding-top: 10px;
}

.hash-help summary {
    cursor: pointer;
    font-size: 12px;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hash-help summary:hover {
    text-decoration: underline;
}

.hash-help-content {
    margin-top: 12px;
    font-size: 12px;
}

.hash-help-content > p:first-child {
    margin-bottom: 10px;
    color: var(--text-secondary, #aaa);
}

.hash-command {
    margin-bottom: 10px;
    padding: 8px 10px;
    background: var(--bg-secondary, #1a1a1a);
    border-radius: 6px;
}

.hash-command strong {
    display: block;
    font-size: 11px;
    color: var(--text-secondary, #aaa);
    margin-bottom: 4px;
}

.hash-command code {
    display: block;
    font-size: 11px;
    color: var(--text-primary, #fff);
    word-break: break-all;
    font-family: 'Consolas', 'Monaco', monospace;
}

.hash-help-note {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-muted, #888);
    font-style: italic;
}

/* Light mode (.dark-mode class) */
.dark-mode .hash-command {
    background: #e9ecef;
}

.dark-mode .hash-command code {
    color: #333;
}

.dark-mode .hash-help {
    border-top-color: rgba(77, 188, 221, 0.3);
}

/* Scan result options */
.scan-result-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scan-result-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--border-light, #444);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.scan-result-option input[type="radio"] {
    display: none;
}

.scan-result-option i {
    font-size: 18px;
}

.scan-result-option.clean i {
    color: #28a745;
}

.scan-result-option.suspicious i {
    color: #fd7e14;
}

.scan-result-option.infected i {
    color: #dc3545;
}

.scan-result-option:hover {
    border-color: var(--brand-primary);
}

.scan-result-option:has(input:checked) {
    border-color: var(--brand-primary);
    background: rgba(77, 188, 221, 0.1);
}

.scan-result-option.clean:has(input:checked) {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.scan-result-option.suspicious:has(input:checked) {
    border-color: #fd7e14;
    background: rgba(253, 126, 20, 0.1);
}

.scan-result-option.infected:has(input:checked) {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* Form styles for report modal */
#report-scan-form .form-group {
    margin-bottom: 18px;
}

#report-scan-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
}

#report-scan-form label .required {
    color: #dc3545;
}

#report-scan-form select,
#report-scan-form input[type="text"],
#report-scan-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light, #444);
    border-radius: 6px;
    background: var(--input-bg, #2a2a2a);
    color: var(--input-text, #fff);
    font-size: 14px;
}

#report-scan-form select:focus,
#report-scan-form input[type="text"]:focus,
#report-scan-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

#report-scan-form .form-help {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted, #888);
}

#report-scan-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Form message styles */
.form-message {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid #28a745;
    color: #28a745;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid #dc3545;
    color: #dc3545;
}

/* Light mode adjustments (.dark-mode class = light mode in this codebase) */
.dark-mode .community-scan-summary {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

.dark-mode .community-scan-bar {
    background: #e9ecef;
}

.dark-mode .report-scan-file-info {
    background: #f8f9fa;
}

.dark-mode .file-hash-small {
    background: #e9ecef;
    color: #333;
}

.dark-mode .scan-result-option {
    border-color: #dee2e6;
    background: #fff;
}

.dark-mode .scan-result-option:has(input:checked) {
    background: rgba(77, 188, 221, 0.15);
}

.dark-mode .scan-result-option.clean:has(input:checked) {
    background: rgba(40, 167, 69, 0.15);
}

.dark-mode .scan-result-option.suspicious:has(input:checked) {
    background: rgba(253, 126, 20, 0.15);
}

.dark-mode .scan-result-option.infected:has(input:checked) {
    background: rgba(220, 53, 69, 0.15);
}

.dark-mode #report-scan-form select,
.dark-mode #report-scan-form input[type="text"],
.dark-mode #report-scan-form textarea {
    background: #fff;
    border-color: #ced4da;
    color: #333;
}

.dark-mode .report-scan-instructions {
    background: rgba(77, 188, 221, 0.08);
}

.dark-mode .report-scan-modal-content {
    background: #fff;
}

.dark-mode .report-scan-modal-content .modal-header {
    border-bottom-color: #e0e0e0;
}

.dark-mode .report-scan-modal-content .modal-header h3 {
    color: #333;
}

.dark-mode .report-scan-modal-content label {
    color: #333;
}

.dark-mode .report-scan-modal-content .form-help {
    color: #666;
}

.dark-mode .community-scan-header {
    color: #666;
}

.dark-mode .community-scan-scanners {
    color: #888;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .scan-result-options {
        flex-direction: column;
    }

    .scan-result-option {
        min-width: auto;
    }

    .community-scan-stats {
        flex-direction: column;
        gap: 6px;
    }

    #report-scan-form .form-actions {
        flex-direction: column;
    }

    #report-scan-form .form-actions .btn {
        width: 100%;
    }
}
