/* Resource Discovery UI Styles */

.resource-discovery-ui {
    /* Positioning handled by canvas-scaling.css */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: 'Orbitron', 'Courier New', monospace;
}

.resource-discovery-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.resource-discovery-panel {
    position: relative;
    width: 1000px;
    height: 800px;
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #00d4ff;
    border-radius: 15px;
    box-shadow:
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.resource-discovery-header {
    background: linear-gradient(90deg, #001122 0%, #002244 50%, #001122 100%);
    padding: 20px;
    border-bottom: 2px solid #00d4ff;
    position: relative;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: calc(24px * var(--global-font-scale));
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.header-title .icon {
    font-size: calc(28px * var(--global-font-scale));
    animation: pulse 2s infinite;
}

.header-subtitle {
    color: #88ccff;
    font-size: calc(14px * var(--global-font-scale));
    margin-top: 5px;
    margin-left: 40px;
}

.close-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: calc(24px * var(--global-font-scale));
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

.resource-discovery-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.discovery-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: calc(18px * var(--global-font-scale));
    font-weight: 600;
    color: #00d4ff;
}

.section-icon {
    font-size: calc(20px * var(--global-font-scale));
}

.section-title {
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

/* Item Selector */
.item-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.target-select {
    flex: 1;
    min-width: 300px;
    padding: 12px;
    background: linear-gradient(145deg, #1a1a2e, #2a2a4e);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: calc(14px * var(--global-font-scale));
}

.target-select:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.quantity-input {
    width: 80px;
    padding: 12px;
    background: linear-gradient(145deg, #1a1a2e, #2a2a4e);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    text-align: center;
}

.analyze-btn {
    padding: 12px 24px;
    background: linear-gradient(145deg, #006699, #0088cc);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.analyze-btn:hover {
    background: linear-gradient(145deg, #0088cc, #00aaff);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Analysis Results */
.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border-left: 4px solid #00d4ff;
}

.target-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-name {
    font-size: calc(20px * var(--global-font-scale));
    font-weight: 600;
    color: #fff;
}

.item-quantity {
    background: rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.craft-status {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.status-ready {
    background: linear-gradient(145deg, #27ae60, #2ecc71);
    color: white;
}

.status-missing {
    background: linear-gradient(145deg, #e74c3c, #ff6b6b);
    color: white;
}

/* Resources List */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.resource-item.satisfied {
    border-color: rgba(39, 174, 96, 0.5);
    background: rgba(39, 174, 96, 0.1);
}

.resource-item.missing {
    border-color: rgba(231, 76, 60, 0.5);
    background: rgba(231, 76, 60, 0.1);
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.resource-status {
    font-size: calc(16px * var(--global-font-scale));
}

.resource-name {
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.resource-amounts {
    color: #88ccff;
    font-family: 'Courier New', monospace;
}

.resource-progress {
    margin-top: 8px;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0088cc);
    transition: width 0.3s ease;
}

/* Recommended Locations */
.recommended-locations {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
}

.locations-header {
    font-size: calc(18px * var(--global-font-scale));
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.location-recommendation {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-info {
    flex: 1;
}

.location-name {
    font-size: calc(16px * var(--global-font-scale));
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.location-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.location-details span {
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    font-size: calc(12px * var(--global-font-scale));
    color: #88ccff;
}

.location-actions {
    display: flex;
    gap: 10px;
}

.waypoint-btn {
    padding: 8px 16px;
    background: linear-gradient(145deg, #8e44ad, #9b59b6);
    border: 1px solid #9b59b6;
    border-radius: 6px;
    color: white;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.waypoint-btn:hover {
    background: linear-gradient(145deg, #9b59b6, #bb6bd9);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

.resource-needed {
    font-size: calc(12px * var(--global-font-scale));
    color: #ffaa00;
    font-style: italic;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border: 2px solid #34495e;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #34495e, #3d5a6e);
    box-shadow: 0 0 10px rgba(52, 73, 94, 0.5);
}

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

.btn-icon {
    font-size: calc(14px * var(--global-font-scale));
}

/* Active Tracking */
.no-tracking {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.tracking-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.tracking-item.completed {
    border-color: rgba(39, 174, 96, 0.5);
    background: rgba(39, 174, 96, 0.1);
}

.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tracking-item-name {
    font-weight: 600;
    color: #fff;
}

.remove-tracking-btn {
    background: transparent;
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: calc(14px * var(--global-font-scale));
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-tracking-btn:hover {
    background: #ff6b6b;
    color: white;
}

.tracking-progress {
    margin-bottom: 10px;
}

.progress-text {
    font-size: calc(12px * var(--global-font-scale));
    color: #88ccff;
    margin-bottom: 5px;
}

.missing-resources {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.missing-resource {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: calc(11px * var(--global-font-scale));
    color: #ff9999;
}

.more-resources {
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: calc(11px * var(--global-font-scale));
    color: #888;
}

/* Notifications */
.discovery-notification {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 11000;
    animation: slideIn 0.3s ease;
}

.discovery-notification.success {
    background: linear-gradient(145deg, #27ae60, #2ecc71);
    border: 1px solid #2ecc71;
}

.discovery-notification.error {
    background: linear-gradient(145deg, #e74c3c, #ff6b6b);
    border: 1px solid #ff6b6b;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
/* Media queries removed - canvas scaling handles all responsive behavior */