/**
 * ECHO/ASH - Enhanced Styles
 * Additional styles for gameplay enhancements
 */

/* ============================================
   INVESTIGATIONS STYLES
   ============================================ */

.investigations-panel {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.investigation-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.investigation-card:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.investigation-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.investigation-card .card-icon {
    font-size: 1.5rem;
}

.investigation-card .card-title {
    flex: 1;
    font-weight: 600;
}

.investigation-card .card-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.status-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-green {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-red {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.investigation-modal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.investigation-info {
    background: var(--input-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.investigation-info .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.investigation-costs,
.investigation-benefits {
    background: var(--input-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cost-item,
.benefit-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cost-item:last-child,
.benefit-item:last-child {
    border-bottom: none;
}

.investigation-results {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    padding: 1rem;
}

.result-status {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.result-status.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.result-status.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.quality-bar {
    flex: 1;
    height: 8px;
    background: var(--input-bg);
    border-radius: 4px;
    margin-left: 1rem;
    overflow: hidden;
}

.quality-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    transition: width 0.3s ease;
}

.discoveries-list,
.complications-list {
    margin-top: 1rem;
}

.discovery-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.discovery-type {
    font-weight: 600;
}

.discovery-confidence {
    font-size: 0.875rem;
    color: #9ca3af;
}

.complication-item {
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    color: #ef4444;
}

.create-investigation-modal .step {
    display: none;
}

.create-investigation-modal .step.active {
    display: block;
}

.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.district-option {
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.district-option:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.investigation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.type-option {
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.type-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.type-details {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.type-details span {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(156, 163, 175, 0.2);
    border-radius: 4px;
}

/* ============================================
   DECISIONS STYLES
   ============================================ */

.decisions-panel {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pending-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pending-decisions {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.decision-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.decision-card .decision-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.decision-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
}

.decision-context {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.context-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.context-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.context-value {
    font-weight: 600;
}

.decision-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.decision-option {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.decision-option:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.option-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.option-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.option-risk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-bar {
    flex: 1;
    height: 6px;
    background: var(--input-bg);
    border-radius: 3px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
}

.decision-outcome-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.outcome-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

.outcome-badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.outcome-badge.failure {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.choice-summary,
.outcome-details {
    background: var(--input-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.outcome-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.outcome-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.outcome-feeling {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feeling-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
}

.feeling-item.regret {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.feeling-item.affirmation {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.feeling-icon {
    font-size: 1.5rem;
}

.decision-card-mini {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 40px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--input-bg);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.decision-card-mini:hover {
    background: rgba(59, 130, 246, 0.1);
}

.decision-tick {
    font-size: 0.75rem;
    color: #9ca3af;
}

.decision-choice {
    font-size: 0.875rem;
}

.decision-status {
    text-align: center;
    font-weight: 700;
}

.decision-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid;
}

.timeline-marker.success {
    background: #22c55e;
    border-color: #22c55e;
}

.timeline-marker.failure {
    background: #ef4444;
    border-color: #ef4444;
}

.timeline-content {
    background: var(--input-bg);
    border-radius: 6px;
    padding: 0.75rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.timeline-tick {
    font-size: 0.75rem;
    color: #9ca3af;
}

.ongoing-indicator {
    color: #f59e0b;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ============================================
   ACHIEVEMENTS STYLES
   ============================================ */

.achievements-panel {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.achievements-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.achievements-summary {
    display: flex;
    gap: 2rem;
    background: var(--input-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.achievement-category {
    margin-bottom: 2rem;
}

.achievement-category h3 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.achievement-card {
    display: flex;
    gap: 1rem;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.achievement-card.achievement-unlocked {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.achievement-card.achievement-locked {
    filter: grayscale(0.5);
}

.achievement-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.achievement-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.achievement-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--card-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #22c55e);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

.achievement-badge {
    color: #22c55e;
    font-size: 1.5rem;
    font-weight: 700;
}

.achievement-mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--input-bg);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.mini-icon {
    font-size: 1.5rem;
}

.mini-name {
    flex: 1;
    font-size: 0.875rem;
}

.mini-progress {
    font-size: 0.75rem;
    color: #9ca3af;
}

.achievement-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.2));
    border: 2px solid #22c55e;
    border-radius: 8px;
    padding: 1rem;
    max-width: 400px;
    animation: slideIn 0.5s ease;
    z-index: 9999;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 0.25rem;
}

.notification-name {
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
}

.notification-close:hover {
    color: #ef4444;
}

/* ============================================
   CHARACTERS STYLES
   ============================================ */

.characters-panel {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.character-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.character-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.character-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.character-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border: 3px solid var(--border-color);
}

.character-title h2 {
    margin: 0;
}

.character-role {
    color: #9ca3af;
    font-size: 0.875rem;
}

.character-institution,
.character-biography {
    background: var(--input-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.character-institution h3,
.character-biography h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.character-beliefs,
.character-traits,
.character-relationships,
.character-actions {
    margin-bottom: 1rem;
}

.belief-item,
.reputation-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.belief-name,
.reputation-observer {
    flex: 0 0 150px;
    font-size: 0.875rem;
}

.belief-bar,
.reputation-bar {
    flex: 1;
    height: 8px;
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
}

.belief-fill {
    height: 100%;
    background: var(--primary-color);
}

.reputation-fill.positive {
    background: #22c55e;
}

.reputation-fill.negative {
    background: #ef4444;
}

.trait-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    margin: 0.25rem;
}

.relationship-item {
    display: grid;
    grid-template-columns: 1fr 100px 80px;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.relationship-character {
    font-weight: 600;
}

.relationship-type {
    text-align: center;
    color: #9ca3af;
}

.relationship-value {
    text-align: right;
    font-weight: 600;
}

.action-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.action-type {
    color: #9ca3af;
}

.character-reputation,
.character-corruption {
    background: var(--input-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.corruption-meter {
    height: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.corruption-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
    transition: width 0.3s ease;
}

.corruption-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.character-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--input-bg);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.character-card:hover {
    background: rgba(59, 130, 246, 0.1);
}

.character-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.character-info {
    flex: 1;
}

.character-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.character-role {
    font-size: 0.75rem;
    color: #9ca3af;
}

.corruption-warning {
    color: #f59e0b;
    font-size: 1.25rem;
}

.institution-group {
    margin-bottom: 1.5rem;
}

.institution-name {
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.relationship-network {
    width: 100%;
    height: 600px;
    background: var(--card-bg);
    border-radius: 8px;
}

.network-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-item::before {
    content: '';
    width: 30px;
    height: 4px;
    border-radius: 2px;
}

.legend-item.positive::before {
    background: #4ade80;
}

.legend-item.negative::before {
    background: #f87171;
}

/* ============================================
   SOCIAL STYLES
   ============================================ */

.social-panel {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.team-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.team-description {
    background: var(--input-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: var(--input-bg);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.team-members-list {
    margin-bottom: 1rem;
}

.team-member {
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    align-items: center;
}

.member-role {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.member-role.leader {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.member-role.member {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.member-score {
    text-align: right;
    font-weight: 600;
}

.intelligence-list {
    margin-bottom: 1rem;
}

.intelligence-item {
    display: grid;
    grid-template-columns: 1fr 80px 80px 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    align-items: center;
}

.intel-confidence {
    font-weight: 600;
}

.intel-status {
    text-align: center;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.intel-status.verified {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.intel-status.unverified {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.intel-status.disputed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.team-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--input-bg);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-card:hover {
    background: rgba(59, 130, 246, 0.1);
}

.team-info h4 {
    margin: 0 0 0.25rem 0;
}

.team-role {
    font-size: 0.75rem;
    color: #9ca3af;
}

.team-stats {
    font-size: 0.875rem;
    color: #9ca3af;
}

.marketplace-preview {
    text-align: center;
    padding: 2rem;
}

.chronicle-marketplace-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.marketplace-intro {
    text-align: center;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.chronicle-listing {
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.listing-header h4 {
    margin: 0;
}

.type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.sale {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.type-badge.trade {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.type-badge.free {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.listing-body {
    padding: 1rem;
}

.listing-description {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    min-height: 3rem;
}

.listing-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.seller {
    color: #9ca3af;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
}

.listing-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   ENHANCED VISUAL EFFECTS
   ============================================ */

/* Entropy particle effects */
@keyframes entropy-particles {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

.entropy-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.entropy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: entropy-particles 3s infinite ease-out;
}

.entropy-critical .entropy-particles::before,
.entropy-critical .entropy-particles::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: entropy-particles 2s infinite ease-out;
}

.entropy-critical .entropy-particles::after {
    animation-delay: 1s;
}

/* Collapse phase animations */
@keyframes collapse-glitch {
    0%, 100% {
        transform: translateX(0);
        filter: none;
    }
    20% {
        transform: translateX(-5px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translateX(5px);
        filter: hue-rotate(-90deg);
    }
    60% {
        transform: translateX(-2px);
        filter: saturate(2);
    }
    80% {
        transform: translateX(2px);
        filter: saturate(0.5);
    }
}

.collapse-phase {
    animation: collapse-glitch 0.5s infinite;
}

@keyframes collapse-shake {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
    }
    50% {
        transform: translateX(10px) translateY(5px);
    }
    75% {
        transform: translateX(-10px) translateY(5px);
    }
}

.collapse-severe {
    animation: collapse-shake 0.3s infinite;
}

/* Temporal transition effects */
@keyframes temporal-fade {
    0% {
        opacity: 1;
        filter: blur(0);
    }
    50% {
        opacity: 0.5;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

.temporal-transition {
    animation: temporal-fade 0.5s ease;
}

/* Ghost overlay for historical states */
.ghost-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(147, 197, 253, 0.1);
    pointer-events: none;
    animation: ghost-pulse 2s infinite ease-in-out;
}

@keyframes ghost-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* District atmosphere effects */
.district-atmosphere {
    position: relative;
    overflow: hidden;
}

.atmosphere-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(59, 130, 246, 0.2) 100%);
    pointer-events: none;
}

.atmosphere-fog {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(156, 163, 175, 0.1) 0%, 
        rgba(156, 163, 175, 0.2) 50%, 
        rgba(156, 163, 175, 0.1) 100%);
    pointer-events: none;
    animation: fog-drift 10s infinite linear;
}

@keyframes fog-drift {
    0% {
        transform: translateX(-20%);
    }
    100% {
        transform: translateX(20%);
    }
}

/* Crowd density visualization */
.crowd-density {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(34, 197, 94, 0.1) 0%, 
        transparent 70%);
    pointer-events: none;
}

.crowd-density.high {
    background: radial-gradient(circle at center, 
        rgba(239, 68, 68, 0.2) 0%, 
        rgba(239, 68, 68, 0.1) 50%, 
        transparent 70%);
}

.crowd-density.medium {
    background: radial-gradient(circle at center, 
        rgba(234, 179, 8, 0.2) 0%, 
        rgba(234, 179, 8, 0.1) 50%, 
        transparent 70%);
}

/* Pulsing indicators */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.pulse-indicator {
    animation: pulse 2s infinite ease-in-out;
}

/* Blinking indicators */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.blink-indicator {
    animation: blink 1s infinite ease-in-out;
}

/* ============================================
   ENHANCED UI COMPONENTS
   ============================================ */

.no-data {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
}

.empty-state .hint {
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Section tabs */
.section-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: #9ca3af;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.tab-btn:hover {
    background: var(--input-bg);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .investigation-types,
    .districts-grid {
        grid-template-columns: 1fr;
    }
    
    .team-stats {
        grid-template-columns: 1fr;
    }
    
    .team-member,
    .intelligence-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .listing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .decision-card-mini {
        grid-template-columns: 60px 1fr;
        gap: 0.25rem;
    }
    
    .decision-choice {
        grid-column: 1 / -1;
    }
    
    .decision-status {
        display: none;
    }
}

/* Loading spinner enhancement */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner-enhanced {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}