/* Content Verification Styles - Matching Portal Design */

.content-verification-page {
    min-height: 100vh;
    background: var(--background-primary);
    color: var(--text-primary);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s;
    cursor: pointer;
    margin-bottom: 2rem;
}

.upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.upload-zone.drag-over {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
}

.upload-zone-content {
    pointer-events: none;
}

.upload-icon {
    display: none;
}

.upload-text {
    margin-bottom: 1rem;
}

.upload-text strong {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.upload-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.upload-formats {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-browse {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-browse:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.quick-action-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.quick-action-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.action-icon {
    font-size: 2rem;
}

.action-text {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Verification Status */
.verification-status {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.verification-status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.verification-status-icon {
    font-size: 2rem;
}

.verification-status-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
}

.verification-preview {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.verification-progress {
    margin: 1.5rem 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.progress-step:last-child {
    border-bottom: none;
}

.progress-step-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.progress-step-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.progress-step.done .progress-step-text {
    color: var(--text-primary);
}

.progress-step.done .progress-step-icon {
    background: var(--text-primary);
    border-color: var(--text-primary);
    position: relative;
}

.progress-step.done .progress-step-icon.checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid var(--background-primary);
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.progress-step.in-progress .progress-step-icon {
    border-color: var(--text-primary);
    background: transparent;
}

.progress-step.in-progress .progress-step-icon.spinner {
    animation: spin 0.8s linear infinite;
    border-top-color: var(--text-primary);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: var(--text-primary);
    transition: width 0.3s;
}

/* Verification Complete */
.verification-complete {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.verification-complete-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.verification-complete-icon {
    display: none;
}

.verification-complete-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.verification-details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.verification-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.verification-detail-item:last-child {
    border-bottom: none;
}

.verification-detail-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.verification-detail-value {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.verification-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-action {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-action.primary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-action.primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Verification Badge */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.verification-badge.verified {
    color: var(--text-secondary);
}

.verification-badge.unverified {
    color: var(--text-secondary);
}

.badge-icon {
    display: none;
}

.badge-creator {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Content Grid */
.verified-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.content-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.content-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.content-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    display: block;
}

.content-info {
    padding: 1rem;
}

.content-badge {
    margin-bottom: 0.5rem;
}

.content-date {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.content-hash {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin-top: 0.5rem;
}

/* Search and Filters */
.search-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: inherit;
    width: 300px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.content-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* Public Verification Zone */
.public-verify-zone {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 2rem;
}

.hash-input-container {
    margin-top: 2rem;
}

.hash-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    width: 100%;
    max-width: 600px;
    transition: all 0.2s;
}

.hash-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

/* Verification Result */
.verification-result {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.verification-result.verified {
    border-color: var(--border-color);
}

.verification-result.unverified {
    border-color: var(--border-color);
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .content-verification-page {
        padding: 1rem;
    }
    
    .upload-zone {
        padding: 2rem 1rem;
    }
    
    .verified-content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-input {
        width: 100%;
    }
}
